[XML-SIG] Reconsidering the DOM API
Thu, 29 Jun 2000 07:17:00 -0500 (CDT)
Uche Ogbuji wrote:
> Hmm... regular expressions for XPath seems a bit sticky, but feasible, but
> full XML?...
I made a post some months back pointing out a "shallow parsing" regular
expression that can break an XML document into a list of its markup and
text items. I thought it was pretty interesting example of just what you
can do with a regex! I put some details at
Incidently (for Fredrik), sre included with python 1.6a fails to compile
the regex mentioned above (although re is able to compile it) -- I was
hoping to see just how much faster it is! There have been a couple sre
patches cheked into cvs since I last compiled the source. I've been
meaning to try again but haven't had time yet. The regex is pretty large
and might make a good test case.