[ http://issues.apache.org/jira/browse/XMLBEANS-281?page=comments#action_12425399 ] Wing Yew Poon commented on XMLBEANS-281: ----------------------------------------
This is not a bug. The XML spec only requires that '<' and '&' (and '>' when it is part of the sequence "]]>" AND does not mark the end of a CDATA section) be escaped in character data. As character data, ">" and ">" are the same. If you want to control how the '>' is output, you can use XmlOptions.setSaveSubstituteCharacters(XmlOptionCharEscapeMap). > org.apache.xmlbeans.impl.tool.PrettyPrinter does not honour > > ---------------------------------------------------------------- > > Key: XMLBEANS-281 > URL: http://issues.apache.org/jira/browse/XMLBEANS-281 > Project: XMLBeans > Issue Type: Bug > Components: Tools > Affects Versions: Version 2.2 > Environment: Windows XP, Intel P4, (I don't think this should matter) > Reporter: Ragunath Ramaswamy > > I have an xml as > <Property name="Test"> > <Value>less than is < greaterthan is ></Value> > </Property> > when I use this as an input to the xpretty command line tool to give the > pretty printed output I get the result as > <Property name="Test"> > <Value>less than is < greaterthan is ></Value> > </Property> > I find that the xml escape characters for > are posing an issue here. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]