Title: RE: Problem getting namespaceURI from SAX endElement event

Thanks to all for helping out.

I did a search before posting but my search was looking for a posting with namespaceURI and endElement.

Thanks again,

Rida

-----Original Message-----
From: James Bates [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 23, 2002 9:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem getting namespaceURI from SAX endElement event


I've had the same problem, and Elena Litani had at the time kindly pointed out
that is a known issue with the latest Xerces versions, but that the CVS
version of Xerces has already fixed it.

To use the latest Xerces, you should therefore probably obtain the CVS
version.

James

On Wednesday 23 October 2002 18:17, Rida Ligurs wrote:
> Hi there,
>
> I've just upgrade to Xerces 2.2.0 from 1.4.4 and found that the SAX parser
> isn't behaving in the same way.
>
>
> I have a sample document that I parse using the DocumentTracer sample
> included with Xerces 2.2.0.  For some reason the namespaceURI on all
> endElements are missing.
>
>
> Here's my sample document:
>
>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
>       <SOAP-ENV:Header>
>               <prop:properties SOAP-ENV:mustUnderstand="1"
> xmlns:prop="urn:schemas-company-com:Test:Properties:2.0">
>                       <prop:id>01</prop:id>
>               </prop:properties>
>       </SOAP-ENV:Header>
>       <SOAP-ENV:Body/>
> </SOAP-ENV:Envelope>
>
>
>
> Here's my command line from DocumentTracer:
>
> java -classpath xercesImpl.jar;xercesSamples.jar;xmlParserAPIs.jar
> sax.DocumentTracer file:/c:/test/test.xml
>
>
>
> Here's the output from DocumentTracer:
>
> setDocumentLocator(locator=org.apache.xerces.parsers.AbstractSAXParser$Loca
>t [EMAIL PROTECTED])
> startDocument()
>
> startPrefixMapping(prefix="SOAP-ENV",uri="http://schemas.xmlsoap.org/soap/e
>n velope/")
>
> startElement(uri="http://schemas.xmlsoap.org/soap/envelope/",localName="Env
>e lope",qname="SOAP-ENV:Envelope",attributes={})
>   characters(text="\n\t")
>
> startElement(uri="http://schemas.xmlsoap.org/soap/envelope/",localName="Hea
>d er",qname="SOAP-ENV:Header",attributes={})
>    characters(text="\n\t\t")
>
> startPrefixMapping(prefix="prop",uri="urn:schemas-company-com:Test:Properti
>e s:2.0")
>
> startElement(uri="urn:schemas-company-com:Test:Properties:2.0",localName="p
>r
> operties",qname="prop:properties",attributes={{uri="http://schemas.xmlsoap.
>o
> rg/soap/envelope/",localName="mustUnderstand",qname="SOAP-ENV:mustUnderstan
>d ",type="CDATA",value="1"}})
>     characters(text="\n\t\t\t")
>
> startElement(uri="urn:schemas-company-com:Test:Properties:2.0",localName="i
>d ",qname="prop:id",attributes={})
>      characters(text="01")
>     endElement(uri="",localName="id",qname="prop:id")
>     characters(text="\n\t\t")
>    endElement(uri="",localName="properties",qname="prop:properties")
>    endPrefixMapping(prefix="prop")
>    characters(text="\n\t")
>   endElement(uri="",localName="Header",qname="SOAP-ENV:Header")
>   characters(text="\n\t")
>
> startElement(uri="http://schemas.xmlsoap.org/soap/envelope/",localName="Bod
>y ",qname="SOAP-ENV:Body",attributes={})
>
> endElement(uri="http://schemas.xmlsoap.org/soap/envelope/",localName="Body"
>, qname="SOAP-ENV:Body")
>   characters(text="\n")
>  endElement(uri="",localName="Envelope",qname="SOAP-ENV:Envelope")
>  endPrefixMapping(prefix="SOAP-ENV")
> endDocument()
>
>
>
> Does anyone know why I'm not getting any uri values for my endElements?
>
>
> Hope someone can point me in the right direction!
>
>
> Rida


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to