[XOM-interest] entity in attribute value
Tatu Saloranta
cowtowncoder at yahoo.com
Wed Jan 14 13:55:11 EST 2009
--- On Tue, 1/13/09, Michael Kay <mike at saxonica.com> wrote:
...
> Yes, it is a well-known fact that XML does not have any predefined entities
> other than the standard lt, gt, amp, quot, apos. If you want to use other
> entities you have to declare them. That seems a simple enough rule.
It sounds like perhaps the original content was not produced using actual XML(-aware) tools, but by string concatenation or such.
This based on the fact that the attribute values were not properly escaped/quoted, which would have been done by proper XML writers.
(if so, that should be one of top-5 mistakes done with xml processing)
-+ Tatu +-
More information about the XOM-interest
mailing list