Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20823
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2012-12-30 11:30 -0800 |
| Message-ID | <0a82c44b-eec4-4ea8-92e2-af61192eee1a@googlegroups.com> (permalink) |
| Subject | Problem w/ DocumentBuilder parse method |
| From | "John L." <johnlarew@sbcglobal.net> |
I'm pre-processing a file in an attempt to use the subject method, and receive the following error: [Fatal Error] EXTRACT.TMP:51:23: The entity "nbsp" was referenced, but not declared. Exception in thread "main" org.xml.sax.SAXParseException: The entity "nbsp" was referenced, but not declared. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at Extract.CmdLine(Extract.java:144) at Extract.main(Extract.java:79) The pertinent portion of the file being parsed follows: [45]<div> [46]<input type="hidden" name="cx" value="partner-pub-5436175752152469:m8vqbgi2n 21" /> [47]<input type="hidden" name="cof" value="FORID:10" /> [48]<input type="hidden" name="ie" value="ISO-8859-1" /> [49]<input type="text" name="q" size="55" /> [50]<input type="submit" name="sa" value="PCM Search" /> [51] </div > What is the required declaration syntax for to allow the file to be parsed? Thanks in advance for your time and consideration.
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Problem w/ DocumentBuilder parse method "John L." <johnlarew@sbcglobal.net> - 2012-12-30 11:30 -0800 Re: Problem w/ DocumentBuilder parse method Arne Vajhøj <arne@vajhoej.dk> - 2012-12-30 14:46 -0500 Re: Problem w/ DocumentBuilder parse method Roedy Green <see_website@mindprod.com.invalid> - 2012-12-31 14:09 -0800 Re: Problem w/ DocumentBuilder parse method Stanimir Stamenkov <s7an10@netscape.net> - 2013-01-01 02:17 +0200
csiph-web