You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "manish oswal (JIRA)" <ji...@apache.org> on 2011/09/20 14:48:08 UTC
[jira] [Created] (DIGESTER-148) digester.parse does not work for
XML given as String
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
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
[jira] [Commented] (DIGESTER-148) digester.parse does not work for
XML given as String
Posted by "manish oswal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIGESTER-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108700#comment-13108700 ]
manish oswal commented on DIGESTER-148:
---------------------------------------
thanks for a quick reply.
I am using ksoap for accessing soap webservice and the output is a SoapObject / XML String.
I want to parse this using digester.
Please let me know how to proceed with this.
> 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
[jira] [Commented] (DIGESTER-148) digester.parse does not work for
XML given as String
Posted by "Simone Tripodi (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (DIGESTER-148) digester.parse does not work for
XML given as String
Posted by "Simone Tripodi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIGESTER-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simone Tripodi resolved DIGESTER-148.
-------------------------------------
Resolution: Not A Problem
Assignee: Simone Tripodi
Not a bug, looks like you misinterpreted the [parse(String)|http://commons.apache.org/digester/commons-digester-2.1/docs/api/org/apache/commons/digester/Digester.html#parse(java.lang.String)] signature.
There's no {{parse()}} method that accepts the XML as a String, but only URIs as a string
> 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
[jira] [Closed] (DIGESTER-148) digester.parse does not work for XML
given as String
Posted by "Simone Tripodi (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIGESTER-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simone Tripodi closed DIGESTER-148.
-----------------------------------
Digester 3.2 released
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira