Skip to main content

Parsing Problem

1 reply [Last post]
ahmorshed1471
Offline
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(DocumentBuilder.java:208)
at thesaurusparsing.cabitesting.CabiParser.main(CabiParser.java:55)
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.
joehw
Offline
Joined: 2004-12-15

See http://forums.sun.com/thread.jspa?threadID=694303

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