Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - XML library?: (7 Items)
   
XML library?  
I need an XML parser (SAX) for neutrino.  I've tried searching, examining header files, but I'm just spinning my wheels.
  I've even asked an application support engineer from QNX - he had no clue.

There is libxml.a - where can I find documentation?  Is this similar enough to libxml2?

Can anyone point me in a good direction?  

Thanx!
Tim
Re: XML library?  
On Thu, Mar 13, 2008 at 06:37:54PM -0400, Tim Gessner wrote:
> I need an XML parser (SAX) for neutrino.  I've tried searching, examining header files, but I'm just spinning my 
wheels.  I've even asked an application support engineer from QNX - he had no clue.
> 
> There is libxml.a - where can I find documentation?  Is this similar enough to libxml2?
> 
> Can anyone point me in a good direction?  

libxml2 builds under pkgsrc:
http://community.qnx.com/sf/projects/pkgsrc

-seanb



# pkg_info | grep xml

xmlcatmgr-2.2nb1    XML and SGML catalog manager
libxml2-2.6.30      XML parser library from the GNOME project

Re: XML library?  
Thanx.  It appears that this will get the libraries onto my Neutrino box.  I am developing under windows targeting 
Neutrino for x86.  So this isn't quite what I'm looking for.
Re: XML library?  
On Fri, 2008-03-14 at 14:38 -0400, Tim Gessner wrote:
> Thanx.  It appears that this will get the libraries onto my Neutrino
> box.  I am developing under windows targeting Neutrino for x86.  So
> this isn't quite what I'm looking for.

Well, if that library matches your technical as well as legal
requirements, one thing you can do is:

1) configure on self hosted (you could get vmplayer for free and install
it on your windows system, and then setup a vmware self hosted for that)
2) compile on self hosted > save log to file.
3) grab the configs
4) using (2)+(3), setup a qnx directory hierarchy to cross compile, and
throw away the original library makefiles.

This works fairly well for libraries that do not have weird
dependencies/compilation requirements.  I've done this successfully for
certain pieces of software (although I've not tried with libxml).

There are things that can arise, such as if the library/program uses
it's own hardware detection routines as part of the configuration.  In
this case, you have to be all the more careful when you do (3),(4).

Re: XML library?  
> I need an XML parser (SAX) for neutrino.  I've tried searching, examining 
> header files, but I'm just spinning my wheels.  I've even asked an application
>  support engineer from QNX - he had no clue.
> 
> There is libxml.a - where can I find documentation?  Is this similar enough to
>  libxml2?
> 
> Can anyone point me in a good direction?  
> 
> Thanx!
> Tim


Another option if you are ok with C++ is to use the Poco library.  It supports QNX6 ( just need to modify a script for 6
.3.2) http://pocoproject.org/poco/info/index.html

I don't know about doing it from windows though.
RE: XML library?  
If you go this route, keep in mind that the shell is not case sensitive on
Windows. So, calling QCC -Vgcc_ntox86 on self hosted will invoke the C++
compiler, but on Windows (even in Cygwin), will invoke qcc -Vgcc_ntox86,
which is the C compiler. You'd work around this by changing the call to QCC
to qcc -lang-c++.

Cheers,
-Brian

> -----Original Message-----
> From: Mario Charest [mailto:mcharest@zinformatic.com] 
> Sent: Friday, March 14, 2008 15 44
> To: ostech-core_os
> Subject: Re: XML library?

> 
> Another option if you are ok with C++ is to use the Poco 
> library.  It supports QNX6 ( just need to modify a script for 
> 6.3.2) http://pocoproject.org/poco/info/index.html
> 
> I don't know about doing it from windows though.
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post5835
> 
Re: XML library?  
I am using libxml2 the ide provided
but i donnot know how to implement this line
gcc -'xml2-config --cflags' tree2.c o tree 

especially for the  -'xml2-config --cflags' 

could u help me out ? 
 3x a lot!