[
https://issues.apache.org/jira/browse/IO-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585307#action_12585307
]
Hervé Boutemy commented on IO-162:
----------------------------------
Maven use case: pom.xml content is read as String to do interpolation = search
for ${xxx} to replace with a property value, and only after the interpolation
process it is parsed by an Xml Pull Parser.
Without this class, XML encoding support would have meant changing the whole
interpolation process, to integrate it tightly into the parser (do
interpolation on each parser event).
Getting an XML content as a String is handy to get the content of an XML file
(or more generally stream) without actually parsing it: for example if you
write a file editor.
> add Xml(Stream)Reader/Writer from ROME
> --------------------------------------
>
> Key: IO-162
> URL: https://issues.apache.org/jira/browse/IO-162
> Project: Commons IO
> Issue Type: New Feature
> Components: Streams/Writers
> Reporter: Hervé Boutemy
> Attachments: IO-162.patch
>
>
> XmlReader is a class written by Alejandro Abdelnur in the ROME project
> (http://rome.dev.java.net) to detect encoding from a stream containing an XML
> document.
> It has been integrated into Maven 2.0.8, via XmlStreamReader in plexus-utils,
> and I added XmlStreamWriter.
> commons-io seems the right library to distribute these utilities.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.