jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes XML document is not getting parsed properly. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML document is not getting parsed properly." Watch "XML document is not getting parsed properly." New topic

XML document is not getting parsed properly.

Devesh H Rao
Ranch Hand

Joined: Feb 09, 2002
Posts: 687

Hi all,
I am using Xerces parser included in Jakarta Ant v1.3 . the problem i am getting is whenever i am trying to parse an xml document which has no of action entries over a certain limit the parsing exits without returning any result.
I thought the tags may not be in proper format so i moved them at a random order still the error always occurs at a certain line no.
i am including the code below.

the xml has tags in the following format.
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<!DOCTYPE Order [
<!ELEMENT action-root (action)+>
<!ELEMENT action (class, forward-jsp-name)>
<!ATTLIST name>
<!ELEMENT class (#PCDATA)>
<!ELEMENT forward-jsp-name (#PCDATA)>

<action name="someaction">
Anybody with any suggestions about where i may be goin wrong please help.
Thanking all in advance.
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
are you getting any exceptions?
or it is just exiting?

Alongwith being a good coder, try to be a good professional as well!
I agree. Here's the link: http://aspose.com/file-tools
subject: XML document is not getting parsed properly.
It's not a secret anymore!