How to update xml attributes as multiple rows

I am new to this technology, but i need to show the result
in xml document i have to update these attributes get from Databse utility class.
<equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">
<equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">By using XSLT Doucment i have to show this in table format multiple rows of data.
I'll be happy if anyone tell me the example.

Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT?
XSLT approach:  check these online tutorial
http://www.xml.com/pub/a/2000/08/02/xslt/index.html
http://www.xml.com/pub/a/2000/06/07/transforming/index.html
ABAP approach:
for example you have the xml (original) in a string called say xml_out .
data: l_xml  type ref to cl_xml_document ,
        node type ref to if_ixml_node  .
create object l_xml.
call method l_xml->parse_string
  exporting
    stream = xml_out.
node = l_xml->find_node(
    name   = 'IDENTITY'
   ROOT   = ROOT
l_xml->set_attribute(
    name    = 'Name'
    value   = 'Charles'
    node    = node
(the above example reads the element IDENTITY and sets attribute name/value to the same)
like wise you can add new elements starting from IDENTITY using various methods available in class CL_XML_DOCUMENT
so how do I access the XML file in order to update it?
you have already read this XML into a ABAP variable right?
Sorry couldnt understand your whole process, why do you need to read local XML file?
Raja

Similar Messages

  • Loading xml file with multiple rows

    I am loading data from xml files using xsl for transformation. I have created xsl's and loaded some of the data. In an xml file with multiple row, it's only loading one (the first) row. Any idea how I can get it to read and load all the records in the file???

    Could some please help me with the above. I desparately need to move forward.

  • HOw to update XML file residing in DAM by component JSP in run-time?

    i have made a component which reads xml file residing in DAM.
    Content Author can fill some values in dialog of this component, as soon as author provide the values,i have to update these values in XML file and component reloadsby reading the updated xml file.
    i am trying to achieve this by making object of XML file and giving it's path., but i ma unable to access the XML file.
    Can anyone help me out to how to update XML file by component JSP in run-time?

    Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT?
    XSLT approach:  check these online tutorial
    http://www.xml.com/pub/a/2000/08/02/xslt/index.html
    http://www.xml.com/pub/a/2000/06/07/transforming/index.html
    ABAP approach:
    for example you have the xml (original) in a string called say xml_out .
    data: l_xml  type ref to cl_xml_document ,
            node type ref to if_ixml_node  .
    create object l_xml.
    call method l_xml->parse_string
      exporting
        stream = xml_out.
    node = l_xml->find_node(
        name   = 'IDENTITY'
       ROOT   = ROOT
    l_xml->set_attribute(
        name    = 'Name'
        value   = 'Charles'
        node    = node
    (the above example reads the element IDENTITY and sets attribute name/value to the same)
    like wise you can add new elements starting from IDENTITY using various methods available in class CL_XML_DOCUMENT
    so how do I access the XML file in order to update it?
    you have already read this XML into a ABAP variable right?
    Sorry couldnt understand your whole process, why do you need to read local XML file?
    Raja

  • Updating Song Attributes for Multiple Users Sharing a Media Folder

    I have 2 users on the same iMac, each with their own library but sharing the same media folder. If one user updates song attribute information (example - adding the song year), how does the other user update his library with those attribute changes? I tried to do File-->Add to library which is the way one user adds songs to his library that the other user added, but that didn't work. If I play the song, it updates the information. If I select File-->Get Info for a single song, it updates the information, but if I select multiple songs it does NOT update the information.

    Got into the same issue today; I selected all the songs and updated the ratings. That helped to sync with the latest attributes. If you care about your song ratings.. then this might not help you.

  • How To Concatenate Column Values from Multiple Rows into a Single Column?

    How do I create a SQL query that will concatenate column values from multiple rows into a single column?
    Last First Code
    Lesand Danny 1
    Lesand Danny 2
    Lesand Danny 3
    Benedi Eric 7
    Benedi Eric 14
    Result should look like:
    Last First Codes
    Lesand Danny 1,2,3
    Benedi Eric 7,14
    Thanks,
    David Johnson

    Starting with Oracle 9i
    select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
    from
    (select last, first, code, row_number() over(partition by last, first order by code) rn
    from a)
    connect by last = prior last and first = prior first and prior rn = rn -1
    start with rn = 1
    group by last, first
    LAST       FIRST      CODES                                                                                                                                                                                                  
    Lesand         Danny          1,2,3
    Benedi         Eric           7,14Regards
    Dmytro

  • How  to update marketing attributes in sap crm 7.0

    hi sap gurus,
    I want to understand how to update the marketing attributes in sap crm, basically I want the logic to update the marketing attributes in the system. which tables I should verify & then I need to write an abap program  to update/modify the marketing attributes.I know the beginning validations,  the bu_group =zul1-outlet master from but000 table , after that I am stuck up with the logic. I know the field which  I need to update: in table cabnt, atinn field.
    Edited by: packframe2585 on Feb 23, 2012 7:47 AM

    Hi,
    i´m using FM CRM_MKTBP_MAINTAIN_OW. But this is also not very good from a performance point of view.
    Kind regards
    Manfred

  • How to update XML file through UCCX script ?

    Hi,
    I have an UCCX script with MENU step. One of the step is for technical support team. When caller chose this step, information about date and time of the call and calling number should be recorded on a XML file located on the web server.
    This XML is uploaded into the web server , but I don't know how to update it through UCCX script.
    Here is how the XML file looks like:
    <?xml version="1.0" ?>
    <rss version="2.0">
    <channel>
    <title>CALL LOG</title>
    <link></link>
    <description>Support Call log</description>
    <ttl>1</ttl>
    <item>
    <title>2011-08-24 14:56:39 - 00044 123 123 123</title>
    <link></link>
    <description></description>
    </item
    </channel>
    </rss>
    Any idea?
    Thanks,
    O

    Hi
    The 'keyword transform' step uses the template XML file to generate the actual XML file you want to post... the template would be a plain text file uploaded to the repository, and would look like so:
    <?xml version="1.0" ?>
    CALL LOG
    Support Call log
    1
    %%calldatetime%% - %%clinumber%%
    Now - if you had that bit of XML, with correct time/number in it - have you verified know that you can definately just post that XML to a certain URL to get it on the server? Check with whoever manages that server exactly what you need to do to get it to appear - then worry about how you do that from UCCX. It may not be a matter of posting up that XML, you may need it in a different format or something..
    Aaron

  • How to add XML attribute to an Element using BPEL assign

    I have a request xml to a bpel process that does not contain a attribute.
    After some process I need to create this missing attribute and set a value.
    I tried using the XML fragment in the Assign Activity. But how can I create a attribute?
    This XML node to which I am trying to create an attribute is a very huge node with lot of dynamic typing(xsi:type). I can just re-create the complete xml with required nodes.
    Does any one know how I can create a xml attribute using the BPEL assign? I do not want to use the Java code in my process.
    Thanks.

    I'm bit confused about what exact problem you are facing with attributes.
    You can check accessing XML attributes in BPEL Assign @ http://download.oracle.com/docs/cd/E12483_01/integrate.1013/b28981/manipdoc.htm#BABIHDHI from the page http://download.oracle.com/docs/cd/E12483_01/integrate.1013/b28981/manipdoc.htm.
    I suppose your source input has no attributes and destination has to be an xml with attribute of type xsi:type. You can use the assign activity as mentioned in above document to assign your type structure to type attribute.

  • How to update xml nodes?

    Hi friends,
                 i have a xml with 100 contacts , every contact has child nodes.....i want to update a perticular contact based on the id , how to update or a replace a new contact with matched contact based on contact id ,please help me out......
    thanks
    -Balu

    Hi
    The 'keyword transform' step uses the template XML file to generate the actual XML file you want to post... the template would be a plain text file uploaded to the repository, and would look like so:
    <?xml version="1.0" ?>
    CALL LOG
    Support Call log
    1
    %%calldatetime%% - %%clinumber%%
    Now - if you had that bit of XML, with correct time/number in it - have you verified know that you can definately just post that XML to a certain URL to get it on the server? Check with whoever manages that server exactly what you need to do to get it to appear - then worry about how you do that from UCCX. It may not be a matter of posting up that XML, you may need it in a different format or something..
    Aaron

  • How to display xml attributes in Layout (indesign cs2)

    Hi,
    Javascript
    Indesign CS2
    PC Version
    Any one tell me, i want to display the ids in the margin. i read xml attribute, but i didn't know how to display to the margin. Help me.

    One way of doing that is to use JDOM...
    u create an xml tree, and then output using XMLOutputter class...it will be displayed in text...im not sure if thats what u want...however, if u do want to represent it visually then u may need to draw a tree...u may use the Graphics2D for that...there are alot of ways to do such thing, and the 2 possibilities arent the best...depends on what u want...elaborate more pls.

  • How to make JMenubar's menu  multiple rows?

    These days I can not get any answers here about JMenubar. Is it possible????
    I want to JMenubar to show multiple-rows menu such as flowlayout behavior.
    But even I set flowlayout to JMenubar, the menu only display one row.
    How to resolve thie problem???
    Thank you !!!

    Hi, the problem is solved. The record will be created in same way. just create more then one keys (allowing to make composite key in DB table)

  • How to make RECORD for saving multiple rows for each employee..

    Hi,
    How can I create a record for saving multiple rows for each employee... (parent child relationship)
    I have created all required fields, then created a record, and then created a page. in that page i dragged-n-dropped a scroll area on that page and dropped all required fields from record into that scroll-area.
    whats is happening that its saving ONE (the first) record fine, but for the second record its not storing EMPLID for that row..
    Will I have to make some change at RECORD level ?
    OR Will i have to make some configuration in parent component ?

    Hi, the problem is solved. The record will be created in same way. just create more then one keys (allowing to make composite key in DB table)

  • Easy Question: How to split concatenated string into multiple rows?

    Hi folks,
    this might be an easy question.
    How can I split a concatenated string into multiple rows using SQL query?
    INPUT:
    select 'AAA,BBB,CC,DDDD' as data from dualDelimiter = ','
    Expected output:
    data
    AAA
    BBB
    CCC
    DDDDI'm looking for something kind of "an opposite for 'sys_connect_by_path'" function.
    Thanks,
    Tomas

    Here is the SUBSTR/INSTR version of the solution:
    SQL> WITH test_data AS
      2  (
      3          SELECT ',' || 'AAA,BBB,CC,DDDD' || ',' AS DATA FROM DUAL
      4  )
      5  SELECT  SUBSTR
      6          (
      7                  DATA
      8          ,       INSTR
      9                  (
    10                          DATA
    11                  ,       ','
    12                  ,       1
    13                  ,       LEVEL
    14                  ) + 1
    15          ,       INSTR
    16                  (
    17                          DATA
    18                  ,       ','
    19                  ,       1
    20                  ,       LEVEL + 1
    21                  ) -
    22                  INSTR
    23                  (
    24                          DATA
    25                  ,       ','
    26                  ,       1
    27                  ,       LEVEL
    28                  ) - 1
    29          )       AS NEW_STRING
    30  FROM    test_data
    31  CONNECT BY LEVEL <= LENGTH(REGEXP_REPLACE(DATA,'[^,]','')) - 1
    32  /
    NEW_STRING
    AAA
    BBB
    CC
    DDDD

  • How to disable resize function for multiple rows of inputText?

    I have a multiple rows inputText component like below:
    <af:inputText label="#{ZccToolbarGenBundle['OLabel.TransferNote']}"
    id="it1" autoSubmit="true" columns="150"
    immediate="true" simple="true" rows="5"
    binding="#{transferBean.transferNoteText}"/>
    How can I turn off the resizing icon on the bottom of right hand side of this input text box?
    Thanks for any help.

    Timo, the bug that I filed has been changed to 'not a bug'. The reason of that is 'That correct as it is not a valid CSS style on all browsers'. I sent email to ADF faces team and got following answers: 1. StyleClass that has agent specific setting for this setting. 2. You put the style class in a skin file and reference it. you can not use the inline style notation. It wants a Style Class.
    My question is what kind of StyleClass or skin file do you use so that you can use contentStyle="resize:none;"? Thanks.

  • How to check if "fetch" returns Multiple rows

    I want to know thru some variable (like %found) if the "fetch" returns multiple rows. How can I do it?
    My code:
    open      tab1_rec for
         'select fld1 '                ||
         'from     tab1 f '               ||
         'where     f.fld3 = :s1 and '     ||
         'f.fld4 = :s2 and '          ||
         'f.fld5 = 1 '
         using     fld3_in,
              fld4_in;
         fetch     tab1_rec into var1;
    -- If MULTIPLE
         if      tab1_rec%multiple
    Thanks

    If returning more than one row is unusual in some way (that is you are expecting only a single row) then you can do it like:
    BEGIN
       SELECT fld1 INTO var1
       FROM tab1 f
       WHERE f.fld3 = fld3_in and
             f.fld4 = fld4_in and
             f.fld5 = 1;
       < Do your processing here >
    EXCEPTION
       WHEN NO_DATA_FOUND THEN
          < handle no rows >
       WHEN TOO_MANY_ROWS THEN
          < handle multiple rows >
    END;No need for a cursor here. If you are expecting more than one row, and just want to know the count for information purposes, then you have to loop and fetch the records.
    HTH
    John

Maybe you are looking for

  • Lacie Hard Drives won't mount

    My two Lacie hard drives won't mount on my G5 running Tiger. They were fine on my G4 iMac running Panther. I've tried using the Lacie Update Tool but the drives aren't recognised. I've tested the firewire cables on another drive that works and they'r

  • I have iPhoto 11, can I easily find and delete duplicate photos?

    Is there an easy way (without going through thousands of photos and deleting them manually) to find and delete duplicate photos that are in my iPhoto library?

  • Unused Tax Group Deletion

    Hi In our existing SAP system, we have five tax groups and we have assigned four tax groups to PA , PSA. But the last tax group Eg. 5 its not assigned for any PA and PSA. So customer want to delete the unused tax group. So here, if we delete that, wh

  • Text not being allowed

    I am allowed to post a text into my movie, but when I do it covers the entire movie. I then crop it down to where it belongs, but it then will not accept anymore text. It's as if the open area still sees the original text as being there after it has

  • IDOC Splitting

    Folks, I have a iDOC - to - iDOC scenario where i need to split an idoc on receiving side without using BPM. Can anybody please tell me how to do it . We are running on SP14 Manish