Results 1 to 2 of 2
  1. #1
    Join Date
    May 2010
    Posts
    2
    Rep Power
    0

    Default The markup in the document following the root element must be well-formed

    Hi ,
    i am new to java .
    we are having java parser in our shell script.

    Java Code:
    export JAVA_HOME='/opt/java1.5'
    base="/data/xerces-2_9_1"
    export CLASSPATH=$base/xercesImpl.jar:$base/xml-apis.jar:$base/xercesSamples.jar:$PATH
    and i am executing this

    Java Code:
    ${JAVA_HOME}/bin/java -classpath "$CLASSPATH" PPDSAXParser_general1_CRE23 $FILE_DIR/$file.xml $FILE_DIR/$PARSE_LAYOUT>> $FILE_DIR/$file.xml.out

    it is throwing with message saying that

    Java Code:
    Error in parsing XML layout
    org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
    	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    	at PPDSAXParser_general1_CRE23.Parse(PPDSAXParser_general1_CRE23.java:157)
    	at PPDSAXParser_general1_CRE23.main(PPDSAXParser_general1_CRE23.java:141
    )


    Please let me wats the problem i am not able to debug it

    Thanks in advance

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default

    Your xml file is not well-formed.
    Nothing to do with Java particularly.

Similar Threads

  1. JSP/Servlet getting root directory
    By Java Tip in forum Java Tip
    Replies: 1
    Last Post: 01-06-2009, 08:51 AM
  2. root directory
    By raghu9198 in forum New To Java
    Replies: 19
    Last Post: 01-06-2009, 03:11 AM
  3. Find nth root of a number
    By perito in forum New To Java
    Replies: 1
    Last Post: 03-03-2008, 06:51 AM
  4. Root Finder for polynomials
    By gibsonrocker800 in forum Advanced Java
    Replies: 11
    Last Post: 01-03-2008, 11:26 PM
  5. Context Root change
    By rvasu_77 in forum Advanced Java
    Replies: 2
    Last Post: 07-12-2007, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •