[ 
https://issues.apache.org/jira/browse/XMLBEANS-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Radu Preotiuc-Pietro resolved XMLBEANS-281.
-------------------------------------------

       Resolution: Won't Fix
    Fix Version/s:  Version 2.3

In the case of '>' and '>', it goes even beyond pretty-print, because from 
an XML point of view, they are exactly equivalent, so they are not preserved 
regardless.

XMLBeans 2.3.0 has introduced the XmlOptions.setSaveSubstituteCharacters() 
method, which allows you to specify what characters you want escaped, maybe 
this will help. But the setting is document-wide, so if you want to sometimes 
output '>' and sometimes '<', you are out of luck.


> org.apache.xmlbeans.impl.tool.PrettyPrinter does not honour >
> ----------------------------------------------------------------
>
>                 Key: XMLBEANS-281
>                 URL: https://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
>             Fix For:  Version 2.3
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to