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
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
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
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
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
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
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
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
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
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,
&
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
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
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
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
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
.
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
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
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
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
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
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,
> >
>
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
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
> 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
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
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
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
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
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,
> >
, 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
&
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
31 matches
Mail list logo