I've been working on a custom extension to HTML that I can use in my web-development. I'm reading the files using the XML parser but I'm having some trouble. Basically, PHP 4's XML parsing functions don't handle XML if it's not properly formatted. Which in turn means my parser won't accept anything that's not perfect XHTML.
Since I was hoping to make this a relatively user-friendly language and corresponding parser that I could provide to other developers, I'd like it to be able to accomodate things like
instead of the XML compliant
Does anybody have any suggestions on how I could tackle this without writing all of my own low-level XML parsing functions? Is there a more flexible library available for PHP 4 that can gracefully parse through potentially invalid XML?
Thanks for the feedback,
0 · ·