RE: [PHP-WIN] XML parsing
| From: | Scott Carr | Date: | Fri, 10 May 2002 17:53:19 +0000 |
| Subject: | RE: [PHP-WIN] XML parsing | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13692@lists.php.net to get a copy of this message | ||
Use the "<![CDATA[" tag. Anything between this tag and the "]]>" ending
will
not be parsed at all.
Reference from:
http://www.w3.org/TR/2000/REC-xml-20001006#sec-cdata-sect
--
Scott Carr
OpenOffice.org
Whiteboard-Doc Maintainer
http://whiteboard.openoffice.org/doc/
Quoting Carl Lerche <carl.lerche@verizon.net>:
> Well,
>
> I was wondering if there was a way to have the parser consider
> everything in between 2 certain tags as normal text and not as tags,
> even if it's in the form <something>
>
> Is there a way to do that?
> -cARL
>
> -----Original Message-----
> From: Ross Fleming [mailto:r.fleming@totalise.co.uk]
> Sent: Friday, May 10, 2002 3:41 AM
> To: Carl Lerche; php-windows@lists.php.net
> Subject: RE: [PHP-WIN] XML parsing
>
> 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
>
>
> --
> 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
>
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
----- End forwarded message -----
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/