wood burning stoves 2.0*
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


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
Author

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-root>
<action name="someaction">
<class>someclass</class>
<forward-jsp-name>somejsp</forward-jsp-name>
<task-id>XXX</task-id>
<module-id>YYY</module-id>
</action>
</action-root>
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?
Tina


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.