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.