in reply to Fixing ill-formed XML

I second the comments already posted.
For example, given the following XML snippet:
<A><B>...</A></B>
That's not XML. That's tag soup.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.