[Gambas-user] xml-bug

Jaap Cramer jaap_cramer at ...67...
Wed Jan 16 13:58:34 CET 2008


Hi again

I want to report some other bug.
I'm using the XML-modules and after exiting a sub-routine Gambas gives an error, exeption #11
I don't know how to use the GB.XML and GB.XML.XSTL since documentation is very poor. Is there someone who can make this?

I discovered at some fora 2 ways of reading an XML file.

the First is using class XMLDocument. With this way I get this error 11. Maybe because there is no xmldocument.close() ???
The second way is by using XMLReader. I find this a awkward method, because y have to read every single node, and you cant use XSLT, because XSLT.Transform() needs two xmldocuments as arguments...

How can I use XSLT and XML files?

greetings
Jaap

_______________________________

code:
PUBLIC s AS string

PUBLIC SUB XML_Query(f AS String)
  DIM x_Doc AS NEW XmlDocument
  DIM x_Xslt AS NEW XmlDocument
  DIM x_Q AS NEW XmlDocument
  DIM x_slt AS NEW Xslt
  
  x_Doc.Open(f) 
  x_xslt.Open("xslt.xml")
  x_Q = x_slt.Transform(x_Doc, x_xslt)
  
  s = x_Q.ToString("UTF-8")
END
_______________________________

Info:
Ubuntu 7:10
Gambas 2.0.0


_________________________________________________________________
Probeer Live Search: de zoekmachine van de makers van MSN! 
http://www.live.com/?searchOnly=true



More information about the User mailing list