Hi Venu, Andrew and all, Just to confirm Venu's impression: this bug has been fixed in CVS, but did exist in 2.4.0. We became aware of it just after 2.4.0 had been released, unfortunately.
Cheers, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 905-413-3519, T/L 969-3519 E-mail: [EMAIL PROTECTED] |---------+----------------------------> | | "K. Venugopal" | | | <[EMAIL PROTECTED]| | | com> | | | | | | 04/29/2003 07:25 | | | AM | | | Please respond to| | | xerces-j-user | | | | |---------+----------------------------> >---------------------------------------------------------------------------------------------------------------------------------------------| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Re: XMLGrammarBuilder NullPointerException | | | | | >---------------------------------------------------------------------------------------------------------------------------------------------| Hi Andy , I am not getting null pointer exception with latest code in CVS. It seems problem is fixed . Regards venu Andrew Fleet wrote: >Hi, > this may be a simple usage issue, but I'm trying to use XMLGrammarBuilder >for validation of an instance document against a schema. I'm using the >following >command; > >java xni.XMLGrammarBuilder -a name.xsd -i name.xml > >and get, > >C:\XMLSchema>java xni.XMLGrammarBuilder -a name.xsd -i name.xml >java.lang.NullPointerException > at >org.apache.xerces.parsers.IntegratedParserConfiguration.configurePipe >line(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.reset(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > at xni.XMLGrammarBuilder.main(Unknown Source) > >Any thoughts? > >Platform Windows 2000, JDK 1.4.1_02, xerces Version 2.4, xsd and xml files >below, > >Thanks, > >Andy > >C:\XMLSchema>type name.xsd ><?xml version = "1.0" encoding = "UTF-8"?> ><xs:schema xmlns:xs = "http://www.w3.org/2001/XMLSchema"> ><xs:element name = "Name"> ><xs:complexType> ><xs:sequence> ><xs:element name = "firstName" type = "xs:string" minOccurs = "0"/> ><xs:element name = "middleName" type = "xs:string" /> ><xs:element name = "lastName" type = "xs:string" /> ></xs:sequence> ></xs:complexType> ></xs:element> ></xs:schema> > > > >C:\XMLSchema>type name.xml ><?xml version = "1.0" encoding = "UTF-8"?> ><Name xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >xsi:noNamespaceSchemaLocation="name.xsd"> ><firstName>John</firstName> ><middleName>C</middleName> ><lastName>Fleet</lastName> > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]