2011/3/23 Randy Paries <[email protected]>: > Hello, > I have a stringBuilder Object that has the xml below:: > when i try to do > Appointments a = (Appointments)digester.parse( sBuf.toString() ); > i get the exception :: > java.net.MalformedURLException: no protocol: > > Can someone give me a little insight what i may be doing wrong
Digester version = ? JavaDoc: http://commons.apache.org/digester/commons-digester-2.1/docs/api/org/apache/commons/digester/Digester.html#parse%28java.lang.String%29 The URI argument of Digester.parse(String) is the URI, i.e. "identifier", address of a document that you are trying to parse. If you have the document already as a String in memory, use Digester.parse(Reader) with a StringReader. > > Thanks > > <?xml version="1.0" encoding="ISO-8859-1"?> > <remind> > (...) > </remind> > Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
