[Gambas-user] xml-bug
Benoit Minisini
gambas at ...1...
Thu Jan 17 14:29:45 CET 2008
On mercredi 16 janvier 2008, Jaap Cramer wrote:
> 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
>
>
Please can you send your project, or at least the xml files opened by the
function that crashes?
Thanks in advance.
Regards,
--
Benoit Minisini
More information about the User
mailing list