It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

How to remove Tags from returned linestring?

Moderator: dafunkymunky

How to remove Tags from returned linestring?

Postby VBKey on Tue May 20, 2008 2:02 pm

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]
VBKey
 
Posts: 2
Joined: Tue May 20, 2008 1:55 pm

Who is online

Users browsing this forum: No registered users and 1 guest