Page 1 of 1

Is anybody use LibXML2 library?

Posted: Mon Mar 30, 2009 5:46 am
by Alex Gustow
Hi all HMG-heads! :)

I tried (some months ago) examles about working with XML (in XMLDEMO) - OK, it's works, fine, go next folder...

Now I have task (for our office goals):

There is biiiig XML (output from recipe base) - size more than 20-30Mb (and it can be over 100Mb!).
I need read data from it's nodes/subnodes and play with data: manipulate, calculate, write to databases etc.

I got program from XMLDEMO, try to use it... and it's not so easy:

Example use Read() method to create HXMLDoc-object:

Code: Select all

oXmlDoc := HXMLDoc():Read( cFileIni )
At this moment I have looooong pause (30-40-60 sec.) - but it's not worst thing: than if I want read some info from oXmlDoc... I have nothing :oops:

Maybe it reads whole file to memory like MEMOREAD()?.. And have the same size limit (64K)?..

Well... I began to look around for alter way. To MSXML I wann't see - I want create applications for both main platforms (Win & Lin) and need crossplatform thing... I googled about it - and find (and Petr in our Russian-spoken HMG-forum advice me) "power thing" (like Petr said) LIBXML (LibXML2).

:?: Hmm... It's crossplatform (Win, Lin, UNIX too), it's free (MIT License), has sources and precompiled binaries, docs, examples (not a lot of... but for start it's enough)... it's rizes (last version - 2009 February)... Look at this:
http://xmlsoft.org/index.html

My question is: Anybody use(d) it? Anybody can tell something pro/contra/etc?.. Maybe there is easlier way to manipulate with XMLs (big size of course)?

Please (if you can) double your answer(s) to my office mail (I can't go to HMGforum each day):
gustow [dog] miac [dot] utk [dot] ru

Thanks!

Re: Is anybody use LibXML2 library?

Posted: Mon Mar 30, 2009 7:16 am
by Rathinagiri
This would be helpful for me too. :)

Re: Is anybody use LibXML2 library?

Posted: Mon Mar 30, 2009 9:02 am
by Alex Gustow
Hi Rathi!
How you solve this problem (XML-manipulating in Harbour apps)? What you use? "Standard" libs/funcs or some other?

Re: Is anybody use LibXML2 library?

Posted: Sat May 23, 2009 12:23 am
by Vanguarda
Hi my friends,

This would be helpful for me too.

I´m search in the web, but i not find nothing...


Regards,