M
Matt McMinn
I'm trying to have an XML file validate against an inline schema. The
declarations follow:
<PLMXML xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
xmlns:data="x-schema:#inLineSchema">
<Schema name="inLineSchema"
targetNamespace="http://www.plmxml.org/Schemas/PLMXMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlnslm="http://www.plmxml.org/Schemas/PLMXMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xml:lang="en">
.....
</Schema>
</PLMXML>
The rest of the schema, and the XML file follow this. If the schema is in a
seperate file, and I reference it from within the XML file, it validates
fine. If I put the schema file inline like this, I get a "cannot find the
declartion of element PLMXML error". I'm assuming that I'm calling the
schema incorrectly - can anyone show me the right way?
Thanks
Matt
declarations follow:
<PLMXML xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
xmlns:data="x-schema:#inLineSchema">
<Schema name="inLineSchema"
targetNamespace="http://www.plmxml.org/Schemas/PLMXMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlnslm="http://www.plmxml.org/Schemas/PLMXMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xml:lang="en">
.....
</Schema>
</PLMXML>
The rest of the schema, and the XML file follow this. If the schema is in a
seperate file, and I reference it from within the XML file, it validates
fine. If I put the schema file inline like this, I get a "cannot find the
declartion of element PLMXML error". I'm assuming that I'm calling the
schema incorrectly - can anyone show me the right way?
Thanks
Matt