HighDots Forums  

parsing xml document

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss parsing xml document in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ramya.subramanya webforumsuser@macromedia.com
 
Posts: n/a

Default 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





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.