On Wed, 01 Dec 2004 08:03:51 +0100, Hans-Joachim Baader wrote:
> an XML file that contains something like
> 
> <field value="aa<bb>cc"/>
> 
> is not well-formed because the < and > must be escaped (eg. with &lt; and
> &gt;) even within quotes. tidy -xml doesn't detect this. Other tools such
> as xmllint do.

Considering that a) tidy isn't designed for XML checking and b)
it automatically corrects the error, as seen in this transcript

| $ dpkg -l tidy | tail -n 1
| ii  tidy           20050415-1     HTML syntax checker and reformatter
| $ cat test.xml
| <field value="aa<bb>cc"/>
| $ tidy -q -xml test.xml
| <field value="aa&lt;bb&gt;cc" />

I'd guess this bug can be downgraded or even closed.

Cheers,
Flo

Attachment: signature.asc
Description: Digital signature

Reply via email to