VBKey
Joined: 20 May 2008 Posts: 2
|
Posted: Tue May 20, 2008 3:02 pm Post subject: How to remove Tags from returned linestring? |
|
|
I need to put a returned string, which contains two similar addressed onto a listbox for user to choose which address they want to continue the search. I have managed to write the whole string onto .txt and retrieve them in the listbox with 2 items, but I could not remove the <tag>s in the returned string.
The returned string from XML is something like "<pre><results><record><rid>84752</rid><unitnum>4</unitnum><streetnum>46</streetnum><street>VIC</street><streettyp>ST</streettyp><sub>GLEORCHY</sub><code>2020</code><state>CAN</state><salecount>0</salecount></record><record><rid>103524</rid><unitnum>A4</unitnum><streetnum>46A</streetnum><street>VIC</street><streettyp>ST</streettyp><sub>GLENORCHY</sub><code>2020</code><state>CAN</state><salecount>1</salecount></record></results></pre>"
The itmes in my listbox now:
<record><id>84752</id><unitnum>4</unitnum><streetnum>46</streetnum><street>VIC</street><typ>ST</typ><sub>GLEORCHY</sub><code>2000</code><state>CAN</state><count>0</count></record>
<record><id>103524</id><unitnum>A4</unitnum><streetnum>46A</streetnum><street>VIC</street><typ>ST</typ><sub>GLENORCHY</sub><code>2000</code><state>CAN</state><count>1</count></record>
Only the addresses need to be displayed from unitnum. How can I remove the Tags?? Should I cansider to save the returned string into an array instead? Because the chosen address information need to be returned for further processing too...
Your help is much appreciated.[/b] |
|