Skip to main content

Parsing Problem

1 reply [Last post]
Joined: 2009-05-31

Dear All,
I am facing parsing problem of the following file. I want to extract information using tag
"lgCommon:entityDescription" but getting following errors

Exception in thread "main" org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(
at thesaurusparsing.cabitesting.CabiParser.main(
Could you please suggest me how can I solve this problem or parsing file.

<?xml version="1.0"?>

Agricultural policies

Agricultural policies

????? ??????


Politique agricole

Política agrícola

zemìdìlská politika

Política agrícola


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2004-12-15


Check you xml file. The prolog needs to be the first thing in the file.