Page 1 of 1

XML output Stage error

Posted: Wed Dec 05, 2007 7:50 am
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 ......

Posted: Wed Dec 05, 2007 8:28 am
by chulett
I would guess your XPath expressions are no good, can you post them?

Posted: Wed Dec 05, 2007 8:42 am
by ketanshah123
Xpath exprn : -


/wwprttxnresponse/@id
/wwprttxnresponse/@type
/wwprttxnresponse/status/text()

Posted: Wed Dec 05, 2007 8:44 am
by chulett
And the xsd for your target file? Or a sample of the desired output?

Posted: Wed Dec 05, 2007 8:52 am
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>

Posted: Thu Dec 06, 2007 9:15 pm
by prasad111
I guess, you are doing schema validation, try not to do the schema validation it might work................

Posted: Thu Dec 06, 2007 10:18 pm
by lstsaur
Your xsi:noNamespaceSchemaLocation is in your Windows C:\ directory?? How are you going to validate the shcema from Unix box?