Transforming XML Documents

Now that we’ve covered parsing, generating, and searching an XML document, we get into another very important part of XML processing—XML transformation.You can transform, or in other words convert, an XML document to another format by applying various transformation techniques. You can transform the XML document to either another XML document, which might be a subset of the original document by filtering certain info, or you can transform to a whole different data format, like HTML, eXtensible HyperText Markup Language (XHTML), Wireless Markup Language (WML), CSV, and so forth.

Why would you want to convert our neatly formatted XML document to another format? We can read and understand the data as-is. Well the answer ...

Get XML and Perl now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.