View Full Version : libxml
jmac698
11th March 2006, 01:27
Has anyone used this lib? I can read nodes but I can't get the value! I'm trying to read cuttermaran xml. If this doesn't work I'll have to make my own crappy parser ;(
tateu
11th March 2006, 10:01
Windows or other OS? C++ or only C? I'm not familiar with libxml but for windows and C++ I used TinyXML (http://sourceforge.net/projects/tinyxml) for a small project to both and read and write XML. I didn't do anything fancy with it but it was relatively easy to use.
dimzon
11th March 2006, 13:13
for C++ under Win32 I strongly reccomend MSXML4
jmac698
11th March 2006, 17:36
Ideally this library is crossplatform, or it would be the limiting factor, as my code is crossplatform.
I'm using freebasic actually.
fbide.freebasic.net/
I'm using the included bindings for my language. The example works, but it doesn't work on my file.
<?xml version="1.0" standalone="yes"?>
<StateData xmlns="http://cuttermaran.kickme.to/StateData.xsd">
<usedVideoFiles FileID="0" FileName="capture.M2V" />
<?xml version="1.0" ?>
- <gjob:Helping xmlns:gjob="http://www.gnome.org/some-location">
- <gjob:Jobs>
- <gjob:Job>
<gjob:Project ID="3" />
<gjob:Application>GBackup</gjob:Application>
<gjob:Category>Development</gjob:Category>
I can read the second example but not the first, is there any reason for that?
TinyXML: I don't think I can use that with basic...
msxml4: maybe, there's a util to convert headers to the .bi I need, but I can't find that reference again :(
I found http://www.easysw.com/~mike/mxml/ too.
I'm a little lost, if my language can call c++ or c libraries, and how to convert a line in .h file to a .bi file... :(
Most important: would GPL let me use msxml4? I think not...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.