Senthil Nathan *top-posted* again:
> 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.
Care to read the manual?
Go to
http://xmlsoft.org/html/libxml-tree.html
and look f
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 Nathan *top-posted*:
> > On Thu, Mar 6,
Hi,
Senthil Nathan *top-posted*:
> On Thu, Mar 6, 2008 at 11:33 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
>> 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,
That's true. But when I dump the tree to a file, the indentation is not
proper.
All the nodes that I copied are just continuous.
The xml file generated after dumping from libxml2 with few nodes added or
copied,
On Thu, Mar 6, 2008 at 11:33 PM, Stefan Behnel <[EMAIL PROTECTED]> w
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 whitespace. Maybe you didn't copy those?
> How can we set the indentation
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