Don't know if this is the only way, nor how to do it in XSP, but what you want to do is parse the XML. In Java (e.g. in a custom generator) you could say is something like:
InputSource inputSource = new InputSource(new ByteArrayInputStream(page.getBytes())); Parser parser = (Parser) manager.lookup(Parser.ROLE); parser.parse(inputSource, xmlConsumer); xmlConsumer is a handle for the next stage in a pipeline. I don't know if you can get hold of that in XSP. Anyway, hope that helps and isn't completely irrelevant! Regards, Upayavira On 4 Apr 2003 at 15:39, Ali Mesbah wrote: > > As quoted from Lionel Crine <[EMAIL PROTECTED]>: > > > document returned is escaped -> What does that mean? > > > I would expect: > > <?xml version="1.0"?> > <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="person.xsd" > xmlns:src="http://xml.apache.org/xindice/Query" > src:col="/db/person" > src:key="632dd5400392cab7000000f4103a2d4f"> > > <name>Marc</name> > <last_name>Jansen</last_name> > <phone>07503816784</phone> > <address>Laan 12</address> > <date_of_birth>1970-01-21</date_of_birth> > </person> > > but I get (this is what I call escaped): > > <?xml version="1.0"?> > <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="person.xsd" > xmlns:src="http://xml.apache.org/xindice/Query" > src:col="/db/person" > src:key="632dd5400392cab7000000f4103a2d4f"> > > <name>Marc<name> > <last_name>Jansen</last_name> > <phone>07503816784</phone> > <address>Laan 12</address> > <date_of_birth>1970-01-21</date_of_birth> > </persongt; > > > > > Lionel > > > > > > > > > At 13:53 04/04/2003 +0200, you wrote: > > > >I have an XSP which returns an XML document from the Xindice > > > >database. > > > > > > > >result = get the document from Xindice; > > > > > > > ><xsp:expr>result</xsp:expr> > > > > > > > >It goes all well except that the document returned is escaped so > > > >it is not actually XML anymore. Does anyone know how to tell XSP > > > >not to escape the result? > > > > > > > >Thanks, > > > >Ali > > > > > > > > > > > >-- > > > >-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 > > > > > > > >----------------------------------------------------------------- > > > >---- To unsubscribe, e-mail: > > > >[EMAIL PROTECTED] For additional commands, > > > >e-mail: [EMAIL PROTECTED] > > > > > > > > > ------------------------------------------------------------------ > > > --- To unsubscribe, e-mail: > > > [EMAIL PROTECTED] For additional commands, > > > e-mail: [EMAIL PROTECTED] > > > > > > > -- > > -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 > > > > -------------------------------------------------------------------- > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]