AP_AP
(AP AP)
1
Hi ,
I have a schema and i am validating inblound XML file but for some reason i am getting following excepton.
pathName - /PurchaseOrders
errorCode - NV-003
errorMessage - [ISC.0082.9003] Unable to locate a matching element declaration
This is how i am validating inbound file
pub.file:getFile
pub.xml.xmlStringToXMLNode
pub.schema:validate
pub.xml.xmlNodeToDocument
I have attached my XSD and XML file for your reference.
Appreciate your help on this.
Thanks
OutBoundPO.xsd (7.06 KB)
POKJTest.XML (9.44 KB)
guixia
(guixia *)
2
I think the namespace declaration is wrong. Try this:
xmlns:ns0=“http://DRI.iKitchen.BTS.Shared.Schemas.PurchaseOrder.OutBoundPO”
Thanks
guixia
Tong_Wang
(Tong Wang)
3
remove your ns0 definition in the xml, it should look like:
…
Your xsd doesn’t have a namespace defined.
AP_AP
(AP AP)
4
Thanks guixia,
Your solution works.
Our client forgot to make necessary changes in XSD.
Thanks all for your help.
Thanks