[jdom-interest] special characters breaking parse??

Matthew MacKenzie matt at xmlglobal.com
Thu Jan 25 20:09:57 PST 2001


Hello,

I am parsing an XML file,  and when characters with accents and such are
encountered,
the following stack trace is thrown.  I tried changing the encoding to
UTF-8, but that didn't work.

Has anyone else had this problem?


<stackTrace>

org.jdom.JDOMException: The element type "TITLE" must be terminated by the
matching end-tag "</TITLE>".: Error on line 180: The element type "TITLE"
must be terminated by the matching end-tag "</TITLE>".
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:315)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:337)
</stackTrace>

Relevant Data:

169      <TRACK>
170       <TRACKID>41676</TRACKID>
171        <TITLE>Tannhäuser / Derivè</TITLE>
172        <ALBUM>The Shape Of Punk To Come</ALBUM>
173       <ARTIST>Refused</ARTIST>
174       <GENRE></GENRE>
175      
176<FILENAME>Refused-The_Shape_Of_Punk_To_Come-11-Tannhäuser_Derivè.mp3</FILENAME>
177        <SIZE>7797864</SIZE>
178       <FORMAT>.mp3</FORMAT>
179       <QUALITY>128000</QUALITY>
180        <CHANNELS>2</CHANNELS>
181        <DURATION>489</DURATION>
182      </TRACK>                   

--
Matthew MacKenzie




More information about the jdom-interest mailing list