XML entities declared properly in the XML doctype are
not recognized by tidy.
<!DOCTYPE poem [
<!ENTITY ext1 SYSTEM "lines938-939.xml">
<verse>I therefore, I alone first undertook</verse>
<verse>To wing the desolate Abyss, and spy</verse>
<verse>Better abode, and my afflicted Powers</verse>
<verse>To settle here on Earth or in mid-air</verse>
# tidy -xml -i tidytest.xml
line 25 column 13 - Warning: unescaped & or unknown
1 warning, 0 errors were found!
And the resulting document ends up with &ext1;
instead of &ext1; which would be the proper, legal
I used a pre-built binary for unix on today,
Log in to post a comment.