Multiple TextArea one XML

What I need to do is to use 1 XML file to feed different
content to 2 different TextArea fields. I know how to use an XML
file to feed text content to a TextArea field. I figured out how to
use 1 XML file to feed the same text to 2 different TextArea fields
and how to use 2 XML files to feed 2 different TextArea Fields but
I can't figure out 1 XML feeding 2 different sets of info to 2
different TextArea fields. Is there something I can do in AS to
pull different XML tags to different TextFields? Thanks.

I've never done it before and I can't figure out how to call
the different nodes from AS. I've always used just one node before
so all I had to do was call the XML file.

Similar Messages

  • Loading multiple tables from one xml-file

    I've got one xml-file containing information which should be loaded into multiple database tables. How can I do that?

    Please use XSLT to tranform to XML file with XSU recognized format and separated for different table input.
    You may refer to Example in book "Building Oracle XML Applications".
    null

  • One xml, multiple xsl, multiple xslt, one output

    Hi,
    I have one xml file, 3 xsl files, and want to output (append) to a text file.
    I can only get a result when I run one xsl against the xml, if I try adding new xsl and new Transform instances, I get a whole host of errors. The bits in bold are what i'm adding to run a second transformation against original xml file, with a new stylesheet. Where am I going wrong?
    Here's my code:
    // create the XML content input source:
    String xmlInputFile = getFilepathdoc();
    Source xmlSource = new StreamSource(new FileInputStream(xmlInputFile));
    // create the XSLT Stylesheet input source
    String xsltInputFile1 = DefaultValues.xsl1;
    Source xsltSource1 = new StreamSource(new
    FileInputStream(xsltInputFile1));
    String xsltInputFile3 = DefaultValues.xsl3;
    Source xsltSource3 = new StreamSource(new
    FileInputStream(xsltInputFile3));
    // create the result target of the transformation
    // appends file
    String xmlOutputFile = DefaultValues.text1;
    Result transResult = new StreamResult(new FileOutputStream(xmlOutputFile,true));
    // create the transformerfactory & transformer instance
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer(xsltSource1);
    TransformerFactory tf3 = TransformerFactory.newInstance();
    Transformer t3 = tf3.newTransformer(xsltSource3);
    // execute transformation & fill result target object
    t.transform(xmlSource, transResult);
    t3.transform(xmlSource, transResult);
    Thanks

    The XSL stylesheets (xsltSource1 and xsltSource3) pose no problem at all. It is only the XML document to be transformed (xmlSource) that can cause problems if you supply its content in a stream-based object like an InputStream or a Reader. To clarify what I mean, here are a few examples.
    1. Multiple XSL transformation using multiple instances of stream-based source objects
    a) Instantiation with an InputStream:...
    Source xmlSource1 = new StreamSource(new FileInputStream(xmlInputFile));
    Source xmlSource3 = new StreamSource(new FileInputStream(xmlInputFile));
    t.transform(xmlSource1, transResult);
    t3.transform(xmlSource3, transResult);
    ...b) Instantiation with a Reader:...
    Source xmlSource1 = new StreamSource(new StringReader(<string content of xmlInputFile>));
    Source xmlSource3 = new StreamSource(new StringReader(<string content of xmlInputFile>));
    t.transform(xmlSource1, transResult);
    t3.transform(xmlSource3, transResult);
    ...Note that if you did the transformation multiple times with either xmlSource1 or xmlSource3, you would get an error. That's why I used different sources.
    2. Multiple XSL transformation using a single instance of a non-stream-based source object
    a) Instantiation with a File:...
    Source xmlSource = new StreamSource(new File("C:/xmlInputFile.xml"));
    t.transform(xmlSource, transResult);
    t3.transform(xmlSource, transResult);
    ...b) Instantiation with a String that conforms to a URL:...
    Source xmlSource = new StreamSource("file:C:/xmlInputFile.xml");
    t.transform(xmlSource, transResult);
    t3.transform(xmlSource, transResult);
    ...

  • Multiple XSL's from one XML?

    So I've got this XML file pointing to an XSL stylesheet, and
    its working great (client-side goin' on here), and yet I begin to
    wonder about the efficiency improvements (since I took data from 3
    HTML pages, and coded it as one XML file) if you can only apply one
    XSL stylesheet to one XML file. Kinda defeats the purpose if you
    have to write two more XML files for two more XSL stylesheets, eh?
    Then I'd be left with 6 files where I started with 3, and the same
    management nightmare. Anyone have a solution to this perplexity,
    cause it doesn't seem like its been solved easily in the forums
    here or anywhere I can find on the Web. I'm thinking maybe
    conditionals, but I'm not sure where to go from there. Thanks in
    advance!

    I'm going to need a little more detail. I have very little
    ASP experience. Are you saying to use the <xsl:include> tag
    in the individual XSL Stylesheets to pull only the data I want from
    the XML file? That's the idea. I've already got different repeat
    areas setup in three different XSL files, each pulling different
    areas of the XML file. But then, how would I direct the browser to
    display the correct XSL file to begin with, when the original call
    to display it is just a link to the XML file, which can only push
    out one of the XSL files to the viewer?

  • Have found multiple iTunes Library.xml files. Moved Library to new Hard Drive and it needs to be completely rebuilt?

    Hello. I have a Mac Mini operating Mac OS X 10.7.2. I recently had to move my iTunes Library to a new hard drive. I followed the directions on how to move the library and refind everything yet when I do so what comes up is a mere skeleton of what I had. I have had to hunt down my purchased Apps, Music and Movies and re-add them to the library. I also noticed in doing this I have multiple iTunes Library.xml files ... shouldn't there only be one?  If so how do I clean this up without doing any accidental damage (i.e. how do I find the one that is being used and delete the rest?)?  If I delete the others is there any risk of losing purchased content? Lastly syncing my iPads has become a nightmare as I get the "This iPad is currently synced to another iTunes library" message. Obviously something

    It's hard for me to picture the exact situation. It sounds like you still have your library file on the internal but some files on the external, and maybe some on the internal, some of which are in the library and others not...  By re-adding things after consolidating it may have made things into a hodge-podge. Yes, that article you referenced says: "iTunes for Mac: Moving your iTunes Media folder"with Media Folder being the emphasis.  You probably should have just moved your whole iTunes folder.  Still, moving the media folder as instructed should not have messed up the library.  Did you make the mistake of starting up iTunes before the external drive had mounted fully and it then told you it couldn't find many files?  How you proceed to sort it out will depend upon how much time you want to spend and how important things such as ratings and playcount are to you.  I have not actually used the consolidate feature across different drives myself (and don't feel inclined to do so here to test ).
    If you are in the USA you can download some previous purhcases with iCloud, but not all.
    Here's a bit on what an iTunes folder should look like:
    What are the iTunes library files? - [http://support.apple.com/kb/HT1660]
    More on iTunes library files and what they do - [http://en.wikipedia.org/wiki/ITunes#Media_management]
    Library files with graphic and explanation of different iTunes versions - http://discussions.apple.com/message.jspa?messageID=13169517
    Once you get iTunes working off the external drive it should just put new media to the external when you add it.
    I have almost no experience with synching (I synched my neice's iPod, once, about 4 years ago).

  • Query for Multiple Rows as XML

    Ok I've seen this topic in the forums, but have failed to get this to work within my process. Basically I have a process that has a user fill out a form, and upon submittal the form writes it's information to a database (via a data connection within the form that invokes a separate process upon submittal.), once this is done the main process is invoked and it's first step is to query that same database and bring back the data in a lower (now exposed) portion of the form that contains certain fields that track the issue history. The query brings back the xml document and I store it in an xml variable (xml_output). I then take this information and use the Set Value object to assign the returned nodes values to the location fields in the form. This works if the query returns only one row. But once the form is moved beyond the initial Task Assignment, (first user), and query returns more than just one row, the added nodes to not show up on the form, i.e I still just get information about the first row in my form. From what I've read the form should be able to recognize the xpath expression, and bring back all the nodes, by in a sense using instance manager to create an instance for each node on the form. My question is how can I get this to work. Jasmin if your still out there... Help!
    Also We're using Adobe LiveCycle ES 8.0
    created the process using Workbench
    the form was reader enabled and saved as a dynamic PDF.
    Thanks
    Mike

    Ok have done the binding of the schema to the form, and I'm getting the information to flow as it's supposed to.  The problem I'm having now, (I know I'm having a bunch.) is that once I've placed the form into my process, and I use the set value operation to pre-fill information I get the form to flow, but the rest of the information that was previously filled in is blank.  So I have checked the variable and nothing wrong there.  It appears the problem is how I'm using the set value operation.  If I don't use the set value operation, the form retains it's information.  And if I use the set value by trying to set the subform value, the form retains it's information, but no pre-fill.  I'm going to try to be a little more detailed here.  The xml that is returned looks like this:
            0016-03-30
            Mike
            Public Works
            alone in the dark
            Type sleep
            -1
            Council
            FYI
            Important
    Flowed and positioned are actual subforms on the form that have their properties set as their names indicates.  The entire path is /form1/Page1/flowed/positioned .  The way I was able to get the form to flow correctly upon the injection of this xml data, was to bind the subforms in the form in this manner, positioned[*].  Designer didn't place the [*] for me so I had to do this myself.  But once I previewed the document, the form pre-populated and created the necessary number of subforms and placed information into the fields correctly.
    Now on the process side, I have created an xfaform variable that stores the form (bound to xsd.)  information, and another xml variable that stores the query return that looks like the xml listed above (has an xsd associated with it for navigating xpath).  My first operation performs the query (JDBC- Query Multiple Rows as XML) and stores it into the xml variable.  The next step of the process is the Set Value operation which is supposed to inject the xml data retrieved from the query into the form.  Initially I tried the an xpath similar to the following:
    /process_data/object/data/form1/page1/flowed/positioned = /xml_data/flowed/positioned.
    No dice.  On this one the form retains the information filled out by the user (didn't explain this earlier, the form is filled out first, and upon submittal the process starts.), but doesn't pre-populate the bottom part of the form.  Next I tried the following xpath:
    /process_data/object/data/form1/page1/flowed = /xml_data/flowed/positioned.
    This time it retained the form information which was filed in by the user, but the bottom part is becomes hidden!  Didn't understand this.  But I started to kinda think that I had to navigate he xpath in order to correctly inject the xml into the form.  That being said my next attempt was:
    /process_data/object/data/form1/page1 = /xml_data
    My thinking was that if on location, I stop at page1, the xml in the variable will allow it to navigate correctly through the form.  Well it worked, but too well.  The top part of the form is blank, but the bottom portion is pre-populated correctly.  Now I'm stuck.  Not sure how to get the rest of the information in the form.  I thought about creating variables form each of the fields and then re-populating them after the injection of xml, but that didn't seem practical.  I'm almost positive it's something I'm not doing correctly with xpath.  Anyway, thanks for all your help on this.
    Mike

  • How do I import one xml file into 3 separate tables in db?

    I need to utilize xslt to import one xml file into 3 separate tables: account, accountAddress, streetAddress
    *Notice the missing values in middleName, accountType
    sample xml
    <account>
    <firstName>Joe</firstName>
    <middleName></middleName>
    <lastName>Torre</lastName>
    <accountAddress>
    <streetAddress>
    <addressLine>myAddressLine1</addressLine>
    <addressLine>myAddressLine2</addressLine>
    </streetAddress>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>mypostalCode</postalCode>
    </accountAddress>
    <accountId>A001</accountId>
    <accountType></accountType>
    <account>
    I need the following 3 results in 3 separate xml files in order for me to upload into my 3 tables.
    Result #1
    <rowset>
    <row>
    <firstName>Joe</firstName>
    <lastName>Torre</lastName>
    <accountId>A001</accountId>
    <row>
    <rowset>
    Result #2
    <rowset>
    <row>
    <addressId>1</address>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>myPostalCode</postalCode>
    <row>
    <rowset>
    Result #3
    <rowset>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>1</addressLineSeq>
    <addressLine>myAddressLine1</addressLine>
    <row>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>2</addressLineSeq>
    <addressLine>myAddressLine2</addressLine>
    <row>
    <rowset>

    Use XSU to store in multiple tables.
    "XSU can only store data in a single table. You can store XML across tables, however, by using the Oracle XSLT processor to transform a document into multiple documents and inserting them separately. You can also define views over multiple tables and perform insertions into the views. If a view is non-updatable (because of complex joins), then you can use INSTEAD OF triggers over the views to perform the inserts."
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14252/adx_j_xsu.htm#i1007013

  • Multiple Selection in XML files

    i have been having issue getting this code to work for multiple files. it does work for one xml file but i want it to work for multiple files can anybody help out
    here is the code:
    import java.sql.*;
    import java.awt.*;
    import javax.swing.*;   
    import java.awt.event.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Node;
    import org.w3c.dom.Element;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class XMLExtractorPanel extends JPanel implements ActionListener
        JButton button, cButton, exitButton;
        JTextField field;
        JPanel buttonFieldPanel;
        Connection con;
        PreparedStatement stat;
        JPanel imagePanel;
        JPanel exitPanel;
        java.sql.Date sqlDate;
        public XMLExtractorPanel()
            this.setLayout(new BorderLayout());
            imagePanel = new JPanel();
            JLabel consult = new JLabel();
            consult.setIcon(new ImageIcon("images/t.jpg"));
            JLabel unity = new JLabel();
            unity.setIcon(new ImageIcon("images/y.jpg"));
            imagePanel.add(unity);
            imagePanel.add(consult);
            add(imagePanel, BorderLayout.PAGE_START);
            buttonFieldPanel = new JPanel();
            button = new JButton("");
            field = new JTextField(10);
            field.setBounds(30, 50, 200, 25);
            button.setBounds(240, 50, 100, 25);
            buttonFieldPanel.add(field);
            buttonFieldPanel.add(button);
            add(buttonFieldPanel, BorderLayout.CENTER);
            button.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    Chooser panel = new Chooser();
                    field.setText(panel.fileName);
            JPanel cpanel = new JPanel();
            cButton = new JButton("CLICK TO SAVE DATA");
            cButton.addActionListener(this);
            cpanel.add(cButton);
            add(cpanel, BorderLayout.CENTER);
            exitPanel = new JPanel();
            exitButton = new JButton("EXIT");
            exitButton.setBounds(240, 50, 100, 25);
            exitButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    System.exit(0);
            exitPanel.add(exitButton);
            add(exitPanel, BorderLayout.PAGE_END);
        public void actionPerformed(ActionEvent e)
            cButton = (JButton)e.getSource();    
                getOperation();
        public void getOperation()
            Chooser panel = new Chooser();
                try
                ArrayList timeStamp = new ArrayList();
                     ArrayList Y = new ArrayList();
                 File fXmlFile = new File(panel.fileName);
                DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
                Document doc = dBuilder.parse(fXmlFile);
                doc.getDocumentElement().normalize();
                BufferedReader rd = new BufferedReader(new FileReader(fXmlFile));
                        String fileUpload = "";
                do
                    field.setText(fileUpload);
                    System.out.println("Root element :" + doc.getDocumentElement().getNodeName());
                    NodeList nList = doc.getElementsByTagName("Item");
                    System.out.println("----------------------------");
                    for (int temp = 0; temp < nList.getLength(); temp++)
                        Node nNode = nList.item(temp);
                        System.out.println("\nCurrent Element :" + nNode.getNodeName());
                        if (nNode.getNodeType() == Node.ELEMENT_NODE)
                             Calendar cal = Calendar.getInstance();
                            Format formatter = new SimpleDateFormat("dd/MM/yyyy");
                            String creationDate = formatter.format(new java.sql.Date(cal.getTimeInMillis()));
                            Element eElement = (Element) nNode;
                            double transCode =  Double.parseDouble(eElement.getAttribute("TransCode"));
                            double serialNo = Double.parseDouble(eElement.getAttribute("SerialNo"));
                            double amount = Double.parseDouble(eElement.getAttribute("Amount"));
                            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                    Connection con = DriverManager.getConnection("jdbc:odbc:DataSource", "", "");
                            stat = con.prepareStatement("INSERT INTO ExcelTable(TransCode, SerialNo, Amount) VALUES(?,?,?);");
                            stat.setDouble(4, transCode);
                            stat.setDouble(5, serialNo);
                            stat.setDouble(6, amount);
                            stat.executeUpdate();
                            con.close();
                    //JOptionPane.showMessageDialog(null, "Data Recorded!", "Data Entry", JOptionPane.INFORMATION_MESSAGE);
                }while((fileUpload = rd.readLine()) != null); JOptionPane.showMessageDialog(null, "Data Recorded!", "Data Entry", JOptionPane.INFORMATION_MESSAGE);
                catch(SQLException ex)
                    System.out.println("SQLException");
                    ex.printStackTrace();
                    JOptionPane.showMessageDialog(null, "Recorded Altered!", "Data Entry", JOptionPane.WARNING_MESSAGE);
                catch(NumberFormatException ex)
                    System.out.println("NumberFormatException");
                    System.out.println(ex);
                    JOptionPane.showMessageDialog(null, "Recorded Altered!", "Data Entry", JOptionPane.WARNING_MESSAGE);
                catch(Exception e)   
                    System.out.println("Error1 "+ e);
                    JOptionPane.showMessageDialog(null, "Cannot Record Data!", "Data Entry", JOptionPane.WARNING_MESSAGE);
                if(con != null)
                    try
                        con.close();
                    catch(SQLException sqle)
                        System.err.println(sqle.getMessage());
                        JOptionPane.showMessageDialog(null, "Cannot Record Data!", "Data Entry", JOptionPane.WARNING_MESSAGE);
    class Chooser extends JPanel
        JFileChooser chooser;
        String fileName;
        public Chooser()
            chooser = new JFileChooser();
            chooser.setMultiSelectionEnabled(true);
            int r = chooser.showOpenDialog(new JFrame());
            if (r == JFileChooser.APPROVE_OPTION)
                fileName = chooser.getSelectedFile().getPath();

    Hi OCMF!
    Thanks for your post, at this time you're only able to select
    one document at a time within the my files section, which will
    confine your deletion to individual steps.
    We plan to improve the usability and functionality during
    this beta phase, so keep your eyes peeled for coming updates!
    Otherwise, thanks for being a part of Acrobat.com!
    Cheers,
    Pete

  • How to transfer multi-input xml file to One xml file using BPM?

    Hi!
    Using BPM, We wana transfer multiful xml file to One xml at Remote FTP Server.
    I don't know how to design BPM.
    ============== samle1: input xml====================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE Shipments SYSTEM "DTD/Shipment.dtd">
    <Shipments>
      <sendingPartnerID>XXX</sendingPartnerID>
      <receivingPartnerID>XXX_UPSTMS</receivingPartnerID>
      <receivingMessageType>TPSDLS</receivingMessageType>
      <Shipment ID="0081646547" Type="CREATE">
        <CustomerID>XXX</CustomerID>
      </Shipment>
    </Shipments>
    ============== samle2: output xml====================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE Shipments SYSTEM "DTD/Shipment.dtd">
    <Shipments>
      <sendingPartnerID>XXX</sendingPartnerID>
      <receivingPartnerID>XXX_UPSTMS</receivingPartnerID>
      <receivingMessageType>TPSDLS</receivingMessageType>
      <Shipment ID="0081646547" Type="CREATE">
      </Shipment>
      <Shipment ID="0081886548" Type="CREATE">
      </Shipment>
      <Shipment ID="0081646999" Type="CREATE">
      </Shipment>
    </Shipments>
    Message was edited by: ChangSeop Song

    Hi,
    To convert multiple xml files into a single file, you will have to perform a N:1 mapping.
    The following tutorials are available on SAP to help you understand BPM and also to collect multiple XML messages so that they can be mapped into a single message. Check them out,
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards,
    Bhavesh

  • Bursting - OUTPUT sends one big report, instead of multiple individual ones

    Bursting - OUTPUT sends one big report, instead of multiple individual ones:
    Data File below - shows report has the proper tags for the PP_NUMBER; which should split the job into individula files to be email, instead it creates one large file and emails it to the last email account
    Please help!
    <BCG_PPINVOICE_UK_ALL>
    - <LIST_G_PP_NUMBER>
    - <G_PP_NUMBER>
    <PP_NUMBER>PP100</PP_NUMBER>
    + <LIST_G_INVOICE>
    <PP_TOTAL>-1965</PP_TOTAL>
    <AMOUNT_BEFORE_START>0</AMOUNT_BEFORE_START>
    <PP_INVOICE_CONTACT>HPA - Michael Palmer</PP_INVOICE_CONTACT>
    <ADDRESS1>Porton Down</ADDRESS1>
    <ADDRESS2 />
    <ADDRESS3 />
    <ADDRESS4 />
    <CITY>Salisbury</CITY>
    <COUNTRY>United Kingdom</COUNTRY>
    <EMAIL_ADDRESS>[email protected]</EMAIL_ADDRESS>
    </G_PP_NUMBER>
    - <G_PP_NUMBER>
    <PP_NUMBER>PP101</PP_NUMBER>
    + <LIST_G_INVOICE>
    <PP_TOTAL>0</PP_TOTAL>
    <AMOUNT_BEFORE_START>0</AMOUNT_BEFORE_START>
    <PP_INVOICE_CONTACT>Imperial College - Prof Wells</PP_INVOICE_CONTACT>
    <ADDRESS1>Level 3</ADDRESS1>
    <ADDRESS2>Sherfield Building</ADDRESS2>
    <ADDRESS3 />
    <ADDRESS4 />
    <CITY>London</CITY>
    <COUNTRY>United Kingdom</COUNTRY>
    <EMAIL_ADDRESS>[email protected]</EMAIL_ADDRESS>
    </G_PP_NUMBER>
    - <G_PP_NUMBER>
    <PP_NUMBER>PP102</PP_NUMBER>

    This is EBusiness - XML Publiser (Not Enterprise)
    My Control file is as follows:
    <xapi:requestset type="bursting">
    <xapi:request select="/BCG_PPINVOICE_UKB_ALL/LIST_G_PP_NUMBER/G_PP_NUMBER/PP_NUMBER">
    <xapi:delivery>
    <xapi:email id="/G_PP_NUMBER/${PP_NUMBER}" server="localhost" port="25" from="[email protected]" reply-to="[email protected]">
    <xapi:message id="/G_PP_NUMBER/${PP_NUMBER}" to="${EMAIL_ADDRESS}" attachment="true" subject="Becmanc Coulter Genomics - Prepaid Account Balance ">Dear Prepaid Account holder Please find attached the current statement of your account. If you have any queries regarding the statement, or wish to make a top up of the account please e-mail me directly at [email protected] Kind regards UK Finance Team</xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="output="PP_STATEMENT_${PP_NUMBER}"" output-type="pdf" delivery="/G_PP_NUMBER/${PP_NUMBER}">
    <xapi:template type="rtf" locale="" location="xdo://XBOL.BCG_PPINVOICE_UKB.en.US/?getSource=true"/>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Edited by: user9015277 on Sep 3, 2010 10:29 AM

  • XML parser for fatching multiple values from XML

    Hi,
    In my scenirio i have to facth multiple values from XML file and then set in to Table in webdynpro...
    Fo example my xml has values like...
    <xml>
         <item>
              <item1>
                   <quantity>
                        100
                   </quantity>
                   <price>
                        50
                   </price>
              </item1>
              <item2>
                   <quantity>
                        200
                   </quantity>
                   <price>
                        20
                   </price>
              </item2>
              <item3>
                   <quantity>
                        300
                   </quantity>
                   <price>
                        10
                   </price>
              </item3>
         </item>
    </xml>
    then i have to fcath those quantity and price and set in to table...
    How to do taht in webdynpro and does any one have parser code for retriving multiple values...

    Hi,
    1) You need to use JDOM parser.
    2) The code for parsing XML using JDOM parser is readily available if you search on google.
    3) You will have to check the attribute during every parsing and then if attribute is quantity you can fetch the corresponding tags.
    4) Something similar to this:
    org.jdom.Document document = parser.build(file);
                    org.jdom.Element rootElement = document.getRootElement();
                    org.jdom.Element childElement = rootElement.getChild("file");
                    Element xmlElement = childElement.getChild("item");
                    if (xmlElement != null) {
                        List itemElementsList = xmlElement.getChildren("item1");
                        if (itemElementsList != null) {
                            Iterator iterator3 = itemElementsList.iterator();
                            while (iterator3.hasNext()) {
                                //For each group get quantity
                                Element itemElement = (Element) iterator3.next();
                                List quantityElementsList =
                                        itemElement.getChildren("quantity");
                                if (quantityElementsList != null) {
                                    Iterator iterator2 =
                                            quantityElementsList.iterator();
                                    while (iterator2.hasNext()) {
    // Your code                                                                               
    You might need to make some changes as per your rquirement. Just use this sample to understand how you need to parse the xml
    Hope it helps.
    Regards.
    Rajat
    Edited by: Rajat Jain on Jan 22, 2009 9:51 AM

  • Return Code - Query for Multiple Rows as XML

    Hi,
    I'm executing an MSSQL stored procedure through the "Query for Multiple Rows as XML" activity in LiveCycle ES. I do this through a call statement such as this:
    { call MyStoredProc(?) }
    This works great, the stored procedure always returns a record set (with or without records). I use this activity rather than "Call Stored Procedure" because I can transform the record set into XML right away within this activity. Unfortunately any exception arising from invoking this stored procedure cannot be handled within the workflow as this activity does not have an exception handler (lightning bolt). In an attempt to handle at least some exceptions we have decided to use try/catches within the stored procedures and return different error codes. Now the problem I am faced with is that there is no way to retrieve the returned code within any of the SQL activities. We don't want to have to write an execute script for each of these SQL calls. Is there any way to do this? Seems like I'm 95% there.
    Thanks
    Nic

    Thanks for the offer, unfortunately we would need something certified by Adobe.
    Nic

  • 2 or more Sales Quotatons in one XML file

    Hi,
    i wanted to know if i can tranfer 2 or more sales quotations to SB1 using only one XML file or do i have to split so that every sales quotation will have a seperate XML file?
    Thanks, udi

    The person just opened some additional window using Window > New window. Perhaps to have different Views of the file and not having to scroll all the time.
    You can easily fix it by just closing the windows. It does no harm to the file. When you save with only one window open, next time you open will also be one window.

  • How do I split a single event with many clips into multiples events, one event per date?

    I archived the video from my AVCHD camera into a Final Cut video archive. Later I imported this into iMovie. All the clips from this archive (spanning several months) are dumped into a single event. If I recall, older versions of iMovie would import video into separate events for each day. Then I would go through and give each event a meaningful name (e.g., "Mary's Birthday").
    This is what I would like. Is there a way to split this very long event into multiple events, one for each day that is present in the event?

    Not automatically but with imovie 10 you can create new events with any name you like then move clips into them from other events  (Just like FCP 10.1).   See:
    http://help.apple.com/imovie/mac/10.0/#mov1d890f00b
    You can also choose to display clips in an event grouped by date.
    Geoff

  • How do I update a waveform chart with multiple plots one point at a time?

    Hi,
    I am updating multiple plots one point at a time.  That is, every time I update the chart I have a value for one of the plots.  If I put in a cluster with NaN for each of the charts except the one with the data I can only get individual points on the chart.  I would rather have them connected.
    Any clues?  The only thing I can think of is to delay the update and do interpolation between samples - too complicated for me.
    Thanks

    Are the points within a given plot equally spaced in time?  If so, perhaps you need to maintain your own history of the data and used a waveform graph rewriting the history data to the graph each time.  If the points are unequally spaced, then you will need to do it as an XY graph.

Maybe you are looking for