Sorry forgot to mention I'm using SAX2. --- Gareth Reakes <[EMAIL PROTECTED]> wrote:
> Hi, > > Take a look at the DOM level 3 method > normalizeDocument. > > Cheers, > > Gareth > > Ahab Abouzour wrote: > > I have exactly the same problem as Michael below. > I > > searched the forum but didn't find an answer to > that. > > > > I tried setting the following features to false > but I > > still got the error: > > validation, namespaces, and namespace-prefixes > > > > Can you please advice what feature/property I need > to > > set on the parser to make it not check/resolve > > namespace prefixes? Basically ignore this type of > > error completely. > > > > I'm using xerces 2.5.0 and moved to the latest > 2.6.2 > > > > Thanks, > > > > > ****************************************************** > > > > Hi, > > > > I have a servlet that receives SOAPMessages like > the > > following: > > > > > > <SOAP-ENV:Envelope > > > > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > > <SOAP-ENV:Body> > > <ns1:gimmeQuote xmlns:ns1="urn:TEST3"> > > <x xsi:type="xsd:string">av1</x> > > <y xsi:type="xsd:string">bv1</y> > > </ns1:gimmeQuote> > > </SOAP-ENV:Body> > > </SOAP-ENV:Envelope> > > > > > > I extract the content of the SOAPBody ie the > > following: > > > > <ns1:gimmeQuote xmlns:ns1="urn:TEST3"> > > <x xsi:type="xsd:string">av1</x> > > <y xsi:type="xsd:string">bv1</y> > > </ns1:gimmeQuote> > > > > > > for later processing, but when I try to parse it i > get > > errors about xsi not being bound: > > > > The prefix "xsi" for attribute "xsi:type" is not > > bound. > > > > Is there a generic way of adding namespace > > declarations to each element > > where they are used without manually going in and > > adding the namespace > > declarations. > > > > > > Thanx in advance, > > Michael > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > -- > Gareth Reakes, Managing Director Parthenon > Computing > +44-1865-811184 > http://www.parthcomp.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
