Skip to Content
XML and Perl
book

XML and Perl

by Mark Riehl, Ilya Sterin
October 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
9h 40m
English
Sams
Content preview from XML and Perl

Different Methods of Generating XML Data

As I mentioned earlier, there are two types of XML data—static XML documents and dynamically generated XML documents. Two approaches to generating XML data also exist. I call them the “crazy” approach and the “lazy” approach.

Note

Remember, XML data can consist of a standalone file or XML data in memory (for example, dynamically generated XML data that is sent across a network).

Using the Perl print Function to Generate XML Data

The crazy approach refers to using Perl’s print function to print out all parts of the XML document. Because an XML document is just plain text, it can be easily generated using the standard Perl print function. In the next few sections, we’ll take a closer look at the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl and XML

Perl and XML

Erik T. Ray, Jason McIntosh
Programming Web Services with Perl

Programming Web Services with Perl

Randy J. Ray, Pavel Kulchenko
Mastering Perl

Mastering Perl

brian d foy
Perl by Example

Perl by Example

Ellie Quigley

Publisher Resources

ISBN: 0735712891Purchase book