I do not understand it. Could you elaborate a bit more, please?
Btw, I'm not using namespaces...I have enough problems already...

Thank you.


-----Mensaje original-----
De: Mark J. Stang [mailto:[EMAIL PROTECTED]
Enviado el: martes, 12 de noviembre de 2002 6:13
Para: [email protected]
Asunto: Re: how to get rid of the xml declaration on results?


When I do it internally, I use JDom, set the namespace and
then parse it.

HTH,

Mark

Matthew Van Horn wrote:

> My solution has been a small batch file to remove those declarations
> and wrap the whole thing in a <root></root> element
> Not elegant, but it works. If you find something better, let me know.
>
> On Tuesday, November 12, 2002, at 10:09 AM, Josema Alonso wrote:
>
> > Hi, all.
> >
> > When I run a query against one of my collections I get something like
> > this:
> > <?xml version="1.0"?>
> > <EquipmentType id="mic" xmlns:src="http://xml.apache.org/xindice/Query";
> > src:col="/db/xmtrader/Recording/Equipment/EquipmentType" src:key="mic">
> >  <Description lang="en">Microphone</Description>
> >  <Description lang="es">Micr�fono</Description>
> > </EquipmentType>
> >
> > <?xml version="1.0"?>
> > <EquipmentType id="player"
> > xmlns:src="http://xml.apache.org/xindice/Query";
> > src:col="/db/xmtrader/Recording/Equipment/EquipmentType"
> > src:key="player">
> >  <Description lang="en">Player</Description>
> >  <Description lang="es">Reproductor</Description>
> > </EquipmentType>
> >
> > <?xml version="1.0"?>
> > <EquipmentType id="preamp"
> > xmlns:src="http://xml.apache.org/xindice/Query";
> > src:col="/db/xmtrader/Recording/Equipment/EquipmentType"
> > src:key="preamp">
> >  <Description lang="en">Preamplifier</Description>
> >  <Description lang="es">Preamplificador</Description>
> > </EquipmentType>
> >
> > More or less is what I expected, but I'd prefer to have a root element
> > named
> > 'EquipmentTypes' and I would need to get rid of the xml declaration in
> > every
> > element. Is it possible?
> >
> > Thanks.
> >

--
Mark J Stang
System Architect
Cybershop Systems


Reply via email to