<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div><br></div><div>Hmmm not using the default API.</div><div><br></div><div>JDOM expects the getURI() method to have a value if there is a prefix for the attribute. This is reasonable... ;)</div><div><br></div><div>This indicates the sax stream is broken. JDOM should be throwing "Namespace URIs must be non-null and non-empty Strings".</div><div><br></div><div>If you cannot fic the SAX stream code, you can maybe write a proxy class that fixes the URIs as the events pass through.</div><div><br></div><div>Rolf</div><div><br></div><div><div style="font-size:75%;color:#575757"><br>Rolf<br></div></div> <br>Paul Libbrecht <paul@hoplahup.net> wrote:<br><br>Hello JDOm experts,<br><br>I'm hitting a wall here and I am not sure who is responsible.<br>Just like the previous series of post, I am trying to parse an HTML document.<br>In this case I use the CyberNeko HTML parser http://nekohtml.sourceforge.net/ which creates a SAX stream hence is easily convertible to a JDOM document.<br><br>Now, my big issue is that the document I have (which I cannot easily change right now) contains undeclared namespace-prefixed attribute-names!<br><br>Do I have a way to predefine the namespace somewhere?<br><br>thanks in advance<br><br>Paul<br>_______________________________________________<br>To control your jdom-interest membership:<br>http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com<br><br></body>