Xml template processing

Hi,
I have a typical problem. I want to read an xml template (which is nothing but an xml document with place holders) and replace the place holders with corresponding values from another xml document which contains the data.
How do I go about it? What is the most common method used?
Thanks
Shailesh

Not having done a survey, I have no idea what is the most common way to solve that. My choice would probably be XSLT, but it would still depend on the details of the problem.

Similar Messages

  • Post data to XML template in Agentry app

    Hi Community,
    Is there a way to post data from object/transaction properties to XML template in Agentry?
    From the below link, it appears we can do it using an update rule, but I couldn't understand how? Any other information on this would be helpful.
    How to configure Agentry to format and post an xml document to a url using transaction data - SAP Mobility - SCN Wiki
    Thanks
    Narasimha
    Tags edited by: Michael Appleby

    Narasimha,
    That article is just suggesting that it could be done with an update rule.  This would still be a completely manual process where you would need to create the XML using CONCATENATE statements in the rule to build the XML by hand.  The update rule would be tied to a transaction property.  You would then use the Java or SQL backend to pass the generated XML to your backend system.
    To have Agentry build the XML transaction data for you via template, you need to use the XML backend and create XML backend steps.  The XML backend is used primarily for communicating with web services.  Within the step, you set up your base XML template with placeholders for the transaction properties.
    Here are a couple links to help get you started with the XML backend:
    Configuring HTTP-XML Back-end Connections for Agentry Applications - Administrator - SAP Library
    SyBooks Online
    Jason Latko - Senior Product Developer at SAP

  • Error while trying to update the XML template using XML Publisher Administrator

    Hello Folks,
    We are on R12.1.3
    I changed a condition in a report and trying to upload the new XML template using XML Publisher Administrator.
    when i click the Apply button, it is throwing an error 'Bad Request'
    Navigation : XML Publisher Administrator > Data Definitions > query the report
    Click on the name of the report > click 'Update file' besides Data Template > Choose file > Click Apply
    I am getting the below error
    Bad Request
    Your browser sent a request that this server could not understand.
    Now, i could not upload a new XML template.
    Am I doing anything wrong.
    regards,
    Kris

    user10163762 wrote:
    Thank you Eugen and Hussein.
    The problem is not with the template.
    It seems to be a problem in that particular instance.
    Uploaded it in a different instance.
    However once i run the program, i cannot view the output as the browser window flashes and disappears.
    My colleague says , it is to do with the trusted site to download something from the browser.
    Can you please guide me on how to fix this ?
    http://bit.ly/1k8e2vi
    Thanks,
    Hussein

  • How to sort Data in XML template (rtf) file?

    Hi, I have an oracle 11i custom report (rdf) with an xml output to a PDF. There is a formula column in the report. Now I need the data to be sorted on this formula column. As we cannot sort on formula column, i have decided to find a way to sort it in the data in the XML template. But I don't really know how to sort and also where to specify the sort tag in the rtf file. I appreciate your response.
    Databse version : 9.2.0.8.0
    E-Biz Version : 11.5.10.2
    Oracle Reports Version : 6.0.8.27.0
    Oracle BI version : 10.1.3.2.1
    Note : I posted this question under : XML General forum also. But did not get any response. I assumed that may be thats not the right place to post it as my report is in e-Biz environment.

    Hi
    As long as you don't have your ^field commands grouped inside a ^group the order in the .dat file is not important. Your last command
    ^field BG_DOC_LN__LN_AM
    246624.12
    should populate field BG_DOC_LN_AM wherever you place it on your form. Obviously you need to name the fields according to your ^field commands and not just use tab (move to next field).
    Shout if this was not what you are asking.
    Stale Sodal

  • Using XSL-XML template to convert name value pairs into XML elements

    Hi,
    I have a xml document in the format:
    <?xml version=”1.0”?>
    <body title="Mr" firstName="Joesph" middeNames="George Harry" lastname="Smith" countrycode="GBP"/>
    I need to convert this using a XSL-XML template in BI publisher to return XML in the following format, while doing some conversion, e.g. converting countrycode from GBP to UK:
    <?xml version=”1.0”?>
    <body>
    <title>Mr</title>
    <firstName>Joseph</firstName>
    <middleNames>George Harry</middleNames>
    <lastname>Smith</lastname>
    <countrycode>UK</countrycode>
    </body>
    Would appreciate if anyone could point me in the correct direction.

    Hi Sweta,
    Why MTB??? Message Transformation bean is used to change the format of the message... If you are planning to call any XSLT or java mapping through that then you can give it a try..
    >>how to get the last and first 3 special characters in the output text using MTB?
    Put them in message mapping itself and write it in File
    Regards
    Suraj

  • Background color change for  XML Template

    Hi All,
    We have created a xml template for creation of news using xml form builder. When we are creating a news by using this template the background color of the news always shows SAP default color (light blue) for both Renderlist and Show forms. Our requirement is to change the background color.
    Any help can be appreciated  and points will be rewarded immediately.
    Thanks,
    Satya

    Hi Satyadev,
    You have 3 options:
    Within the forms builder you can get a white background by setting the form to either "border" or "no border".  This is done by clicking anywhere on the form (where there is no other element) and modifying the "style" property
    You can modify the portal theme so that the background colour is your choice.  However this will affect all forms in the portal, not just this one.
    Or you can manually modify the form XSL stylesheet.  This involves typing the html code to apply your chosen colour.  However, this modification is lost if you re-generate the XML forms project, so this should be a last resort.
    Hope this helps,
    Chris

  • Working with Flash content in XML template

    My knowledge base of html and DWCS3 is limited. My knowledge of Flash CS3 is better and have built a web site using it.
    This is a newbie DW question. Am working on an XML template, which contained the following folders:
    site_flash folder containing:  main_v8.swf, tfile_main.xml, style.css, index (firefox doc) (+gallery stuff)
    flash folder containing: main_v8.swf, main_v8.fla, tfile_main.xml, AC_RunActiveContent (JSS file) (+gallery stuff)
    I was told by the template people to use the site_flash folder but there are no visuals (Design views), to work with and could not access Flash through DW to alter the files in Flash. When I can get a Design view in DW, all I get is the f symbol. In all the tutorials I've watched on DW, there is a Design view to work with.
    SO, I used the flash folder and adjusted the main layout in the .fla file to suit my needs, and worked on the tfile_main.xml document in DW and they seemed to be 'talking' as my changes were recognized. When I test the file from either Flash or DW, it is perfect. But when I run it from my test folder through the server, the page formatting is off (page pushed down, menu buttons squashed, etc). There is no style.css sheet in the flash folder.
    Am willing to go back and start over with the site_flash folder with CSS page if this will resolve things, but don’t know how to edit the flash layout through DW. I need a Design view…am very weak in the html side of things.
    Test run:  http://www.mackenziemode.com.au/test.html
    Any advice you can give would be helpful.
    The Not-feeling-so-Handy Ma'am  

    In followup to my own frenzied query, in case anyone else is having the same problem, the solution to the 'squashed'
    web site (that's works perfectly on testing outside the browser) is to upload the main.xml file in binary mode.

  • Issue generating pdf from xml template, data and StreamServer webservices

    We purchased Abode LiveCycle Premium Print ES4. It included a product called StreamServe which we planned to use to merge xml templates and data into a pdf file using a StreamServe webservice (for developers). It seems the StreamServe webservices are not equal to that task.  Can anyone offer a hint how this automated pdf generation can be achieved using LCPP?  (I suspect it can be done using Workbench but I don't know this to be a fact.)
    TIA,
    Bill

    Was that another shameless book plug??
    Sorry, gotta run. I just got word the Fed Ex delivery of my copy of your book just arrived. Do you 'e-sign' personalized copies?
    p.s. The preview of Chapter 7 (Transforming XML with XSLT) is great and filled with good clean examples and explanation.

  • XSL-XML Templates

    Hello,
    My requirement is generate xml output file using BI Publisher. I think xsl-xml template will generate xml output from xml extract.
    Is there a easy way of developing xsl-xml templates using BI Publisher for given XML Extract? I know we can write a xsl file manually but looking for a tool where I can drag and drop. I read this article: http://blogs.oracle.com/xmlpublisher/entry/building_xsl_templates
    However, In my Jdev, I do not see an option of Inregration tier to map. Any info. on this is greatly appreciated.
    Thanks

    I have changed the filter but still not showing up Integration tier. I am on JDev 11g Release2. Please let me know if I have to switch to different version of JDev or any other settings that I need to do.
    Thanks again for your info.

  • XML Template was not working correctly in 11.5.9

    Hi
    I am currently working on XML rtf template for Invoice. And the rtf XML template is working fine (getting results as expected) in 11.5.10 but the same rtf is not working fine in 11.5.9( not getting the results as expected). My current version of XML Publisher in 11.5.9 is 4.5 and in 11.5.10 is 5.6. My question is there any to make the rtf work correctly in 11.5.9 aslo.
    Thanks,
    Ram.

    I have seen such issues earlier. What you can do is to either upgrade xml publisher version or you have to play around with template a bit like adding dummy rows with lines invisible and consume very less space, dummy columns etc to get desired results

  • Calling PL/SQL stored procedure from XML template

    I've a requirement to call a store procedure/function/package from XML template. How can i achieve this?

    >
    XML template
    >
    do you mean "data template" with sql statement?
    below using package in sql statement and data structure element for data template
    <?xml version="1.0" encoding="UTF-8" ?>
    <dataTemplate name="XXCUSTOM_PKG" defaultPackage="XXCUSTOM_PKG" version="1.0">
    <sqlStatement name="Q_INVOICES">
    select
    XXCUSTOM_PKG.invoice_type()
    from <some_table>
    </sqlStatement>
    <dataTrigger name="beforeReportTrigger" source="XXCUSTOM_PKG.beforereport"/>
    <dataStructure>
    <element name="in_title"  dataType="varchar2" value="XXCUSTOM_PKG.in_titleformula()"/>     
    </dataStructure>
    <dataTrigger name="afterReportTrigger" source="XXCUSTOM_PKG.afterreport()"/>
    </dataTemplate>or it's xml data for report?

  • Importing XML Templates

    Hi,
    Currently I am using Adobe Framemaker to import XML templates and make tables of data. Once the data has been imported into Framemaker it is easy to manipulate (change colours/sizes of columns etc.)
    However, I am looking for a way to do this work in InDesign.
    So far, I have tried importing the XML template into InDesign successfully, but as soon as I try to change columns/delete columns, basically make any changes to the table, InDesign freezes, and I have to restart the program.
    The XML document is very large (4,089 rows in excel) and imported from Excel.
    I am using CS4 on Windows XP.
    Can anyone help ?

    Does InDesign freeze if the table is not tagged? (i.e. untag the table and perform the column changes.)

  • How to use SPML Webservice.xml template in VDS(Virtual Directory Server) ?

    Hiii all,
    How to use SPML Webservice.xml template in VDS(Virtual Directory Server) ? In my case , i am researching and wanting to add,search,delete an user object request from Web Services Client to SPML webservice in VDS by SPML request. anybody has documents or tutorials please share to me.
    Thanks

    Hiii all,
    How to use SPML Webservice.xml template in VDS(Virtual Directory Server) ? In my case , i am researching and wanting to add,search,delete an user object request from Web Services Client to SPML webservice in VDS by SPML request. anybody has documents or tutorials please share to me.
    Thanks

  • Rloe Creation in the SAP template process

    Hello,
    Our Company is a subsidiary co. of a German based MNC Co. who have a global presence in Europe, America & Asia.
    Our compnay is the first subsidiary Co. for roll out of SAP templet process and later on the same templet process has been rolled out in America & Asia. Our MNC co. has trageted to rolled out the same templet process for all the subsidiary Co. globally.
    Under the global template process, presently, we are using the SAP standard roles and user specific roles for the transactions authorisation.
    We being a subsidiary co., developing the Role based transaction authorisation matrix and would like to define the same in Global SAP Template.
    Questions:
    1. Being a SAP global templet process, whether this new role based trasaction authorisation roles can be define for our subsidiary Company in the templet?
    2. If , the answer is no what is the alternative remedy.
    We would be glade to know the answer.
    Thanx & Regards

    Hi Prasad,
    Yes it is possible. You will have to use handling units only as shipping units in the outbound delivery packing function. The handling unit can be defined during the transfer order confirmation (you have this in LT12 as packing) or in the delivery after the TO confirmation. You can only perform packing before goods issue.
    I hope i'll helps you lot
    Regards
    Madhu

  • Using ANT to create config.xml template

    Does anyone have an example on how to use ant to create a config.xml template?

    try this:
    <target
         description="Creates the config.xml file from the config-template.xml file"
         name="parseConfigXML">
         <copy
              file="config-template.xml"
              tofile="config.xml"
              overwrite="true"
         />
         <replace
         file="config.xml"
         value="defaultvalue"
         replacefilterfile="local.configtemplate.properties">
         </replace>
         <antcall target="parseSetDomainEnv" />
    </target>

Maybe you are looking for

  • Time Capsule won't mount after upgrade to iTunes 9

    See my full post in the Time Capsule support section ("Help! Time Capsule won't mount after installing iTunes 9"). My music library is on my Time Capsule, but after installing iTunes 9, it won't mount on my iMac G5. I can use the internet, but the di

  • Error in bdc upgrade from 4.6c to ecc 5.0

    I have written a BDC which will update the data in FB01. Now this BDC was running well until we upgraded to ECC 5.0. Now it is giving me a formating error in the purchasing document number and the field is taking / when it is empty and this is tellin

  • Windows Server Time Service

    My DC which is my time server keeps falling out of sync. anywhere from 5-20 min. anyone seen this before are have any ideas? Twitter: @dguilloryjr LinkedIn: http://www.linkedin.com/in/dannyjr Facebook: http://www.facebook.com/#!/dguilloryjr

  • Business Graphics using BSP..

    Hello Every Body, I have to use Business Graphics in BSP.. Can anybody tell me a procedure... how to do that ...

  • Service Description items in Shopping Cart

    When we enter in a free text in the shopping cart currently is allows to use Material and Service. In our implmentation it is required to only allow Services as description. How can we achieve this requirement? Thanks