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?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]