Perl & XML (Classique Us)Eric T Ray, Jason McIntosh
Taschenbuch
< I> Perl and X M L shows how to combine two key Web technologies. Perl is a great language for server-side Web scripting, but X M L parsers are generally written in Java or C++. Even so, Perl is everywhere, its strong text processing features make it a good partner for X M L, and the chances are that Perl developers will need to work with X M L sooner or later. Written with lively good humour, this title explains how to parse, validate and generate X M L using a variety of techniques. It does not teach Perl, but does include an excellent short introduction to X M L itself. After setting the scene, the authors set out the basics of X M L parsing and writing, using the X M L:: Parser and X M L:: Writer modules. This is a good place to start, but the book makes it clear that the future of Perl and X M L is in standard interfaces like S A X, which is the subject of another chapter. There is also an explanation of tree processing using X M L:: Simple or the standard D O M. ( Document Object Model). The last chapters cover other X M L technologies including X Path, X S L T and S O A P. Packed with plenty of example code, this title is very much a guide rather than a reference. It does a great job of presenting X M L from a Perl perspective, showing why it is useful and how to go about finding and installing the right modules. A couple of short but complete examples at the end help to put it all together, and there are lots of handy tips and warnings sprinkled throughout the book. -< I> Tim Anderson
|