in reply to Generating elements with attributes and contents using XML::Smart
Output:use XML::Smart ; my $xml = new XML::Smart() ; $xml->{phone} = '555-1234' ; $xml->{phone}{type} = 'home' ; print $xml->data ;
See the method apply_dtd() in the XML::Smart documentation to apply automatically a DTD to all your tree.<?xml version="1.0" encoding="iso-8859-1" ?> <?meta name="GENERATOR" content="XML::Smart/1.6.8 Perl/5.006001 [MSWin +32]" ?> <phone type="home">555-1234</phone>
Graciliano M. P.
"Creativity is the expression of the liberty".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Generating elements with attributes and contents using XML::Smart
by pfaut (Priest) on Aug 19, 2004 at 14:13 UTC | |
by gmpassos (Priest) on Aug 19, 2004 at 14:26 UTC | |
by pfaut (Priest) on Aug 19, 2004 at 14:33 UTC | |
by pfaut (Priest) on Aug 20, 2004 at 12:23 UTC | |
by gmpassos (Priest) on Sep 01, 2004 at 18:34 UTC |