Results 1 to 2 of 2
  1. #1
    abhi140291 is offline Member
    Join Date
    Nov 2013
    Posts
    9
    Rep Power
    0

    Default import from xls to xml

    import jetr.nsef.api.xmlgenner.XMLGennerSingleton;
    import jetr.nsef.api.xmlgenner.XmlGenner;
    import org.jdom.Element;

    public class JavaApplication5 {

    /**
    * @param args the command line arguments
    */public static void main(String[] args) {
    try {
    XmlGenner x = XMLGennerSingleton.getXmlGenner();
    x.setCustomRows(1000);
    x.setOmitEmptyTags(true);
    x.setSubRootElementName("Country");
    x.generateXML_Item("D:/APNAKHATA/CS/apna.xls", "D:/APNAKHATA/CS/out3.xml");

    } catch (Exception ex) {
    ex.printStackTrace();
    }
    }
    }




    i got error while adding setRootElement method and i also add the jar file jdom but its not working please help

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

    Default Re: import from xls to xml

    Closing this duplicate of this one.
    Java
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. import.acm ?
    By javajosh in forum New To Java
    Replies: 4
    Last Post: 07-12-2012, 06:41 PM
  2. How do you import?
    By Gary20 in forum New To Java
    Replies: 2
    Last Post: 01-28-2011, 06:12 PM
  3. Import
    By gothrog in forum Java Applets
    Replies: 2
    Last Post: 05-13-2010, 11:16 PM
  4. Can not import jxl.*
    By AnnieDing in forum Java Servlet
    Replies: 3
    Last Post: 01-22-2010, 03:52 PM

Tags for this Thread

Posting Permissions

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