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:#inLineS chema">
* * <Schema name="inLineSch ema"
targetNamespace ="http://www.plmxml.org/Schemas/PLMXMLSchema"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:plm="http ://www.plmxml.org/Schemas/PLMXMLSchema"
elementFormDefa ult="qualified"
attributeFormDe fault="unqualif ied"
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