Section 3.3.3 of the XML Recommendation tells us that whitespace in
attribute values should be normalised to space and that if the value should
contain, say, a tab, then this can be achieved using the character reference
	

How does one, however, create an attribute value containing such a character
reference in dom4j 1.4?

If I create an Attribute with a value containing a tab, dom4j 1.4 will write
out a literal tab which, on re-parsing will become a space (per 3.3.3)

If I create an Attribute with a value containing 	 dom4j 1.4 will escape
the & and will write out 	 which, on re-parsing, will become a
literal 	 (instead of a tab)

Without hacking dom4j to escape tab as 	 on writing, is there anything
else that can be done?

Am I missing something?

James Tauber




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to