To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=98632
                 Issue #|98632
                 Summary|Mac Info.plist XML fails to parse when using JDOM
               Component|framework
                 Version|OOo 3.0
                Platform|Macintosh
                     URL|
              OS/Version|Mac OS X
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|tm
             Reported by|dcz_elluminate





------- Additional comments from dcz_ellumin...@openoffice.org Thu Jan 29 
23:42:32 +0000 2009 -------
The Info.plist file included in the Mac OS X native bundle contains the text:

                <!--- Microsoft Excel XML -->

Our application uses JDOM to parse the Info.plist to determine which
distribution (OOo vs. NeoOffice vs. StarOffice) and version is installed. When
JDOM parses this XML, it throws the following exception:

org.jdom.IllegalDataException: The data "- Microsoft Excel XML " is not legal
for a JDOM comment: Comment data cannot start with a hyphen..
        at org.jdom.Comment.setText(Comment.java:120)
        at org.jdom.Comment.<init>(Comment.java:86)

To be excruciatingly correct XML, the Info.plist text cited above should be
changed to read:

                <!-- Microsoft Excel XML -->

Once this is done, JDOM can parse it just fine. This text is present in the
Info.plist for both 3.0.0 and 3.0.1.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to