Automatic XML file import to CRM on Demand

Hi all,
I am new to CRM On Demand, and I need to set up a real-time automatic import of an XML file to CRM On Demand. I need the information to get entered as a new lead. If anyone has done this before and can guide me through the process, I would really appreciate it. I have done a few tests, but nothing has worked so far. I have no idea where to start.
Thanks!

Hi, yes I only use jax-ws to generate client artifacts for On Demand. I can imagine for first time user you have really big problems to generate the client code... The reason for this is in most cases the size of the wsdl files.
What you can do is.
1. Think about what you really need of the selected wsdl. eg. if it is account do you need all related objects like PlanAccount etc?
2. If you know what you need start to delete the not needed definitions from the wsdl and try the generation of client afterwards.
Best Regards
SL

Similar Messages

  • XML files imported into SPRC are not properly loading associated data into SPRC

    Hi EHS Gurus,
    My Issue is - XML files imported into SPRC are not properly loading associated data into SPRC .
    When am uploading the XML files manually its working fine in /TDAG/CPM00.
    The same when we are uploading the XML files thru basis program IPC (XML) Documents into SAP , its not working .In XMl file it showing its complaint the same time compliance workbench complaint statues it showing empty .
    for you reference pls see the attached screenshot .
    Pls can you help me on this .
    Regards,
    Suresh.

    Hi EHS Gurus,
    My Issue is - XML files imported into SPRC are not properly loading associated data into SPRC .
    When am uploading the XML files manually its working fine in /TDAG/CPM00.
    The same when we are uploading the XML files thru basis program IPC (XML) Documents into SAP , its not working .In XMl file it showing its complaint the same time compliance workbench complaint statues it showing empty .
    for you reference pls see the attached screenshot .
    Pls can you help me on this .
    Regards,
    Suresh.

  • The XML file importing Error / Exception

    Dear All,
    I am getting the following error while importing the XML file
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_REGION_DATA. Tokens: REGIONCODE = /doc/oracle/apps/po/selfservice/webui/DocSrvRcptQryPG;
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:527)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3719)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3452)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:999)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /doc/oracle/apps/po/selfservice/webui/DocSrvRcptQryPG, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1350)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:501)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3719)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3452)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:999)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /doc/oracle/apps/po/selfservice/webui/DocSrvRcptQryPG, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1350)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:501)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3719)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3452)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:999)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    The command format what I use is as follows:
    java oracle.jrad.tools.xml.importer.XMLImporter $JAVA_TOP/doc/oracle/apps/po/selfservice/webui/DocSrvDlvyRcptPG.xml -rootdir $JAVA_TOP -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<HOST_NAME>)(PORT=1521))(CONNECT_DATA=(SID=<SID>)))"
    java oracle.jrad.tools.xml.importer.XMLImporter $JAVA_TOP/doc/oracle/apps/po/selfservice/webui/DocSrvRcptQryPG.xml -rootdir $JAVA_TOP -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<HOST_NAME>)(PORT=1521))(CONNECT_DATA=(SID=<SID>)))"
    Am I wrong anywhere, Please sugegst the right way?
    Many thanks..,

    santark,
    There are numerous threads with details on xmlimporter usage and debugging steps in case something is wrong. Go through them.
    --Shiv                                                                                                                                                                                                                                                                                                       

  • Multiple XML file import

    I'm using LiveCycle Designer 8.0. I am trying to create a form but the xml data I want to connect to is in two different files.
    The form I am trying to create is a proposal/contract. I would like to be able to pull in information about two different parts of the form. Specifically Engineer info and Developer info. These two subsets mix and match constantly. The problem I am running into is that when I import one of the xml files, it NULLs all other fields. I also am unable to load two different xml schemas into the data view.
    Are there any ideas out there? The only idea I have is programmatically appending one xml file to the other and then loading it in but I don't even know where to start that within LiveCycle (I could knock that out pretty quick in vb.net).

    I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
    Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
    My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
    So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
    which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
    My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
    so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
    But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
    I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
    Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
    Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
    or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
    here are some link to reference
    Populating a LiveCycle PDF with PHP and MySQL
    http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
    HTML form that passed data into a PDF
    http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
    and an example
    http://accesspdf.com/html_pdf_form/

  • Automatic xml file generation

    parsing xml file and then getting data from xml is ok but is there any api that support xml file generatoion from data itself
    help plz

    JDOM has an XMLOutputter.
    DOM Level 3 allegedly supports outputting from the DOM itself.
    However if you don't want to use JDOM, and you don't have access to DOM Level 3, there is a way to do it using transformers. I'm not sure if this is a trick or whether it's considered the standard way to do it.
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    Document dom; // this is what you want outputted
    OutputStream stream; // this is where you want it outputted
    Transformer identity = TransformerFactory.newInstance().newTransformer();
    identity.transform(new DOMSource(dom), new StreamResult(stream));Note that it's not actually much code if you keep the identity transform around for reuse. JDOM's approach is a lot simpler though. :-)

  • XML file import in table

    Hello,
    I am working on oracle 10g on aix .
    I am trying to import a xml file in to table.
    but at the first column it is giveing error , any idea where is the issue .. ?
    sqlldr CONTROL=xml_insert.ctl, LOG=sample.log, BAD=baz.bad, DATA=newxml.xml
    USERID=test/test123
    Table
    desc XML_insert
    ID NOT NULL NUMBER(9)
    NBR NOT NULL VARCHAR2(10 CHAR)
    WHSE VARCHAR2(3 CHAR)
    CO VARCHAR2(10 CHAR))
    Control file
    OPTIONS (errors=1000000)
    LOAD DATA
    CHARACTERSET UTF8
    APPEND
    INTO TABLE XML_insert
    FIELDS TERMINATED BY X'9'
    TRAILING NULLCOLS
    ID "decode(:ID,null,0,'',0,:ID)",
    NBR,
    WHSE,
    CO,
    DIV)
    Xml file
    <?xml version="1.0" encoding="UTF-8" ?>
    - <PickticketBridge xmlns:bac="http://chain.sso.com/Order-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.3" xsi:noNamespaceSchemaLocation="Bridge_2_3_1.xsd">
    - <Pickticket>
    <Company>001</Company>
    <Division>001</Division>
    <PktCtlNbr>C38938607</PktCtlNbr>
    <Warehouse>AVE</Warehouse>
    <PktNbr />
    log file
    Record 89: Rejected - Error on table XML_insert, column ID.
    ORA-01722: invalid number
    Record 90: Rejected - Error on table XML_insert, column ID.
    ORA-01722: invalid number
    Record 91: Rejected - Error on table XML_insert, column ID.
    ORA-01722: invalid number
    Record 92: Rejected - Error on table XML_insert, column ID.
    ORA-01722: invalid number
    Record 93: Rejected - Error on table XML_insert, column ID.
    ORA-01722: invalid number
    Record 94: Rejected - Error on table XML_insert, column ID.
    ORA-01722: invalid number

    All answers are here : XML DB Developer&apos;s Guide
    There's a specific forum for related discussions too : {forum:id=34}
    SQL*Loader is not an XML parser.
    You have to first load the entire file in a database table, preferably in an XMLType column, then access the data relationally with dedicated XML functions.
    Here's an example that shows how to do both operations at the same time (but for performance sake, not recommended on large files) :
    create directory test_dir as '/tmp/xml';
    SQL> select x.*
      2  from xmltable(
      3        '/PickticketBridge/Pickticket'
      4        passing xmltype(bfilename('TEST_DIR','newxml.xml'), nls_charset_id('AL32UTF8'))
      5        columns Company   varchar2(10) path 'Company'
      6              , Division  varchar2(10) path 'Division'
      7              , PktCtlNbr varchar2(10) path 'PktCtlNbr'
      8              , Warehouse varchar2(3)  path 'Warehouse'
      9       ) x
    10  ;
    COMPANY    DIVISION   PKTCTLNBR  WAREHOUSE
    001        001        C38938607  AVE

  • XML File Import: VB Script Error

    Hello
    I am getting a VB Script Error when trying to use the "Import Data Model from Single XML file". Here is the error.
    Any ideas on how to fix this?
    Thanks

    Hi,
    I would check the code line in the import extension (line 1350) you are using to get an idea what is working wrong. Maybe you are able to put some output to see what objects import is not working.
    Could be an object that is not mapped or unknown and can not be transfered into the PowerDesigner metamodel object.
    HTH
    Stefan

  • XML file import

    Here are my system specs:
    iMac (late 2012)
    Fusion Drive
    Processor 3.1 GHZ Intel COre i7
    Memory 16GB 1600MHZ DDR3
    OSX 10.9.1
    Running
    Premiere Pro CC 7.2.1
    and FCP X 10.1
    Hello there,
    I have a fairly complex 3:00minute sequence that I want to export from Premiere using XML and then import into FCP X.
    I exported and the tranlation error log was too long so I duplicated, shortenened and simplified the sequence and the translation errors seemed much more manageable. I quit premiere pro and ran FCP X. Import->XML And the XML files were all greyed out! I couldnt even select them. I tried compying the entire project file including a copy of the XML into FCP and still no luck. Am I missing something here?

    Roundtrip..export XML from Premiere, open it in DaVinci Resolve..export XML from Resolve and import that XML in FCPX.

  • Automate xml file

    Hello all,
    i am running invoice print selected invoices program in Receivables when i ran it i am getting Xml output code. now i want to send this code as a file (i.e., file.xml) through email automatically.
    please advise me.
    Thanks

    Hello,
    Maybe you should check if you can use Ant tool to do
    that. I am not sure if it can help u.
    Zeph.
    http://ant.apache.org/
    It will, specially if used in conjunction with XDoclets :
    http://xdoclet.sourceforge.net/
    XDoclet has Ant tasks to generate web.xml files.

  • Error parsing ERwin 7.x File when I  tried to IMPORT repository format xml file in SQl Data Modeller

    This is what i got in the log file when i tried to import a relatively large file 1.7 GB xml file
    Import Finished
    Errors:   1
    Warnings: 0
    <<<<< ERRORS >>>>>
    Error parsing ERwin 7.x File:<File path>
    Please help.

    The error information in the External log file is
    ERROR ERwinHandler - ERwinHandler - Unable to parse ERwin 7.x file: <file path>
    java.lang.OutOfMemoryError: Java heap space
      at oracle.dbtools.crest.model.ModelIDObject.<init>(ModelIDObject.java:46)
      at oracle.dbtools.crest.model.design.DesignObject.<init>(DesignObject.java:111)
      at oracle.dbtools.crest.model.design.ContainedObject.<init>(ContainedObject.java:82)
      at oracle.dbtools.crest.model.design.ContainedObjectWithDomain.<init>(ContainedObjectWithDomain.java:76)
      at oracle.dbtools.crest.model.design.relational.FKElement.<init>(FKElement.java:14)
      at oracle.dbtools.crest.model.design.relational.Column.<init>(Column.java:148)
      at oracle.dbtools.crest.model.design.relational.Table.createColumn(Table.java:432)
      at oracle.dbtools.crest.imports.erwin.ERSAXParserv7x.parseColumns(ERSAXParserv7x.java:1681)
      at oracle.dbtools.crest.imports.erwin.ERSAXParserv7x.parseEntity(ERSAXParserv7x.java:1364)
      at oracle.dbtools.crest.imports.erwin.ERSAXParserv7x.endEntitiesAndAttributes(ERSAXParserv7x.java:994)
      at oracle.dbtools.crest.imports.erwin.ERSAXParserv7x.endElement(ERSAXParserv7x.java:428)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1666)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:458)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:404)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:245)
      at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:298)
      at oracle.dbtools.crest.imports.erwin.ERwinHandler.parseFile(ERwinHandler.java:252)
      at oracle.dbtools.crest.imports.erwin.ERwinHandler.access$500(ERwinHandler.java:51)
      at oracle.dbtools.crest.imports.erwin.ERwinHandler$Runner.run(ERwinHandler.java:126)
      at java.lang.Thread.run(Thread.java:745)
    2015-02-11 14:38:12,680 [main] INFO  ApplicationView - Oracle SQL Developer Data Modeler 4.1.0.866
    2015-02-11 16:13:44,218 [Thread-33] ERROR ERwinHandler - ERwinHandler - Unable to parse ERwin 7.x file: <file_Path>
    java.lang.OutOfMemoryError: Java heap space

  • How to Update existing XML File Using Java Swing

    Hi,
    I am reading XML file and getting keywords into JList. When i add some keywords into JList through textfield and remove keywords JList, then after click on save button it should update xml file. How can i do it ?
    Please provide me some code tips for updating xml file
    This is the code that i am using for reading XML File:
    import javax.swing.*;
    import java.awt.event.*;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    import java.io.IOException;
    import java.util.*;
    import java.text.Collator;
    import java.util.regex.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import com.cloudgarden.layout.AnchorConstraint;
    import com.cloudgarden.layout.AnchorLayout;
    public class getKeywords extends JFrame implements ActionListener
    static JPanel p;
    static JLabel lbl;
    static JButton btnSave,btnAdd,btnRemove;
    static String path;
    static Vector v;
    static JList lstCur;
    static JTextField txtKey;
    Document dom;
    static image imgval;
    NodeList nodelstImage;
    static AnchorLayout anchorLay;
    private DefaultListModel lstCurModel;
    public getKeywords()
         super("Current Keywords");
        v=new Vector();
        p=new JPanel();
        txtKey=new JTextField(10);
        btnAdd=new JButton("Add");
        btnRemove=new JButton("Remove");
        btnSave=new JButton("Save");
        lbl=new JLabel("Current Keywords");
        lstCurModel=new DefaultListModel();
            lstCur=new JList();
            JScrollPane scr=new JScrollPane(lstCur);
        runExample();
         lstCur.setModel(lstCurModel);
         p.add(lbl);
         p.add(scr);
         p.add(txtKey);
         p.add(btnAdd);
         p.add(btnRemove);
         p.add(btnSave);
         add(p);
         btnAdd.addActionListener(this);
         btnRemove.addActionListener(this);
         btnSave.addActionListener(this);
         setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    public static void main(String arg[])
         getKeywords g=new getKeywords();
         g.resize(250,400);
         g.setVisible(true);     
    public void actionPerformed(ActionEvent ae)
         if(ae.getSource()==btnAdd)
              lstCurModel.addElement(txtKey.getText());
         if(ae.getSource()==btnRemove)
              lstCurModel.remove(lstCur.getSelectedIndex());
         if(ae.getSource()==btnSave)
              //Code to Write
         public void runExample()
              //Parse the XML file and get the DOM object
              ParseXMLFile();
              //Get the Detail of the Image Document
              parseImageDocument();
              //Get the Detail of the LML Document
              //parseLMLDocument();
              //System.out.println(lmlval.Title);
         public void ParseXMLFile()
              //Get the Factory
              DocumentBuilderFactory builderFac = DocumentBuilderFactory.newInstance();
              try
                   //Using factory get an instance of the Document Builder
                   DocumentBuilder builder = builderFac.newDocumentBuilder();
                   //parse using builder to get DOM representation of the XML file
                   dom = builder.parse("LML.xml");
              catch(ParserConfigurationException pce)
                   pce.printStackTrace();
              catch(SAXException sax)
                   sax.printStackTrace();
              catch(IOException ioex)
                   ioex.printStackTrace();
         public void parseImageDocument()
              //Get the root element
              Element docImgEle = dom.getDocumentElement();
              //Get a nodelist for <Image> Element
              nodelstImage =  docImgEle.getElementsByTagName("Image");
              if(nodelstImage != null && nodelstImage.getLength() > 0)
                   for(int i = 0; i < nodelstImage.getLength(); i++)
                        //Get the LML elements
                        Element el = (Element)nodelstImage.item(i);
                        //Get the LML object
                        getImage myImgval = new getImage();
                        imgval = myImgval.getimage(el);
                        v.addElement(new String(imgval.Thumb));
                        String[] x = Pattern.compile(",").split(imgval.Keys);
                        for (int s=0; s<x.length; s++)
                        lstCurModel.addElement(x[s].trim());
                        //System.out.println(x[s].trim());
    }     Thanks
    Nitin

    You should update your DOM document to represent the changes that you want made.
    Then, using the Transformation API you simply transform your document onto a stream representing your file. Something like this:
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    transformer.setOutputProperty(OutputKeys.INDENT, "yes");
    // TODO - set indentation amount!
    Source source = new DOMSource(dom);
    Result result = new StreamResult(file);
    transformer.transform(source, result);Hope this helps.

  • XML file generation in Java

    Hello,
    I'm using XML files to communicate two systems. The XML files fulfill a W3C Schema.
    I want to know if there is any Java library, API or something like this, to generate automatically XML files that fulfill a schema, giving the schema file and the data to fill the XML file.
    Thanks,
    Laura.

    Please use the code tags when posting code, as described in the formatting tips.
    http://forum.java.sun.com/help.jspa?sec=formatting

  • CRM on demand/Pim sync want to sync appointment

    Hello Experts
    When i use Pim Sync to synchronize my appointments with CRM on demand Pim sync wants to add appointments that
    arent deposited in my CRM System.
    For example certain public holidays.
    Has this acurred to anybody except me?
    Is there a way to solve this issue?
    Kind regards

    Shawn,
    Why not try to turn off log file logging? I have this to turn it on I assume there is a way to turn it off.
    Oracle Customer Care will require the following information when investigating issues with PIM Sync.
    1.     The version of PIM Sync. You can find this in the readme.txt file in the installed program file (by default this is C:\Program Files\Oracle Siebel CRM On Demand\Oracle Siebel PIM Sync On Demand)
    2.     Log files. To switch on logging please follow this procedure:
    -     find the iloptcfg.cfg file. By default this configuration file is placed in C:\Documents and Settings\<user name>\Application Data\Oracle Siebel PIM Sync On Demand
    -     make a copy of this file that you can use to restore your original configuration
    -     edit iloptcfg.cfg using Notepad
    -     find the section with the heading [ilwin]
    -     change the MultiJobTraceLog value to 200 (the default is 1). This setting will generate the PTTrace.log file
    -     change the TifLog value to 100 (the default is 0). If this parameter does not exist, please add it (note that the TifLog label is case sensitive, so enter TifLog=100). This setting will generate the tif.log file
    -     Save the iloptcfg.cfg file
    -     rename or copy any existing PTTrace.log and tif.log files so that they are not lost
    -     rerun the PIM Sync and reproduce the error
    3.     Take copies of the PTTrace.log and tif.log files. There should also be a file called IS4Web.log. By default these log files are all placed in the folder C:\Documents and Settings\<user name>\Application Data\Oracle Siebel PIM Sync On Demand
    cheers
    Alex

  • When parsing a large size xml file , OutOfMemorry exception(attach code)

    Dear all ,
    I met a OutOfMemorry exception when I parse a xml file (20M) in my application(I extract data in xml file for building my application data), but I found that it take long time(for 2 more minutes) even just searching the xml file , because my application is viewed by web page , so it's too bad for waiting.
    what I used is org.jdom.input.SAXBuilder(jdom1.0beta8-dev) , and my xml file structure is like :
    <errors>
    <item1>content</item1>
    <item2>content</item2>
    </errors>
    and this is my source code of parsing xml file :
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.output.*;
    public class XMLProperties {
        private File file;
        private Document doc;
        private Map propertyCache = new HashMap();
        public XMLProperties(String filename) {
                SAXBuilder builder = new SAXBuilder();
                // Strip formatting
                DataUnformatFilter format = new DataUnformatFilter();
                builder.setXMLFilter(format);
                long time_start = System.currentTimeMillis();
                Runtime run = Runtime.getRuntime();
                doc = builder.build(new File(filename));
                System.out.println("Build doc memory ="+(run.totalMemory()-
                         run.freeMemory())/1024+"K");
                System.out.println("Build doc used time :"+(
                         System.currentTimeMillis()-time_start)/1000+" s");
            catch (Exception e) {
                System.err.println("Error creating XML parser in "
                    + "PropertyManager.java");
                e.printStackTrace();
         public String [] getChildrenProperties(String parent) {
            // Search for this property by traversing down the XML heirarchy.
            Element element = doc.getRootElement();
            element = element.getChild(parent);
            if (element == null) {
                // This node doesn't match this part of the property name which
                // indicates this property doesn't exist so return empty array.
                return new String [] { };
            // We found matching property, return names of children.
            List children = element.getChildren();
            int childCount = children.size();
            String [] childrenNames = new String[childCount];
            for (int i=0; i<childCount; i++) {
                childrenNames[i] = ((Element)children.get(i)).getName();
            return childrenNames;
        }the test main class:
    import java.util.Map;
    import java.util.HashMap;
    import org.jdom.*;
    import org.jdom.input.*;
    public class MyTest {
      public static void main(String[] args) {
        long time_start = System.currentTimeMillis();
        Runtime run = Runtime.getRuntime();
        Map childs = new HashMap();
        System.out.println("Used memory before="+(run.totalMemory()-run.freeMemory())/1024 + "K");
        XMLProperties parser = new XMLProperties("D:\\projects\\edr\\jsp\\status-data\\edr-status-2003-09-01.xml");
        String[] child = parser.getChildrenProperties("errors");
        for(int i=0;i<child.length;i++) {
    //      childs.put(new Integer(i), child);
    if(i%1000 == 0) {
    System.out.println("Used memory while="+(run.totalMemory()-run.freeMemory()/1024+"K"));
    System.out.println("child.length="+child.length);
    System.out.println("Used memory after="+(run.totalMemory()-run.freeMemory())/1024+"K");
    System.out.println("Time used: "+(System.currentTimeMillis()-time_start)/1000+"s");
    The result is : Used memory before=139K
    Used memory while=56963K
    Used memory after=51442K
    child.length=27343
    Time used: 146s
    is that some way to solve this problem ?
    Thanks for your help

    I met a OutOfMemorry exception when I parse a xml
    l file (20M) in my application(I extract data in xml
    file for building my application data)...Rule of thumb for parsing XML: the memory you need is about 10 times the size of the XML file. So in your case you need 200 MB of free memory.
    , but I found
    that it take long time(for 2 more minutes) even just
    searching the xml file , because my application is
    viewed by web page...Then you need to redesign your application. Parsing 20 megabytes of XML for every request is -- as you can see -- impractical. Sorry I can't suggest how, since I have no idea what your application is.

  • I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.h

    I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.how to do that in xml file ?

    Thanks john for you are reply.
    I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
    I click yes and save the .csv file and import from share servie. i got error like this
    am i doing right way john.or explain clearly

Maybe you are looking for

  • URGENT HELP: Need to reformat an external hard drive for Mac/Win!

    We got a Desk Hammer external hard drive and my hubby chose to format it as Mac Only when it first initialized. We needed it to be formatted for Mac/Win usage. Now we cannot figure otu how to reinitialize and reformat it. It's been years since I mess

  • Why are my RAW images imported in to Lightroom 5 being de-saturated?

    Lately, in LR 5.3 and 5.5, every time I import RAW images they show up de-saturated.  In the thumbnail they look right, but in both the library and develop mode main screens they show up very flat and de-saturated. This is the first time I have had t

  • Setting up LOCALE in solaris sparc 10

    HI, Please let me know how to set the locale in solaris 10, whether it need to be set at a session level or OS level to install BO XI 3.1 SP3? What is the language (LANG) to set if LC_ALL is en_US.UTF-8. Thanks in Advance, Mani

  • Problems installing windows xp !! help please

    when setup stops and asks "to set up windows xp press enter " the next screen says"setup did not find any hard disk drives installed in your computer" setup cannot continue! ive checked and done all i can think to do now for 3 days! my hard drive sho

  • FDM multiload Error

    Hi All, When i am doing multiload, at Export step was failing with below Error: Data Clear Error Calc Script Failed. Code=10410 Description=Essbase API Procedure: [EsbCalc] Threw code: 1012004 - 1012004 - [Mon Nov 05 14:48:25 2012]as-sg-hyp11/FCRSSGR