From: Marc G. <mgu...@ya...> - 2011-01-27 10:12:06
|
Hi, please reduce the html content to the minimum allowing to reproduce the problem and open an issue. Cheers, Marc. -- HtmlUnit support & consulting from the source Blog: http://mguillem.wordpress.com Le 27/01/2011 00:44, Neera Sharma a écrit : > Hi All, > > I am trying to use DOM parser to parse the following URL > http://www.helloneighbour.com/save/city-movers-and-transports-trucking-and-freight-mississauga > > with the following parser settings - > parser.setFeature("http://cyberneko.org/html/features/augmentations", true); > parser.setProperty("http://cyberneko.org/html/properties/names/elems", > "lower"); > > I am running into the following namespace error > > org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create > or change an object in a way which is incorrect with regard to > namespaces. > > at org.apache.xerces.dom.CoreDocumentImpl?.checkNamespaceWF(Unknown Source) > at org.apache.xerces.dom.ElementNSImpl.setName(Unknown Source) > at org.apache.xerces.dom.ElementNSImpl.<init>(Unknown Source) > at org.apache.xerces.dom.CoreDocumentImpl?.createElementNS(Unknown Source) > at org.dom4j.io.DOMWriter.appendDOMTree(DOMWriter.java:181) > at org.dom4j.io.DOMWriter.appendDOMTree(DOMWriter.java:158) > ----- > ----- > > I would really appreciate any help that you can provide to resolve the issue. > > > Thanks, > Neera > |