You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Roel Croonenberghs <Ro...@sofico.be> on 2007/01/09 12:51:55 UTC

namespace removed from xml

Hello,

I use 
SAXParser parser    (org.apache.excalibur.xml.sax.SAXParser)
parser.parse(input, webServiceHandler);

to treat the info I got from webservices in xml format.
I receive somethig like 
<?xml version="1.0" encoding="UTF-8"?><Envelope 
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><data><Driver><id 
xsi:nil="false">805330</id>........</Driver></data></Envelope>

but after i send it through the parser, i get 
<SofEnvelope ><data><MWSDriver><id xsi:nil="false">805330</id>
........</Driver></data></Envelope>

so the xmlns namsespace definition has disappeared.

What can I do to  prevent this? I read something about 
parser.setNamespaceAware(true); but that is not a valid method of the 
parser I use.


Greetings,


Roel Croonenberghs