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
begin:vcard n:Stang;Mark x-mozilla-html:TRUE adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Mark Stang end:vcard