fbastian
01-20-2010, 07:08 PM
hi all,
I was wondering if anyone has a skeleton or more developed code which will get rid of unwanted text in a txt file.
example below:
<gml:coord>
<gml:X>150.564466</gml:X>
<gml:Y>-25.3223620007281</gml:Y>
</gml:coord>
- (http://errdwas20/AIRS/AIRSServices/DownloadGML.ashx?LocationID=13156#) <gml:coord>
<gml:X>150.566276</gml:X>
<gml:Y>-25.2994270007276</gml:Y>
</gml:coord>
- (http://errdwas20/AIRS/AIRSServices/DownloadGML.ashx?LocationID=13156#) <gml:coord>
<gml:X>150.578045</gml:X>
<gml:Y>-25.2846840007273</gml:Y>
</gml:coord>
- (http://errdwas20/AIRS/AIRSServices/DownloadGML.ashx?LocationID=13156#) <gml:coord>
<gml:X>150.590719</gml:X>
<gml:Y>-25.2740360007271</gml:Y>
</gml:coord>
All i'd like to keep from this file are the coordinate numbers or the x and y if you like.
and if you can tell me how i can send them to a new txt file it would be great!
thank you.
I was wondering if anyone has a skeleton or more developed code which will get rid of unwanted text in a txt file.
example below:
<gml:coord>
<gml:X>150.564466</gml:X>
<gml:Y>-25.3223620007281</gml:Y>
</gml:coord>
- (http://errdwas20/AIRS/AIRSServices/DownloadGML.ashx?LocationID=13156#) <gml:coord>
<gml:X>150.566276</gml:X>
<gml:Y>-25.2994270007276</gml:Y>
</gml:coord>
- (http://errdwas20/AIRS/AIRSServices/DownloadGML.ashx?LocationID=13156#) <gml:coord>
<gml:X>150.578045</gml:X>
<gml:Y>-25.2846840007273</gml:Y>
</gml:coord>
- (http://errdwas20/AIRS/AIRSServices/DownloadGML.ashx?LocationID=13156#) <gml:coord>
<gml:X>150.590719</gml:X>
<gml:Y>-25.2740360007271</gml:Y>
</gml:coord>
All i'd like to keep from this file are the coordinate numbers or the x and y if you like.
and if you can tell me how i can send them to a new txt file it would be great!
thank you.