Re: Regarding XML Schema on Solaris.

 Hi Raja,
 
 The problem, you have reported looks to be related to Xerces 2.0.0, So please
 post your problem on xerces-j-user@xml.apache.org alias. It is always better
 to attach the test-code w/ the mail.
 
 It looks like entityresolver is not able to pick-up the file. Make sure, you
 have supplied the correct path, as Xerces 2 by default uses pwd. Or write
 your own EntityResolver.
 
 You may also try on latest version of Xerces 2 from 
 http://gump.covalent.net/jars/latest/xml-xerces2/
 
 Thanks 
 
 Gopal
 -----

Raja wrote:-
> 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. 
> This same thing works fine on Windows. That is the parser is validating the 
same XML file on the XML-Schema on windows platform.
> 
>   On Solaris7,
>      The parser is xerces2.0.0. under  JDK1.2 on Solaris7. The following two 
lines indicates the Top level element and NameSpace.
> <?xml version="1.0"?>
> <PartyNote_V1 xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="PartyNote_V1.xsd">
> 
> On Windows2000,
>    The parser is xerces2.0.0. under  JDK1.3 on Windows2000.  The same XML 
schema works fine on this setup on Windows2000.
> 
> But i could not find why it is not working on Solaris. The only difference 
between Solaris and Windows is JDK1.3 is on Wimdows and JDK1.2 is on Solaris. 
But i don't think this makes the difference.  Because the Java file which 
actually parses the XML doc gets compiled fine on both platforms.
> 
> 
>  When i run on Solaris7,  it throws error saying "the elements(all the 
elements) are not declared".  I think XML doc is not able to locate the 
Schema(while running on Solaris)  or Some problem with Solaris environment.
> 
>   If the problem is not clear, please ask me.
> 
> Regards,
> Raja
> 
> 
> 
> 

Received on Friday, 22 February 2002 04:06:46 UTC