Is anybody use LibXML2 library?

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
Alex Gustow
Posts: 290
Joined: Thu Dec 04, 2008 1:05 pm
Location: Yekaterinburg, Russia
Contact:

Is anybody use LibXML2 library?

Post 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!
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Is anybody use LibXML2 library?

Post by Rathinagiri »

This would be helpful for me too. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Alex Gustow
Posts: 290
Joined: Thu Dec 04, 2008 1:05 pm
Location: Yekaterinburg, Russia
Contact:

Re: Is anybody use LibXML2 library?

Post by Alex Gustow »

Hi Rathi!
How you solve this problem (XML-manipulating in Harbour apps)? What you use? "Standard" libs/funcs or some other?
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Is anybody use LibXML2 library?

Post by Vanguarda »

Hi my friends,

This would be helpful for me too.

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


Regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
Post Reply