Saving XML::DOM Document

Saving XML::DOM Document

am 25.11.2005 22:25:20 von Olivier

Hello,

I use a perl script to add new node in a XML file.

But ther's a little problem.

If I can add nodes in my DOM document, I don't know how to save it in a file
?

Could you help me ?

Olivier

Re: Saving XML::DOM Document

am 25.11.2005 23:43:38 von David Dorward

Olivier wrote:

> If I can add nodes in my DOM document, I don't know how to save it in a
> file ?

This is what I did ...

1: perldoc XML::DOM (or you could visit search.cpan.org)
2: Glance through the synopsis at the top
3: Notice a demo of a method called "printToFile"

Tried that?

--
David Dorward
Home is where the ~/.bashrc is

Re: Saving XML::DOM Document

am 25.11.2005 23:50:32 von Olivier

Shame on me !!!

I didn't see this method !!!

That's work fne now.

"David Dorward" a écrit dans le message de
news:dm8447$7u8$1$8302bc10@news.demon.co.uk...
> Olivier wrote:
>
> > If I can add nodes in my DOM document, I don't know how to save it in a
> > file ?
>
> This is what I did ...
>
> 1: perldoc XML::DOM (or you could visit search.cpan.org)
> 2: Glance through the synopsis at the top
> 3: Notice a demo of a method called "printToFile"
>
> Tried that?
>
> --
> David Dorward
> Home is where the ~/.bashrc is