[Gambas-user] xmlreader

Benoit Minisini gambas at ...1...
Fri Jan 4 15:49:04 CET 2008


On vendredi 4 janvier 2008, gaupe wrote:
> using Gambas2.0
>
> I am still having problems reading back xmldata i wrote
> I cant find out how to read back the attributes lat lon
> how is that done?
>
> (the example does not produce very much valid xml but its more for the
> example)
>
> please let me know also if  i am doing it SO wrong thats answering is
> hopeless...... ;-)
>
> from test.xml
>
> PUBLIC SUB xmlwrite()
>     DIM xml AS xmlwriter
>      xml = NEW xmlwriter
>     xml.Open("test.xml", TRUE, "UTF-8")
>
>
>       xml.StartElement("wpt", ["lat", "60.1419274", "lon", "11.1703764"])
>
>       xml.EndElement() ' End wpt
>
>    xml.EndDocument()
> END

Personnally I never used the xml components, so I can't really tell you...

-- 
Benoit Minisini




More information about the User mailing list