RE: [PHP-WIN] XML parsing

From: Date: Fri, 10 May 2002 10:40:51 +0000
Subject: RE: [PHP-WIN] XML parsing
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-13682@lists.php.net to get a copy of this message
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:carl.lerche@verizon.net] Sent: 10 May 2002 05:23 To: php-windows@lists.php.net 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

« previous php.windows (#13682) next »