2007-07-31 05:50:11     XML

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2007-07-31 05:50:11     XML

Peter Nielsen (DENMARK)

Message: 42270   

 

Hi

 

Does anyone know how to read a xml document from userspace - maybe there is an API?

 

 

 

Peter

QuoteReplyEditDelete

 

 

2007-07-31 06:30:25     Re: XML

Mike Frysinger (UNITED STATES)

Message: 42272    use libxml2:

http://www.xmlsoft.org/

QuoteReplyEditDelete

 

 

2007-08-01 02:41:17     Re: XML

Peter Nielsen (DENMARK)

Message: 42296   

 

Hello Mike

 

Do you know if it is ported to uclinux?

 

Peter

QuoteReplyEditDelete

 

 

2007-08-01 05:11:28     Re: XML

Mike Frysinger (UNITED STATES)

Message: 42305    has anyone explicitly tested it ?  not that i know of ... does it cross-compile ?  yes

QuoteReplyEditDelete

 

 

2008-06-04 12:32:08     Re: XML

Ben Burleson (UNITED STATES)

Message: 56684   

 

Hi guys, just wondering if anyone has successfully ported libxml2.

 

I had to add some bfin-uclinux definitons in the libxml2 config.sub so it wouldn't complain about the machine-os name being passed in.  Now I get a long list of errors similar to this one:

 

../libxml2-2.6.11/elfgcchack.h:1754: error: 'xmlHashQLookup' aliased to undefined symbol 'xmlHashQLookup__internal_alias'

 

This is fixed by the patch outlined here:

 

http://viewcvs.globus.org/viewcvs.cgi/libxml2/elfgcchack.h?r1=1.1.1.1&r2=1.1.1.1.16.1

 

Now I get an error about iconv.h missing.

 

I'll continue to track this down, but if anyone has sucessfully ported this, please let me know!

 

I'll also post updates here.

 

 

 

**UPDATE**

 

I was able to compile libxml2 library by essentially removing iconv support.  I first tried to do this by adding a flag to my libxml2 makefile (--without-iconv, --with-iconv=no) but that didn't work.  So I resorted to commenting out the two sections in include/libxml/encoding.h surrounded by #ifdef LIBXML_ICONV_ENABLED.

 

The library compiled and copied into romfs/usr/lib/libxml2.a

 

Next to see if it is usable...

 

 

 

Thanks,

 

Ben

 

 

QuoteReplyEditDelete

 

 

2008-06-04 16:34:24     Re: XML

Mike Frysinger (UNITED STATES)

Message: 56696   

 

i dont know why you'd start with such an old version of libxml in the first place ...

 

we've merged libxml2-2.6.31 into the trunk uclinux-dist

QuoteReplyEditDelete

 

 

2008-06-04 19:15:36     Re: XML

Ben Burleson (UNITED STATES)

Message: 56710   

 

Thanks Mike,

 

I was working off 2008R1-RC8, but I'm grabbing a snapshot of the trunk now.

 

As for the libxml2 version...I thought I grabbed the latest off their site?

 

 

 

Cheers,

 

Ben

QuoteReplyEditDelete

 

 

2008-06-04 19:25:13     Re: XML

Mike Frysinger (UNITED STATES)

Message: 56711   

 

their download page says the latest is 2.6.32 ... you said you're using 2.6.11

 

i guess i need to update the version in our trunk as well from 2.6.31 to 2.6.32 ...

Attachments

    Outcomes