For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > November 2005 > Saving XML::DOM Document









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Saving XML::DOM Document
Olivier

2005-11-25, 6:56 pm

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


David Dorward

2005-11-25, 6:56 pm

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 <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Olivier

2005-11-25, 6:57 pm

Shame on me !!!

I didn't see this method !!!

That's work fne now.

"David Dorward" <dorward@yahoo.com> a écrit dans le message de
news:dm8447$7u8$1$8302bc10@news.demon.co.uk...
> Olivier wrote:
>
>
> 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 <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
> Home is where the ~/.bashrc is



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com