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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.