[xml] query on xmlSetDocCompressMode

2008-05-14 Thread Senthil Nathan
would be using would increase in size hugely for which I need to optimize the memory usage of the xmlDocPtr. Please give your suggestions. Thanks Senthil Nathan R ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org

Re: [xml] indentation after adding new nodes

2008-03-07 Thread Senthil Nathan
I used xmlSaveFile("file.xml", docTree); This just dumps the xmlDocPtr docTree to "file.xml" without any indentation. Is there any options in libxml2 to set it properly. Thanks Senthil On 3/7/08, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > Hi, > > Senthil

Re: [xml] indentation after adding new nodes

2008-03-06 Thread Senthil Nathan
ROTECTED]> wrote: > Hi, > > Senthil Nathan wrote: > > I tried using the xmlCopyDocNode( ) and xmlCopyNode( ). It copies the > node > > but the indentation is not proper. > > There is no indentation in an XML tree, but there may be text nodes that > contain whitespa

[xml] indentation after adding new nodes

2008-03-06 Thread Senthil Nathan
Hi, I tried using the xmlCopyDocNode( ) and xmlCopyNode( ). It copies the node but the indentation is not proper. How can we set the indentation in libxml2? Thanks Senthil ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail

[xml] UTF-8 encoding error

2008-02-27 Thread Senthil Nathan
Hi All, I'm not sure is this the error thrown from libxml2 or the general xml standards error. But please let me know, if there is any error in the sample data shown below which could throw this error. Or Any idea on why this encoding error occurred with this particular data. Thanks Se

Re: [xml] problem in using xmlAddChildList - need help

2008-02-14 Thread Senthil Nathan
Any idea on this problem would be really helpful. Thanks Senthil Nathan R On 2/14/08, Senthil Nathan <[EMAIL PROTECTED]> wrote: > > Hi All, > I'm trying to use xmlAddChildList( ) and seems there is a strange problem > in adding this > child list to the doctree (xmlDoc

[xml] problem in using xmlAddChildList - need help

2008-02-13 Thread Senthil Nathan
help me on to figure out the problem or fix it. Thanks Senthil Nathan R ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

[xml] is there an option to disable the xml standards check

2008-02-12 Thread Senthil Nathan
Hi, Is there an option to disable the xml standards check. Because I would be having few tags as <1> which are not proper xml standards. And I'm finding ways to avoid such improper tags. But still I wanted to check, is there an option in libxml2 to disable that check. Thanks Senth

[xml] usage of xsd for validating xml files

2008-02-09 Thread Senthil Nathan
Hi, I was looking in the libxml2 mail archives. And in the recent times there were few discussions on the usage of xsd to validate xml files. Could anyone please let me the set of api's or sample example on how to use libxml api's to apply xsd on xml files for validating. Thanks Senthi

Re: [xml] handling xpath error - libxml

2008-01-29 Thread Senthil Nathan
On 1/28/08, Senthil Nathan <[EMAIL PROTECTED]> wrote: > > > > On 1/28/08, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > Senthil Nathan wrote: > > > On 1/28/08, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > >> Hi, &

Re: [xml] handling xpath error - libxml

2008-01-28 Thread Senthil Nathan
On 1/28/08, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Hi, > > Senthil Nathan wrote: > > On 1/28/08, Stefan Behnel <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> Senthil Nathan wrote: > >>> I would like to how to h

Re: [xml] handling xpath error - libxml

2008-01-28 Thread Senthil Nathan
On 1/28/08, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > Hi, > > Senthil Nathan wrote: > > I would like to how to handle the xpath error gracefully when I use the > > libxml api, > > xmlXPathEvalExpression(path, xpathCtx). > > > > If I pass a inval

[xml] handling xpath error - libxml

2008-01-28 Thread Senthil Nathan
Hi, I would like to how to handle the xpath error gracefully when I use the libxml api, xmlXPathEvalExpression(path, xpathCtx). If I pass a invalid path string to evaluate on the "xpathCtx", it throws the error as below and stops there. But I would like to handle that error gracefully and log it a

[xml] libxml memory dump - how to debug

2008-01-17 Thread Senthil Nathan
Hi All, I have got some memory dump (given below), with which I'm unable to debug. How can I make use of this to debug where the error occured. Thanks Senthil Nathan R Memory tag error occurs :0x8a57eac bye 06:06:12 PM MEMORY ALLOCATED : 291484, MAX was 524430 BLOCK N

[xml] xsd validation

2007-12-18 Thread Senthil Nathan
Hi, I would like to know is there any examples available with libxml2, which validates the xml files against a xsd schema. I guess, xml schema is still under development in libxml2. But please point to me, if there is an example on that. Thanks Senthil Nathan R

[xml] will the file be corrupt during saving the tree

2007-12-10 Thread Senthil Nathan
. will the file be corrupt or what happens?? Thanks Senthil Nathan R ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

[xml] change the property value (attribute)

2007-11-27 Thread Senthil Nathan
Hi All, I have set an attribute for an element as below and I have only the xmlNodePtr (pnode). xmlNodeSetContent(pnode, xvalue); // set the attribute for the parent xmlNewProp(pnode, (const xmlChar*)"apply", (const xmlChar*)"1"); How can I set the same attribute, apply=0 (instead of

[xml] memory issues when using xmlXPathEvalExpression

2007-11-26 Thread Senthil Nathan
Hi All, I'm having two issues when using libxml and its with my code only. But please let me know, how to get this fixed. 1. A problem with the memory issue, I guess. With the below piece of code, in the constructor I have already created a xpathCtx = xmlXPathNewContext(tree); And then, I

[xml] DOCBparser module deprecated warning

2007-11-02 Thread Senthil Nathan
Hi, I have been using both libxml2 and libxslt. I'm getting a warning as, ../../../include/libxml/DOCBparser.h:22:2: warning: #warning "The DOCBparser mod ule has been deprecated in libxml2-2.6.0" Only when IN_LIBXML is not defined, this warning would be thrown. How to resolve this warning?? T

[xml] install libxml2 without LIBXML_ICONV_ENABLED

2007-10-31 Thread Senthil Nathan
Hi, I would like to install libxml2 without LIBXML_ICONV_ENABLED. By default it is looking for iconv.h, but I dont have libiconv.a So is this library needed or how it can be disabled. Thanks Senthil ___ xml mailing list, project page http://xmlsoft.or

Re: [xml] Locking and unlocking a part of the xml tree

2007-10-24 Thread Senthil Nathan
On 10/24/07, Daniel Veillard <[EMAIL PROTECTED]> wrote: > On Wed, Oct 24, 2007 at 09:10:19PM +0530, Senthil Nathan wrote: > > > >Hi All, > > > >I was reading through the api's for locking the xml tree and checked > >that, > > >

[xml] Locking and unlocking a part of the xml tree

2007-10-24 Thread Senthil Nathan
ke to know, is there a way to lock and unlock a node in the xmlDocPtr. Or anyother means to do this? Thanks Senthil Nathan R ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

[xml] save a part of the tree maitaining the hierarchy from root.

2007-09-04 Thread Senthil Nathan
Hi All, I would like to know how to save a part of a DOM tree, by maintaining the hierarchy from the root based on an attribute/tag. Suppose orig.xml is as below, 100 0 I need to save only the nodes which has the flag "Apply" (which me

Re: [xml] libxml2 and c++ bindings

2007-09-03 Thread Senthil Nathan
> On 9/3/07, Senthil Nathan <[EMAIL PROTECTED]> wrote: > > So, just thinking is it possible to link LIBXML2 C libraries with my C++ > > programs, > > as we normally link c files with c++ using the preprocessor directive, > > "__cplusplus" and defining as

[xml] libxml2 and c++ bindings

2007-09-03 Thread Senthil Nathan
Hi All, I just read through the c++ wrapper for libxml2, libxml++. But it seems, I need to install lot of other modules like, glibmm, which inturn has other dep. modules like sigc++, glib, gobject, gmodule. So, just thinking is it possible to link LIBXML2 C libraries with my C++ programs, as we no

Re: [xml] query - append DOM tree, identify leaf node

2007-08-23 Thread Senthil Nathan
cture exists in the DOM tree using TREE API's, "//node//n1" or "//node//n1//n11". I'm new to use the API's available in libxml2. Just learning and using those stuff. Thanks Senthil On 8/23/07, Lars Oppermann <[EMAIL PROTECTED]> wrote: > > Sent

[xml] query - append DOM tree, identify leaf node

2007-08-23 Thread Senthil Nathan
Hi, I read through some of the basic API's for building the DOM tree using libxml2 and I understood the examples for tree and xpath, by executing the same. I would like to learn to use the API's in my application accordingly. (I'm rephrasing my question in the previous thread) 1. Suppose if I hav

Re: [xml] need info on using libxml2 - build, merge, template xml files

2007-08-19 Thread Senthil Nathan
Hi Rush, The template is not so simple as shown. It's just a snippet of the actual template xml. So, is there anything to do with DTD here, Doc. Type Definition?? Any thoughts on this?? Thanks Senthil Nathan R On 8/17/07, Rush Manbert <[EMAIL PROTECTED]> wrote: > > Senthil Nat

Re: [xml] need info on using libxml2 - build, merge, template xml files

2007-08-17 Thread Senthil Nathan
Hi Rush, Gr8. Thanks for the info. And reg. the 4th point, I need to insert the values in the proper places of the DOM tree. You got it rightly. So how do I get that done?? Senthil On 8/17/07, Rush Manbert <[EMAIL PROTECTED]> wrote: > > Senthil Nathan wrote: > > Hi, > >

Re: [xml] need info on using libxml2 - build, merge, template xml files

2007-08-17 Thread Senthil Nathan
, Trappel Martin <[EMAIL PROTECTED]> wrote: > > > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf > Of *Senthil Nathan > *Sent:* Friday, August 17, 2007 11:41 AM > *To:* xml@gnome.org > *Subject:* [xml] need info on using libxml2 - build, merge, template xml &

[xml] need info on using libxml2 - build, merge, template xml files

2007-08-17 Thread Senthil Nathan
Hi, I'm new to use libxml2. I need general clarifications of using libxml2 for my application. Say, I have a XML content as, value Hostname descr. long descr of Hostname string set,delete 1. Here, Is it possible to build a DOM tree u