Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Embedding a mini-language for XML construction into Perl

by shmem (Chancellor)
on Nov 21, 2005 at 01:54 UTC ( [id://510336]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use LWP::Simple;
    use XML::DTDParser;
    ...
        map { keys %{$DTD->{$_}->{'attributes'}} } keys %$DTD
    ];
    define_vocabulary($elems,$attrs);
    
  2. or download this
                # it's just Perl, so we can mix in other code
                for (2..5) {
                    p { text "Plus paragraph number $_." }
                }
    
  3. or download this
    sub render_via_xml_writer {
        my $doc = shift;
    ...
        render_fn($doc);
        $writer->end();
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://510336]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-23 22:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found