Heber Lazcano <[EMAIL PROTECTED]> wrote on 05/25/2006 01:47:02 PM: > Hi everybody !! > > I have a problem, MalformedURLException: no protocol in the parser. > > DOMParser parser = new DOMParser(); > parser.parse(xml); > Document doc = parser.getDocument(); > > The header the XML is: > <?xml version="1.0" encoding="UTF-8"?> > > ideas ???
Though I can't tell whether "xml" is a string or an InputSource from your code snippet, I'm going to guess that you passed the document as a string to the parse method. If that is what you're doing, that doesn't work. The string passed to parse must be a URI, in other words the location of the document not the document itself. > Heber Lazcano Camargo > Deamons Developer > > TRALIX - Everything happens on email. > Office: (442) 2620304 > Mobile: (771) 7950721 > [EMAIL PROTECTED] Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
