Re: 'Embedded' XML

"Michael Kay" <[email protected]> Wed, 20 May 2009 06:17:56 +0100
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <2D4FE7FEB9524235B534802ABF0A89B2@Sealion>
Having

<?xml version=3D"1.0" encoding=3D"utf-8"?>

in the middle of a document means it's not a well-formed XML document. No
XML tools are going to help you process non-XML: for that you need a non-XML
tool such as Perl.

Michael Kay
http://www.saxonica.com/
 =


> -----Original Message-----
> From: [email protected] =

> [mailto:[email protected]] On Behalf Of =

> Bruno Domenici
> Sent: 19 May 2009 23:48
> To: [email protected]
> Subject: [exslt] 'Embedded' XML
> =

> Hi,
> =

> =

> Is it possible use EXLST to extract a 'embedded' xml like this:
> =

> <soap:Envelope xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"
> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
> xmlns:soap=3D"http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:env=3D"http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:dp=3D"http://www.datapower.com/schemas/management">
> <soap:Body>
> <GetCidadesResponse xmlns=3D"http://wseapisul.apisul.com.br">
> <GetCidadesResult><?xml version=3D"1.0"
> encoding=3D"utf-8"?><APISUL><CIDADES Quantidade=3D"1">
> =A0 <CIDADE>
> =A0=A0=A0 <CD_CIDADE>3681</CD_CIDADE>
> =A0=A0=A0 <DS_CIDADE>SAO PAULO</DS_CIDADE>
> =A0=A0=A0 <DS_UF>SP</DS_UF>
> =A0=A0=A0 <DS_PAIS>BRASIL</DS_PAIS>
> =A0 </CIDADE>
> </CIDADES></APISUL></GetCidadesResult></GetCidadesResponse></s
> oap:Body></soap:Envelope>
> =

> I have to extract values from the GetCidadesResult node. I =

> don't know how to XPath this, even how exslt could help me.
> =

> Any idea!?
> =

> =

> Thanks!
> =

> --
> Bruno D.
> _______________________________________________
> exslt mailing list
> [email protected]
> http://www.exslt.org/list