Toby is right, XML is very very strict, unlike HTML browsers, which have come to accept sloppy code. However...
W3C's Tidy program. It can clean up HTML and I believe XML. It's a command line prog so should be fairly easy to run from PHP and simply return the output of that program. It's worth a go. http://www.w3.org/People/Raggett/tidy/ Ross -----Original Message----- From: Carl Lerche [mailto:[EMAIL PROTECTED]] Sent: 10 May 2002 05:23 To: [EMAIL PROTECTED] Subject: [PHP-WIN] XML parsing Hello, I have a question regarding XML parsing. Ok, I have an XML file that I'm using to contain the data for an article. Within it, I have an <html> </html> tag, where everything within those tags are just going to be html. However!! If I don't close a tag within there, let's say <p> the parser is going to give me an error. Is there anyway I can stop this? I just want everything within the <html> </html> not to be mucked with... like any text within a tag? Well... I want it to work... how do I do it? Thanks, -cARL -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php