Re: malformed URL exception exception in saxbuilder.build due to unreachable URL
Rolf Lear <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Cliff. I think there's been some good pointers already, but just to make things crystal clear... can you perhaps post the relevant code snippet you are using to parse the document, and perhaps the first few lines of the actual XML too. Also, does this problem happen with *all* xml documents (the first one), or with just some of them? My guess is that Oliver has the right idea with parsing the wrong string.... remember that the SaxBuilder.build(String) method expects the String to be a URL, not the actual XML content..... YTour stack trace indicates you are calling this method... See the code here: https://github.com/hunterhacker/jdom/blob/jdom-1.x/core/src/java/org/jdom/input/SAXBuilder.java#L986 Anyway, seeing your code would help.... Rolf On 09/02/2012 3:54 PM, cliff palmer wrote: > I'm reading through several hundred thousand existing XML documents > building counts of XML tags and have encountered a > Java.net.MalformedURL Exception raised by saxBuilder.build because the > xmlns points to a URL that can not be reached. > I am using JDOM 1.1.2. > Is there a call or parameter setting that will cause saxBuilder to > ignore namespaces when parsing? > Thanks! > Cliff > _______________________________________________ > To control your jdom-interest membership: > http://www.jdom.org/mailman/options/jdom-interest/[email protected] > _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]