Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Problem using xml_parser w/ PHP 4
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,