[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Resolved: (XMLBEANS-281)
From:       "Radu Preotiuc-Pietro (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2008-12-03 2:22:44
Message-ID: 414157227.1228270964509.JavaMail.jira () brutus
[Download RAW message or body]


     [ 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 '&gt;', 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 '&lt;', you are out of luck.


> org.apache.xmlbeans.impl.tool.PrettyPrinter does not honour &gt;
> ----------------------------------------------------------------
> 
> 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic