[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] XML declaration error
I think this is exactly the cause. I'm working with the main article only Cheers, Tristan --- Tristan J. Fiedler Postdoctoral Fellow - Stein Lab Cold Spring Harbor Laboratory On Apr 12, 2005, at 1:46 AM, Bob Stayton wrote: > It is possible that the error message is misleading. The line number > 1 it > is referring to may be line 1 of one of your entities. Is it possible > that > you are referring to a graphic entity when you meant an xml entity? > If it > is trying to read a graphics file as text, it will indeed think the > byte > sequence is not UTF-8. Can you validate the file by other means? > > Bob Stayton > Sagehill Enterprises > DocBook Consulting > bobs@sagehill.net > > > ----- Original Message ----- > From: "Tristan Fiedler" <fiedler@cshl.edu> > To: "Docbook-Apps" <docbook-apps@lists.oasis-open.org> > Sent: Monday, April 11, 2005 11:27 AM > Subject: [docbook-apps] XML declaration error > > >> Hi All, >> >> Using the XML aware editor jEDIT, which I have been using for a while, >> I am getting an error I can't easily debug : >> asptext.xml:1:java.io.UTFDataFormatException: Invalid byte 2 of 2-byte >> UTF-8 sequence. >> >> Here is the header of my file. The error indicates the first line is >> the problem : >> >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4CR2//EN" >> >> "http://www.oasis-open.org/docbook/xml/4.4CR2/docbookx.dtd" >> [<!ENTITY % local.notation.class '| MOV'> >> <!NOTATION MOV SYSTEM 'MOV'> >> <!ENTITY fig1 SYSTEM 'aspfig1.png' NDATA PNG> >> <!ENTITY fig1legend SYSTEM 'aspfig1leg.xml'> >> <!ENTITY fig2 SYSTEM 'aspfig2.png' NDATA PNG> >> <!ENTITY fig2legend SYSTEM 'aspfig2leg.xml'> >> <!ENTITY fig3 SYSTEM 'aspfig3.png' NDATA PNG> >> <!ENTITY fig3legend SYSTEM 'aspfig3leg.xml'> >> <!ENTITY fig4 SYSTEM 'aspfig4.png' NDATA PNG> >> <!ENTITY fig4legend SYSTEM 'aspfig4leg.xml'> >> <!ENTITY fig2 SYSTEM 'aspfig2.png' NDATA PNG> >> <!ENTITY fig2legend SYSTEM 'aspfig2leg.xml'> >> <!ENTITY fig3 SYSTEM 'aspfig3.png' NDATA PNG> >> <!ENTITY fig3legend SYSTEM 'aspfig3leg.xml'> >> <!ENTITY fig4 SYSTEM 'aspfig4.png' NDATA PNG> >> <!ENTITY fig4legend SYSTEM 'aspfig4leg.xml'> >> <!ENTITY Asp_Refs SYSTEM 'asprefs.xml'> >> <!ENTITY pubmed_url >> 'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve& >> db=PubMed&list_uids='> >> <!ENTITY crossref_url 'http://dx.doi.org/'> >> ]> >> <article id="Asp_ArticleID"> >> <articleinfo> >> . >> . >> . >> >> Thank you in advance. >> >> >> >> Cheers, Tristan >> --- >> Tristan J. Fiedler >> Postdoctoral Fellow - Stein Lab >> Cold Spring Harbor Laboratory >> >> >> > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]