[
Lists Home |
Date Index |
Thread 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[1]: 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.
Cheers
Rick Jelliffe
[1] http://www.topologi.com/
----- Original Message -----
From: "rajac" <rajac@ncmr.co.in>
To: <xml-dev@lists.xml.org>
Sent: Friday, February 22, 2002 6:31 AM
Subject: [xml-dev] Problem with XML Schema
Hi,
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.
Regards,
Raja
|