Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-535

Error line number always -1 for XML validation errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Works for Me
    • Version 3.0.1
    • Version 5.0.1
    • XmlObject
    • None

    Description

      After upgrading to xmlbeans 3.0.1 the validation of an XML document returns always -1 as line number of detected XML errors.

      I execute validation calling XmlObject.validate(XmlOptions), where XmlOptions class has this settings:
      setLoadLineNumbers()
      setSavePrettyPrint()
      setErrorListener()

      The same code works correctly returning the line number of detected XML validation errors using xmlbeans 2.3.0.

      Is there a way to get the correct line for XML validation error salso in 3.0.1 version?

      Regards,
      Paola

      Attachments

        Activity

          People

            kiwiwings Andreas Beeker
            boninip Paola Bonini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m