commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <>
Subject [jira] [Commented] (CONFIGURATION-450) CDATA is not handled properly for XMLConfiguration
Date Tue, 31 May 2011 05:45:47 GMT


Oliver Heger commented on CONFIGURATION-450:

This is strange.

XMLConfiguration does not do any XML parsing on its own, but delegates to the XML parser (probably
the one shipped with the JDK if you do not have other libraries installed). So the error you
receive comes from this parser. Can you check with other tools whether your XML is actually
valid (e.g. with a browser)?

In the unit tests of XMLConfiguration a test XML document is loaded which contains some CDATA
sections. So CDATA can be handled in principle.

> CDATA is not handled properly for XMLConfiguration
> --------------------------------------------------
>                 Key: CONFIGURATION-450
>                 URL:
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 1.6
>            Reporter: Daniel Baktiar
>   Original Estimate: 120h
>  Remaining Estimate: 120h
> The XMLConfiguration does not handle XML CDATA escape properly. For example:
> <?xml version="1.0" encoding="UTF-8" ?>
> <abc>
>   <def>
>     <ghi><![CDATA[~!@#$%^&]]></ghi>
>   </def>
> </abc>
> will give error message:
> The element type "ghi" must be terminated by the matching end-tag "</ghi>".
> I expect that normal escaping should occur with the standard XML CDATA escape.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message