Pattern Matching XML Tokens

Tried it:

if xmlSubject ^ xmlStartElementP ("chapter") & \
                xmlStartElement ("title"):
   ...

It doesn't seem to help much. However, there's all that textual data within an XML document's content and in the attributes that requires processing, and pattern matching works there very well.

New Models for Processing Text and XML with Python Sam Wilmott
Slide 41 of 51         skip www.wilmott.ca