Lists Home |
Date Index |
It would help if you mentioned products names and platforms.
XML Schemas is large and comprehensive. Every implementation has known and unknown
shortfallings. Test suites are only now coming out, and there are still many "XML Schemas"
implementation based on earlier drafts of the specification floating around on systems.
Is 'PartyNote_V1' the top-level element?
-- That might indicate that you have not registered the correct schemaLocation and
the XML Schema processor has not found the declarations.
Does your schema use namespaces?
-- The lack of a namespace prefix on the error message may indicate that your
document does not have a correct xmlns declaration in-scope for PartyNote_V1.
I hope these two possibilities are useful. If you have access to a Windows platform,
you may find it useful to download our free validator GUI: for XML Schema validation it
uses Microsoft's excellent MSXML 4 library, which seems to be more mature and reliable than
Xerces at the current time.
----- Original Message -----
From: "rajac" <email@example.com>
Sent: Friday, February 22, 2002 6:31 AM
Subject: [xml-dev] Problem with XML Schema
when i validate the XML doc on a DTD. That is, the parser validates the XML file on a DTD. But the parser is not validating the XML file on a XML-Schema. Error: "org.xml.sax.SAXParseException: Element type "PartyNote_V1" must be declared" is thrown.
Actually this same thing works fine on windows. That is the parser is validating the same XML file on the XML-Schema on windows platform.
I could not find out the reason.
If the problem is not clear, please ask me.