[
https://issues.apache.org/jira/browse/DIGESTER-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108705#comment-13108705
]
Simone Tripodi commented on DIGESTER-148:
-----------------------------------------
Hi Manish,
use the
[parse(java.io.Reader)|http://commons.apache.org/digester/commons-digester-2.1/docs/api/org/apache/commons/digester/Digester.html#parse(java.io.Reader)]
method, i.e.
{code}
String xml = "<a><b>c</b></a>";
Digester digester = ...;
Object o = digester.parse( new java.io.StringReader( xml ) );
{code}
Anyway I would ask you the favor of posting such questions by sending messages
to [dev@|http://commons.apache.org/mail-lists.html] ML, we use JIRA to keep
track of Issues and not as support forum, thanks in advance! ;)
> digester.parse does not work for XML given as String
> ----------------------------------------------------
>
> Key: DIGESTER-148
> URL: https://issues.apache.org/jira/browse/DIGESTER-148
> Project: Commons Digester
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: manish oswal
> Assignee: Simone Tripodi
>
> The digester.parse() method parses without errror when the XML is read from a
> file or a webservice whereas when the same XML output is passed as string we
> get the following error java.net.MalformedURLException: no protocol:
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira