[Gambas-user] xml-bug

Jaap Cramer jaap_cramer at ...67...
Thu Jan 17 15:05:05 CET 2008


Hi Benoit

After the example of Mike I changed something, using XMLS as class and not as Object.

Now doing Xslt.Transform(.., ..), in stead of 

DIM ObjXslt as new xslt
Objxslt.transform(.., ..) etc.

I dont know why, but that seems to have solved my problem. Thanks anyway :-)

Jaap

----------------------------------------
> From: gambas at ...1...
> To: gambas-user at lists.sourceforge.net
> Date: Thu, 17 Jan 2008 14:29:45 +0100
> Subject: Re: [Gambas-user] xml-bug
> 
> 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
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

_________________________________________________________________
Nieuw: Windows Live Messenger 2008! Gratis downloaden
http://get.live.com/messenger



More information about the User mailing list