XML output Stage error

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
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

XML output Stage error

Post by ketanshah123 »

Hi all

I am getting following waning message for XML out put stage in a server job .....

XML_Output_3: XML output document parsing failed. Column(0): "wwprttxnresponseXML" Reason: "Xalan error (publicId: , systemId: column[0] (wwprttxnresponseXML), line: 2, column: 48): Unknown element 'wwprttxnresponse'
Xalan error (publicId: , systemId: column[0] (wwprttxnresponseXML), line: 2, column: 48): Attribute '{}id' is not declared for element 'wwprttxnresponse'
Xalan error (publicId: , systemId: column[0] (wwprttxnresponseXML), line: 2, column: 48): Attribute '{}type' is not declared for element 'wwprttxnresponse'
Xalan error (publicId: , systemId: column[0] (wwprttxnresponseXML), line: 3, column: 11): Unknown element 'status'
"

What is the reason for thie warning and how to resolve it... ?


Thnx in advance ......
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I would guess your XPath expressions are no good, can you post them?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

Post by ketanshah123 »

Xpath exprn : -


/wwprttxnresponse/@id
/wwprttxnresponse/@type
/wwprttxnresponse/status/text()
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And the xsd for your target file? Or a sample of the desired output?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

Post by ketanshah123 »

<?xml version="1.0" encoding="UTF-8" ?>
<wwprttxnresponse type="price" id="1000000" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="c:/WWPRT30/WwprtInterface/config/response.xsd">
<status>received</status>
</wwprttxnresponse>
prasad111
Premium Member
Premium Member
Posts: 173
Joined: Fri May 19, 2006 10:53 am

Post by prasad111 »

I guess, you are doing schema validation, try not to do the schema validation it might work................
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

Your xsi:noNamespaceSchemaLocation is in your Windows C:\ directory?? How are you going to validate the shcema from Unix box?
Post Reply