Unknown element on the output warning

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Nisusmage
Premium Member
Premium Member
Posts: 103
Joined: Mon May 07, 2007 1:57 am

Unknown element on the output warning

Post by Nisusmage »

Hi, I am extracting an XML file into a table. I have got the XML file to have one recor, two fields, but still get this warning

Code: Select all

MultiDataConvertXMLDatatest..XML_Input: XSLT Processor: Unknown element on the output. Element Name = "AccountNumberLedgerCode"
I am using a folder stage to an xml stage to the transformer to the table.

the XML fil looks like this

Code: Select all

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
- <ExtractPayment>
-      <Record>
          <OwnerNumber>0155105</OwnerNumber> 
          <AccountNumberLedgerCode>one</AccountNumberLedgerCode> 
        </Record>
  </ExtractPayment>
The real XML a lot more fields and i am getting the warning with quite a few.

ANy ideas?

Thanks[/code]
~The simpliest solutions are always the best~
~Trick is to understand the complexity to implement simplicity~
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What do your XPath Expressions look like for your example? And what are your XML Input settings?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Nisusmage
Premium Member
Premium Member
Posts: 103
Joined: Mon May 07, 2007 1:57 am

Post by Nisusmage »

Ahha, thanks Craig.
the definitions were looking like this:

Code: Select all

/ExtractPayment/Record/AccountNumberLedgerCode
changed to look like this

Code: Select all

/ExtractPayment/Record/AccountNumberLedgerCode/text()
no more warnings.
Thanks
~The simpliest solutions are always the best~
~Trick is to understand the complexity to implement simplicity~
Nisusmage
Premium Member
Premium Member
Posts: 103
Joined: Mon May 07, 2007 1:57 am

Post by Nisusmage »

Ahha, thanks Craig.
the definitions were looking like this:

Code: Select all

/ExtractPayment/Record/AccountNumberLedgerCode
changed to look like this

Code: Select all

/ExtractPayment/Record/AccountNumberLedgerCode/text()
no more warnings.
Thanks
~The simpliest solutions are always the best~
~Trick is to understand the complexity to implement simplicity~
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There you go. Time to mark the thread as Resolved, it seems.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Moderator: please move to server forum
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply