parsing xml document -
07-14-2003
, 05:33 AM
I am writing an extension for Dreamweaver.in the process , i would want to parse an XML document. I would like to know the way XML document is parsed.I would want to parse the XML document,and retrieve elements within a particular tag. For example,if this is the XML document,
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <ns1:getGuidResponse xmlns:ns1="http://oracle/portal/webservice/wcm/ContentManagement.wsdl" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <return xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array" ns2:arrayType="xsd:string[10]">
<item xsi:type="xsd:string">BCE7E30E38AB0898E034080020AA 8ACA</item>
<item xsi:type="xsd:string">BEE21757564C3F6CE034080020AA 8ACA</item>
<item xsi:type="xsd:string">BF5A5DB0A9DC7475E034080020AA 8ACA</item>
<item xsi:type="xsd:string">BF5A5DB0A9DF7475E034080020AA 8ACA</item>
<item xsi:type="xsd:string">BF5A5DB0A9E27475E034080020AA 8ACA</item>
<item xsi:type="xsd:string">BF5A5DB0A9E57475E034080020AA 8ACA</item>
<item xsi:type="xsd:string">BFD3BD47AF7D4B34E034080020AA 8ACA</item>
<item xsi:type="xsd:string">BFD3BD47AF894B34E034080020AA 8ACA</item>
<item xsi:type="xsd:string" xsi:null="true" />
<item xsi:type="xsd:string" xsi:null="true" />
</return>
</ns1:getGuidResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
All I want to do is to get the text within <item xsi:type="xsd:string"> & </item> tag.
Please do reply....
Ramya |