jdom2 migration issue

"Craig Christophersen" <[email protected]> Mon, 20 Aug 2012 09:58:15 -0600
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
Hello;

I have been trying to migrate to Jdom2 in an application.  I have followed
the migration guide but get a type mismatch error.

Snippit below:

   protected org.jdom2.Document document; 

 

    private String str = null;

    private String dmString = "";

    String f = "f";

    String t = "t";

    protected DocType dt;

    /**

     * Read the specified File and parse it to create a JDOM tree

     **/

    public ReadDmFile(File dmFile)// throws IOException, JDOMException {

    { 

        System.out.println("File in ReadDm X: " + dmFile);

       

        try {

        SAXBuilder builder =

            new SAXBuilder(); //"org.apache.xerces.parsers.SAXParser"

      

        // Parse the specified file and convert it to a JDOM document

        builder.setIgnoringElementContentWhitespace(true);

        document = builder.build(dmFile);

 

 

 

On last line I get "Type mismatch: cannot convert from org.jdom2.Document to
org.jdom.Document"

The old jdom jar is removed from this project.

Any help would be appreciated.

 

Thanks,

 

 

Craig Christophersen

Software Developer

Synesis7

[email protected]

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]