Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Problem parsing HTML file into Document

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Nick Day" <the_doctor_nick AT hotmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Problem parsing HTML file into Document
  • Date: Sat, 10 Dec 2005 23:09:04 +0000

Hi,

I've been having a bit of trouble parsing a HTML file (attached) into a document and keep getting the error below. Do I need to preprocess the file into a different encoding before attempting the creation of the Document object or am I way off?

thanks,
Nick

nu.xom.ParsingException: Invalid byte 1 of 1-byte UTF-8 sequence. in file:/f:/test.txt
at nu.xom.Builder.build(Builder.java:1157)
at nu.xom.Builder.build(Builder.java:614)
at nu.xom.Builder.build(Builder.java:990)
at uk.ac.cam.ch.wwmm.scuflworkers.java.StripElementsFromXMLTest.main(StripElementsFromXMLTest.java:23)
Caused by: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.scanLiteral(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at nu.xom.Builder.build(Builder.java:1127)
... 3 more
Exception in thread "main" java.lang.NullPointerException
at uk.ac.cam.ch.wwmm.scuflworkers.java.StripElementsFromXml.strip(StripElementsFromXml.java:22)
at uk.ac.cam.ch.wwmm.scuflworkers.java.StripElementsFromXMLTest.main(StripElementsFromXMLTest.java:34)

Title: (IUCr) Contents for Acta Crystallographica Section E Vol. 61 Part 11 (November 2005)

Acta Crystallographica Section E

Structure Reports Online

Volume 61, Part 11 (November 2005)



[Issue Author Index][Volume Author Index]
[Cover illustration] Cover illustration: The structure of violuric acid monohydrate has been redetermined at 150 K and shown to be ordered. The violuric acid molecule is entirely planar, every atom in the structure lying on a crystallographic mirror plane. See Clegg & Nichol [Acta Cryst. (2005), E61, o3788-o3790].

[show schemes]


inorganic compounds


[HTML version][PDF version][Article Abstract][CIF] [3d view][Structure 
Factors][CIF check Report]  [Buy article online]

Acta Cryst. (2005). E61, i223-i224  [ doi:10.1107/S1600536805031168 ]

Reinvestigation of Na3P based on single-crystal data

Y. Dong and F. J. DiSalvo

Online 8 October 2005


[HTML version][PDF version][Article Abstract][CIF] [3d view][Structure 
Factors][CIF check Report]  [Buy article online]

Acta Cryst. (2005). E61, i225-i227  [ doi:10.1107/S1600536805031090 ]

Tetracaesium strontium catena-nonaselenidotristannate(IV)

T. Van Almsick and W. S. Sheldrick

Online 8 October 2005




Archive powered by MHonArc 2.6.24.

Top of Page