Matt McMinn
Usenet Archive
- Joined
- Jun 26, 2001
- Messages
- 7
- Reaction score
- 0
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" xmlns
lm="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
<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" xmlns
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