priyaviswam has asked for the wisdom of the Perl Monks concerning the following question:
can anyone tell is it possible to Globalise the xml writer object. So that I can use that object to append the data? For example : I have a code creating a basic xml defined in one package.
Now I want to close the tag "Config" by using the $XmlWriterObject from someother package. Please clarify?$XmlWriterObject = new XML::Writer( DATA_MODE => 1, DATA_INDENT => 4, +OUTPUT => $Output ); $XmlWriterObject->xmlDecl("UTF-8","1"); $XmlWriterObject->startTag("Config");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Globalize the XML writer object
by norbert.csongradi (Beadle) on Sep 19, 2011 at 09:54 UTC | |
by priyaviswam (Sexton) on Sep 19, 2011 at 10:43 UTC | |
by roboticus (Chancellor) on Sep 19, 2011 at 11:01 UTC |