XML, the Perl Way

Processing XML with Perl Michel Rodriguez

XML::Pyx

Introduction to XML::PYX

The Pyx Interface

Pyx is a simple, line-oriented notation used to describe the information communicated by an XML parser to an XML application.

Each line of Pyx contains the information for a single parsing event. The first character of each line of Pyx tells you what type of event you are dealing with:

(start tag
)end tag
Aattribute
-character data (line returns show as a separate line of character data -\n)
?processing instruction

The Pyx output of the XML example would start as follows:

(catalog
(class
Aname red
(category
Aname bordeaux
(item
(winery
-Ginestet
)winery
(type
-Marquis de Chasse Reserve
)type

Pyx has been implemented in Python, Perl and Java.



XML::Pyx

Introduction to XML::PYX