Bugs item #3301585, was opened at 2011-05-13 15:18
Message generated for change (Settings changed) made by ujay68
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=3301585&group_id=16035

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
>Group: dom4j 1.6.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: ujay68 (ujay68)
Assigned to: Nobody/Anonymous (nobody)
Summary: Node.asXML on a text node does not escape the node text

Initial Comment:
When you call the asXML() method on a text node implemented by 
org.dom4j.tree.AbstractText this does not escape the result string.

Example: Calling asXML() on the data element of <data>A&amp;B</data> returns 
the string "<data>A&amp;B</data>". Calling it on that data's text child returns 
"A&B", which is probably wrong. From asXML() one yould expect properly escaped 
XML. For the unescaped string, we have getText().

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=3301585&group_id=16035

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to