Parse Error Messages

These are various messages, given during importing an external document. They all mean that the document is not well-formed.

  1. Attribute <attr_name> already declared at line line_no, position position_no !

    Is is given when an attribute is declared more than once for the same element.
    Example:

    <book author = ”Luis” author = ”Carol”>

  2. Attribute declaration must be in the opening tag at line line_no, position position_no !

    This is given when the parser finds attribute declarations in the closing tag of an element.
    Example:

    <book>Alice in Wonderland</book author = ”Luis Carol”>

  3. Attribute value not closed at line line_no, position position_no !

    This is given when an attribute value is not closed.
    Example:

    <book author = ”Luis Carol>

  4. CDATA section not closed at line line_no, position position_no !

    This is given when a CDATA element lacks its closing declaration - ‘]]>’.
    Example:

    <book><![CDATA[ Alice in Wonderland</book>

  5. Comment at line line_no, position position_no not closed!

    This is given when a comment is opened but not closed. The missing end is '-->'. Comments are parsed, but not processed further.

  6. Doctype declaration not valid at line line_no, position position_no !

    This error is given when there is a DTD in the file, containing the document and the DTD, cannot be parsed successfully.

  7. Document not finished!

    It is given when the document element is not closed.
    Example:

    <books><book> Alice in Wonderland </book> (end of document)

  8. Element not closed at line line_no, position position_no !

    This is given when the opening or the closing tag is not properly closed.
    Example:

    <book author = "Luis Carol>… (missing closing ")

    <book (end of document)

  9. Invalid attribute at line line_no, position position_no !

    This is given when an attribute is not given a value.
    Example:

    <book author>

  10. Invalid character at line line_no, position position_no !

    This is given when there are characters other than white space characters at the beginning of the document.
    Example:

    Asdfg <books>…..</books>

  11. Invalid element at line line_no, position position_no - <> !

    This is given when the parser finds an opening tag without a name, i.e. the sequence ‘<>’.

  12. Invalid element at line line_no, position position_no - </> !

    This is given when the parser finds a closing tag without a name, i.e. the sequence ‘</>’.

  13. Invalid nesting of opening and closing tags at line line_no, position position_no. Expected <element> opened at line line_no, position position_no .

    This is given when the parser finds an element that is closed before all of its children are closed.
    Example:

    <books><book> Alice in Wonderland </books>

  14. No document or wrong char encoding!

    This is given on a blank document file or when the character encoding is not recognized. Character encoding is set when the user is asked to point out to a file containing the document.

  15. Processing Instruction at line line_no, position position_no not closed!

    This is given when a Processing Instruction is opened but not closed. The missing end is '?>'. Processing instructions are parsed, but not processed further.

  16. Text not closed at line line_no, position position_no !

    Is is given when the documents end in a text.
    Example:

    <book>Alice in Wonderland (end of document)