Re: [xml] Problem with MSYS and MINGW: undefined reference to _imp__xmlFree

2008-11-20 Thread Friedrich Beckmann

Hi,

i digged in the dirt and I guess I found that the reason is that the
libxml2.lib import library is not compatible with MINGW.
I described the solution here: 
http://bugzilla.gnome.org/show_bug.cgi?id=561340


I thought that they are compatible but it seems they are not.

Regards

Friedrich

Roumen Petrov schrieb:

The change look incorrect.
Check project defines. Did the build system define IN_LIBXML ?


___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


[xml] CVE-2008-4226 and CVE-2008-4225.

2008-11-20 Thread f rom
Which version of libxml2 do I need to download that solves : CVE-2008-4226 and 
CVE-2008-4225. 

This update fixes an integer overflow in libxml2 that could lead to
memory corruption and arbitrary code execution. (CVE-2008-4226)
Thanks to: Drew Yao of Apple Product Security

Thanks
Joe



  
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


Re: [xml] [Proposal] How about write a book for LibXML2?

2008-11-20 Thread Daniel Veillard
On Wed, Nov 19, 2008 at 10:44:42AM +0100, Elvis Stansvik wrote:
 2008/11/19 Elvis Stansvik [EMAIL PROTECTED]:
  No problem. I'll get back to you when I have a destination for a
  wiki.xmlsoft.org A record.
 
 Okay. The web hotel tech support answered and I think I'll be able to
 replicate the pretty URL scheme on their servers using mod_rewrite
 rules in the .htaccess. You can now put in a A record for
 wiki.xmlsoft.org pointing at:
 
 62.20.1.160
 
 He has put up a virtual host for us on their server, but it won't go
 active until during the night. So I'll try to do the migration
 sometime tomorrow.

  Done, thanks,  it may take a bit of time to propagate to DNSes

Daniel

-- 
Daniel Veillard  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
[EMAIL PROTECTED]  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


Re: [xml] CVE-2008-4226 and CVE-2008-4225.

2008-11-20 Thread Daniel Veillard
On Thu, Nov 20, 2008 at 05:06:35AM -0800, f rom wrote:
 Which version of libxml2 do I need to download that solves : CVE-2008-4226 
 and CVE-2008-4225. 
 
 This update fixes an integer overflow in libxml2 that could lead to
 memory corruption and arbitrary code execution. (CVE-2008-4226)
 Thanks to: Drew Yao of Apple Product Security

  SVN head, there have been no release with the fix yet, You should
be able to grab the snapshot if you really want a tarball.

Daniel

-- 
Daniel Veillard  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
[EMAIL PROTECTED]  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


[xml] Getting Sub node

2008-11-20 Thread vijaykumar manchala



 Hi Veillard, 
 
 Currently am using Libxml for xml file parsing in the basic level.
 I have one query 
 
  If I want to an access an element or subnode which is that api  we have to 
use.
  instead of looping in my application code.
 
  suggest me what to do 
 
please give an idea  in this regard 
 
Thanks 
Rahul

--- On Thu, 20/11/08, Daniel Veillard [EMAIL PROTECTED] wrote:

From: Daniel Veillard [EMAIL PROTECTED]
Subject: Re: [xml] CVE-2008-4226 and CVE-2008-4225.
To: f rom [EMAIL PROTECTED]
Cc: xml@gnome.org
Date: Thursday, 20 November, 2008, 9:39 PM

On Thu, Nov 20, 2008 at 05:06:35AM -0800, f rom wrote:
 Which version of libxml2 do I need to download that solves : CVE-2008-4226
and CVE-2008-4225. 
 
 This update fixes an integer overflow in libxml2 that could lead to
 memory corruption and arbitrary code execution. (CVE-2008-4226)
 Thanks to: Drew Yao of Apple Product Security

  SVN head, there have been no release with the fix yet, You should
be able to grab the snapshot if you really want a tarball.

Daniel

-- 
Daniel Veillard  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
[EMAIL PROTECTED]  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml



  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


Re: [xml] Problem with MSYS and MINGW: undefined reference to _imp__xmlFree

2008-11-20 Thread Roumen Petrov

Friedrich Beckmann wrote:

Hi,

i digged in the dirt and I guess I found that the reason is that the
libxml2.lib import library is not compatible with MINGW.
I described the solution here: 
http://bugzilla.gnome.org/show_bug.cgi?id=561340


I thought that they are compatible but it seems they are not.


May be is bug in binutils for mingw32 host.

Please, could you report in mingw32 bug tracking system and to close 
http://bugzilla.gnome.org/show_bug.cgi?id=561340.


Roumen
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


Re: [xml] Problem with MSYS and MINGW: undefined reference to _imp__xmlFree

2008-11-20 Thread Friedrich Beckmann

Hi Roumen,

i searched the mingw wiki and they say that the import
libraries are not compatible between MSVC and MINGW.
I described it in the bugzilla:
http://bugzilla.gnome.org/show_bug.cgi?id=561340
There are ways to convert between the two, so I guess it
would be very good if the mingw import library could be
added to the package in the future. I you look for example
at the glib package, they do it like that.

Regards

Friedrich

Roumen Petrov schrieb:

Friedrich Beckmann wrote:

Hi,

i digged in the dirt and I guess I found that the reason is that the
libxml2.lib import library is not compatible with MINGW.
I described the solution here: 
http://bugzilla.gnome.org/show_bug.cgi?id=561340


I thought that they are compatible but it seems they are not.


May be is bug in binutils for mingw32 host.

Please, could you report in mingw32 bug tracking system and to close 
http://bugzilla.gnome.org/show_bug.cgi?id=561340.


Roumen



___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


[xml] xml output streaming and c14n

2008-11-20 Thread Prashant R
I have a requirement, where I would not want to have the entire xml data in
memory and preferably writing out canonicalized XML to IO . I had a few
questions to understand this better

I was planning on doing the following

   - creating an OutputBuffer using the API -
xmlOutputBufferCreateIOhttp://xmlsoft.org/html/libxml-xmlIO.html#xmlOutputBufferCreateIO(
   
xmlOutputWriteCallbackhttp://xmlsoft.org/html/libxml-xmlIO.html#xmlOutputWriteCallbackiowrite,
   
xmlOutputCloseCallbackhttp://xmlsoft.org/html/libxml-xmlIO.html#xmlOutputCloseCallbackioclose,
void * ioctx,
   
xmlCharEncodingHandlerPtrhttp://xmlsoft.org/html/libxml-encoding.html#xmlCharEncodingHandlerPtrencoder)
// as I need to stream to I/O
   - then  using the API
xmlTextWriterPtrhttp://xmlsoft.org/html/libxml-xmlwriter.html#xmlTextWriterPtrxmlNewTextWriter
(
   
xmlOutputBufferPtrhttp://xmlsoft.org/html/libxml-tree.html#xmlOutputBufferPtrout)
, to create an xmlWriterObject


   - write out the xml nodes based on my application logic


Quesions
1. When will the actual write ( to I/O , in my case )occur ? Could it occur
before the entire document is fully completed?

2. Is there a way where I could stream xml data directly to IO without
building the tree in memory ( using DOM API's)?

3 If there is a way to do (2) , then is there a way to specify that the
output be canonicalized ?

Thanks in advance
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


Re: [xml] xml output streaming and c14n

2008-11-20 Thread Aleksey Sanin

Look at testC14N.c for a c14n example.

Aleksey

Prashant R wrote:
I have a requirement, where I would not want to have the entire xml data 
in memory and preferably writing out canonicalized XML to IO . 
I had a few questions to understand this better 

I was planning on doing the following 


* creating an OutputBuffer using the API - xmlOutputBufferCreateIO
  http://xmlsoft.org/html/libxml-xmlIO.html#xmlOutputBufferCreateIO
  (xmlOutputWriteCallback
  http://xmlsoft.org/html/libxml-xmlIO.html#xmlOutputWriteCallback
  iowrite, xmlOutputCloseCallback
  http://xmlsoft.org/html/libxml-xmlIO.html#xmlOutputCloseCallback
  ioclose, void * ioctx, xmlCharEncodingHandlerPtr
  http://xmlsoft.org/html/libxml-encoding.html#xmlCharEncodingHandlerPtr
  encoder) // as I need to stream to I/O
* then  using the API  xmlTextWriterPtr
  http://xmlsoft.org/html/libxml-xmlwriter.html#xmlTextWriterPtr
  xmlNewTextWriter (xmlOutputBufferPtr
  http://xmlsoft.org/html/libxml-tree.html#xmlOutputBufferPtr out)
  , to create an xmlWriterObject

* write out the xml nodes based on my application logic


Quesions
1. When will the actual write ( to I/O , in my case )occur ? Could it 
occur before the entire document is fully completed?


2. Is there a way where I could stream xml data directly to IO without 
building the tree in memory ( using DOM API's)?


3 If there is a way to do (2) , then is there a way to specify that the 
output be canonicalized ?


Thanks in advance





___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml

___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml