Schema Validation issue

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)

I think the namespace declaration is wrong. Try this:
xmlns:ns0=“http://DRI.iKitchen.BTS.Shared.Schemas.PurchaseOrder.OutBoundPO

Thanks
guixia

remove your ns0 definition in the xml, it should look like:


Your xsd doesn’t have a namespace defined.

Thanks guixia,

Your solution works.

Our client forgot to make necessary changes in XSD.

Thanks all for your help.

Thanks