[jdom-interest] malformed URL exception exception in saxbuilder.build due to unreachable URL
Rolf Lear
jdom at tuis.net
Thu Feb 9 14:40:57 PST 2012
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/youraddr@yourhost.com
>
More information about the jdom-interest
mailing list