You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org> on 2006/08/03 01:21:14 UTC

[jira] Commented: (XMLBEANS-281) org.apache.xmlbeans.impl.tool.PrettyPrinter does not honour >

    [ 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, "&gt;" 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 &gt;
> ----------------------------------------------------------------
>
>                 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 &lt; greaterthan is &gt;</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 &lt; 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org