You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Claude Warren (JIRA)" <ji...@apache.org> on 2017/02/09 21:32:41 UTC
[jira] [Updated] (CONFIGURATION-652) FileHandler does not produce
root node attributes for XMLConfiguration
[ https://issues.apache.org/jira/browse/CONFIGURATION-652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Warren updated CONFIGURATION-652:
----------------------------------------
Attachment: Test.java
Example source code
Expected output is
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MyRootElement @xmlns:foo='http://example.com/foo'>
<one>uno</one>
<foo:two>dos</foo:two>
</MyRootElement>
produced output is
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MyRootElement>
<one>uno</one>
<foo:two>dos</foo:two>
</MyRootElement>
Note missing @xmlns
> FileHandler does not produce root node attributes for XMLConfiguration
> ------------------------------------------------------------------------
>
> Key: CONFIGURATION-652
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-652
> Project: Commons Configuration
> Issue Type: Bug
> Components: Interpolation
> Affects Versions: 2.1.1
> Environment: Java 8 on Linux
> Reporter: Claude Warren
> Attachments: Test.java
>
>
> I have a case where I need to take a Configuration file and write it as an XML document. The document should have one or more xmlns properties on the root node but the xmlns attributes are not output.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)