You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/05/08 16:17:06 UTC
DO NOT REPLY [Bug 8893] -
Creation of DOM containing invalid xml characters.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8893>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8893
Creation of DOM containing invalid xml characters.
------- Additional Comments From keshlam@us.ibm.com 2002-05-08 14:17 -------
Acceptable behavior per the DOM spec. Checking every character at editing time
would impose computational overhead, and would usually be unnecessary since few
applications will generate invalid characters in the first place; hence the DOM
does not require imposing such a test.
(The DOM REC _does_ explicitly ask that element and attribute names be checked
to make sure they're legal. One can quibble about whether that was a good
decision or not, but it's in the REC. Checking character content isn't.)
The serializer, which must examine every character for possible escaping, really
is the best place for an XML library to impose this test. Or check before
inserting the characters into the DOM in the first place.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org