Re: XML Parser is a bit strict
| From: | Francois Beauregard | Date: | Fri, 19 Jan 2001 01:36:32 +0000 |
| Subject: | Re: XML Parser is a bit strict | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35545@lists.php.net to get a copy of this message | ||
At 11:52 01-01-19 +1100, Brian White wrote:
>As far as I understand XHMTL, it simply HTML made XML compliant, which
>basically means you always have to put in an end tag.
True enough...
There is a tool though on the w3c call HTMLTidy that you can pass your HTML
code through and will give you back a clean XHTML document... You can then
pass it through XML without problems...
P.S.: I never tested that, but some folk told me it's working pretty well...
>BTW - if you have an empty element such as "<br>" , in XML you have two
>choices:
>
> 1) <br></br>
> 2) <br/> (shorthand for (1) )
>
>
>At 05:09 PM 1/18/01 +0000, you wrote:
>
>I am using php 4.02 and Apache 1.3.12 and am trying to do some XML parsing.
>HTML is also in the text I'm parsing and the xml parsing dies if it sees an
>html tag that does not have a matching closing tag. Is there any work around
>to this and if so is there a way to make it so XML tags don't need to be
>closed too?