Conversion of XML into HTML string

Hi
I have xml mesaage in in the target message side and it needs to be converted as Html before sending to receiver,
Please let me know how can I convert the xml message which is on the target side to html
Thanks
PR

You may refer this for help
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Regards,
Prateek

Similar Messages

  • XML into one string element

    Hello,
            In Graphical mapping, Could anyone pls tell me in detail about how to achieve One whole xml into one string element. This XML file i want to send to DATABASE.

    Thi blog might be of some help
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping

  • Conversion of .xml, .java, .html etc files to pdf

    Hi All,
    I want to convert any file format to pdf while check-in any new file.
    For that, I have used PDFConverter Component and InBoundRefinary.
    Using this, I can able to convert *.doc, .dox, .xls, .xlsx, .txt* etc files to pdf.
    But I want to convert any file whether it is *.java, .xml, .html* etc.
    How can I do using the same configuration?
    Is there any extra configuration needed to fulfill this ?
    Please let me know.
    Thanks & Regards,
    Vishal Shah

    The file formats wizard will help in defining which conversions are required for corresponding type of the file.
    Content Server --> Administration --> Admin Applets --> Configurations manager --> Options --> File Formats..... -->
    File Formats --> Add
    Add a format 'application/java' with the appropriate Conversion available e.g. OutsideIn Technology
    File Extensions --> Add
    Add the extensions 'java' and select 'application/java' as the Map to Format
    Note: You can avoid adding file format if you have a format defined earlier in File Formats.
    Hope this helps,
    Cheers
    Aparna

  • Conversion of XML to a String in XSLT

    Hello --
    I've written an XSLT that creates a fragment of XML as the contents of an xsl variable element. I then want to convert that fragment to a string and use it as the value of another element. I've tried both the orcl:get-content-as-string() and ora:getContentAsString() functions with no success. Recognizing that both of these functions take a node-set as input, and that an xsl variable is not a node-set, I've also tried using ora:node-set() on the variable when passing it to the functions. None of these approaches works.
    How can I use XSL and any extension functions to convert an XML fragment to a string for use as a value in an element belonging to a larger XML message?
    Thanks for your time.
    Paul Camann

    Not sure if XSLT is the right place for it. If you use getContentAsString in assign activity, can that solve the problem?
    Chintan

  • Convert the IDOC XML file into single string?

    Hello All,
    I have a scenario, where i need to conver the IDOC XML  into single string, to send it to target.
    Please let me know how can we achive this, I dont know java coding.
    Please help me out to write the java code.
    Thanks and Regards,
    Chinna

    Hi Chinna,
    You can do this in two ways -
    1. Java mapping
    https://wiki.sdn.sap.com/wiki/display/XI/JavaMapping-ConverttheInputxmlto+String
    https://wiki.sdn.sap.com/wiki/display/Snippets/JavaMapping-ConverttheInputxmltoString
    2. XSLT mapping
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Regards,
    Sunil Chandra

  • How to convert xml data into html format in bpel

    Hi ,
    Can any one tel me how to conevrt xml into html in oracle bpel.
    Does bpel support this functionality or not.
    Regards,
    Ana
    Edited by: user10181991 on Apr 5, 2009 11:16 PM

    Ana,
    We are doing the same thing--using one variable with the schema as the source of the .xsl and assigning the resulting html to another variable--the content body of the email, in our case. I just posted how we did it here: Re: Using XSLT to generate the email HTML body
    Let me know if this helps.

  • XSLT to convert CALS tables into html?

    This may be the wrong forum to post this, but I don't know
    where else I can, so I would very much appreciate if anyone
    can suggest where I can find such information.
    I need to write XSLT code that will transform
    CALS tables that InDesign exports in XML into HTML.
    (I can't simply use the xhtml export feature. I need to
    do the transformation from XML to HTML.)
    For starters, what would be the XSLT code that I would need to convert
      aaaa
      bbbb
      cccc
      dddd
      eeee
      ffff
    into
    <table>
    <tbody>
    <tr>
    <td>
    <p class="pstyle_cell">aaaa</p></td>
    <td>
    <p class="pstyle_cell">bbbb</p></td>
    </tr>
    <tr>
    <td>
    <p class="pstyle_cell">cccc</p></td>
    <td>
    <p class="pstyle_cell">dddd</p></td>
    </tr>
    <tr>
    <td>
    <p class="pstyle_cell">eeee</p></td>
    <td>
    <p class="pstyle_cell">ffff</p></td>
    </tr>
    </tbody>
    The thing that I am having the most trouble with
    is the extraction of the number of rows and columns from
    the xml file and creating the appropriate "for" loop
    that will get the <tr></tr> tags in the right places in the HTML.
    Thanks in advance.
    Tak Osato

    Not really. It's never a good idea to consider the actual web page creation as an afterthought to the graphical design. In fact many times it's just simpler to start the web page as such and only add graphical fancy if and when needed selectively. Anyway, there are a few sites that offer PSD to HTML conversion, either automatic or as a paid service, but it will never be perfect. It's the same why a CSS or HTML file created using Save for Web always was and at best always can be a crude start. And in light of all the above, of course PS (or Illustrator or InDesign) are not web design tools, not even for the graphical aspects. Rather spend your time with Muse, Fireworks, Edge, Dreamweaver or one of the gigazillion free tools out there more suitably aimed at web stuff than PS ever could...
    Mylenium

  • Getting HTML string out of DOM tree

    after i apply XSL transformation to an XML document, i get a
    DOM tree as a result.
    how do i extract the HTML from that tree as a string? lotus xsl
    lets you pass a PrintWriter to XSLProcessor -- how can I use the
    DocumentFragment for that same thing?
    thank you very much,
    zak.
    null

    zak may (guest) wrote:
    : : At this point we do not support xsl:output so you the only
    way
    : : to get printed output at this point is to use the DOM print
    : : method. xsl:output will be supported in a future release.
    : that's great -- but which "DOM print method" are you reffering
    : to?
    : neither DocumentFragment, nor Document, nor Node have a print
    : method.
    : my question remains -- how do I get at the HTML result of an
    XSL
    : transformation? XSLProcessor.processXSL returns a
    : DocumentFragment -- how do I print that DocumentFragment,
    markup
    : tags and all?
    : thank you very much,
    : zak.
    Both XMLDocument and XMLNode have a variety of print methods.
    None of them will transform XML into HTML however.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • How to convert XML into idocs and post in ECC using PI

    Hello All,
    I want to configure the scenario like this MDM->PI->ECC. Using FTP I am getting able to fetch the xml file from MDM Server Ready folder. Now, I need to convert this XML file into Idocs and post it in ECC. Can anyone provide me step by step configuration in PI to achieve this. I have configured communication channel with adapter type Idoc in Itegration Builder. But, I am not sure where it will do the conversion of XML into Idoc and how do post it to ECC. I am working first time on PI 7.1. I have worked on XI 3.0 in 2006-2007. Any help to configure this step by step shall be appreciated.
    Thanks & Regards,
    Hemal

    In you have the XML from MDM you have to use the mapping provided by the funtionals in the Funtional specification documents. once you did it you must configure the Receiver IDoc Adapter. and later dont fonget to configure properly the ReceiverAgreement.
    as you receive the docuement from MDM via FTP, thats not a SAP System that means that you have to define PI as the sender of the IDoc,otherwise you will have the Error "Unable to convert the sender service to an ALE logical system"
    to do that in the receiver Agreement>Header Mapping>Sender System-->Select PI server.
    Take in mind to send IDocs to any SAP System, the system that send it must be a SAP system too. thats why you configure it
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
    Another thing is you have configure the ALE distribution Model.
    se this:
    http://wiki.sdn.sap.com/wiki/display/XI/FileToIDOC
    /people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
    /people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
    Let us know
    Rodrigo P-.

  • Convert MBox into XML into Java Objects

    Hello all,
    this is a general question, i dont know weather there is such libs or not.
    However, please tell me what you know.
    i want to program a java application for searching purpose in Mbox.
    i thought its possible and easier to try to convert the emails from the MBox into XML files, and from these create java objects when i need or even convert the XML into html for viewing.
    Any suggestions are welcome.
    Also antoher solutions are greate.
    thanks in advance!
    Sako.

    I don't know what this MBox you speak of is - I assume it's not the thing I use to hook upa guitar to GarageBand. Maybe you mean it as a generic term for mailbox? The easiest solution (to my mind) would be to use a Java API provided by whatever MBox is. If there is no such thing, then if you get XML-formatted version of the messages I suppose writing code to parse the XML into Java Objects would be a good option if you wanted to do further manipulation of them, but if all you want to do is display them as HTML in a browser then just use XSLT to transform them.
    Good Luck
    Lee

  • Help needed adding xml into website

    I am looking for some help adding a few .xml files into my
    website using Dreamweaver
    First ..I would like to add the following RDS.xml file below.
    I would like it to go into a box that is 100 x 100 px
    <?xml version="1.0" encoding="utf-8" ?>
    - <Playing station="HAWK">
    - <item type="MUS">
    <DateTime>Thu 10:52AM</DateTime>
    <Cart />
    <Artist>THE ROLLING STONES</Artist>
    <SongTitle>JUMPIN' JACK FLASH</SongTitle>
    </item>
    </Playing>
    Second ..an event.xml file that will scroll info with box
    dimensions of 400 px w x 30 px h.
    Both xml files would be on my site in a user_files folder
    Any help would be greatly appreciated. Rob

    > To use Dreamweaver, you'll need to write some code to
    transform the XML
    > into
    > HTML. What code to write will depend on the server-side
    scripting language
    > you are using.
    It means that you can't just plop in XML in the middle of
    your HTML. Your
    pages are HTML, so the XML needs to be transformed in to HTML
    first. There
    are various ways to do this. Are you using PHP? ASP? Etc.
    Once we know that,
    we can narrow down a solution for you.
    -Darrel

  • How to format a not well formed xml into well formed

    Hi,
    Here's what I'm trying to do: I have a build a report based on query results. In the query result, one field is a CLOB (which contains XML. The XML contains two tags - "description" and "count"). I want to read (&parse) the XML and store the "description" and "count" in a hashmap. But when I try to parse it, I end up in an error. I'm currently  using XmlParse but I got an error "The markup following the root element should be well formed."  I immediately used IsXml() to find out if the XML I am reading is well formed.  And the answer is "NO".
    Could someone help me in converting it into a "well formed" one?
    (This is what I've tried: I appended "<?xml version="1.0" encoding="UTF-8"?>" to the XML I'm reading coz it was missing this.  I later used XmlFormat to convert the XML into a string format.  But IsXML tells me that even this is not well formed.)
    Thanks much for your help!

    XML encodes information is a specific way. Well-formedness determines whether or not a string is an XML document in the first place.
    However, as well-formedness can be broken by any arbitrary number of factors, it is in general impossible to automate the repair process to recover a well-formed XML document. You have to do it manually, using an XML or a text editor.

  • How can I convert IDoc in XML format w/DTD into a string?

    I want to send by e-mail outbound IDoc in XML format with its document type definition (DTD).
    I want to be able to get the same output result into a string than the XML file IDoc port type with DTD activated.  I have created a FM (based on SAP "OWN_FUNCTION") assigned to an IDoc port of type ABAP-PI that executes the following processing steps:
    1-Extract outbound IDoc information to get the sender & recipient mail addresses (EDP13 / EDIPHONE tables).
    2-Convert & Transform IDoc data into XML string using FM IDX_IDOC_TO_XML.
    3-Prepare and send e-mail with XML attachement using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    I cand generate the e-mail with the XML file attachement but FM IDX_IDOC_TO_XML does not convert the IDoc with proper formating and DTD.
    What should I use to accomplish the IDoc conversion to XML w/DTD into a string?
    Should I use XSLT tools ?
    How does that work?
    Thank you
    Carl

    muks wrote:
    Use decimal string to number
    Specifically, you can define a constant with a different datatype on the input on the lower left if you need a different datatype (e.g. U8, I64, DBL, etc) Are all your values integers or do you also need to scan fractional numbers? In this case, you should use "fract/exp string to number" instead.
    LabVIEW Champion . Do more with less code and in less time .

  • Converting XML and XSL into HTML

    Hello!
    I'm designing a servlet class that merges an xml file and xsl file into html that will be sent to the client. But I don't understand how the (sparsely documented) javax.xml.transform.dom package works. An exception is generated for a missing "version" tag, when I've included one that has worked on client-side xml/xsl pages before. If it matters, I'm using Apache Tomcat/JDK 1.4.
    Here's the code:package mypackage.servlet.xml;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class XML2HTMLServlet extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws IOException, ServletException {
              response.setContentType("text/html");
              PrintWriter writer = response.getWriter();
              try {
                   openFile("D:/Webdev/xml2html/data.xml", "D:/Webdev/xml2html/style.xsl", writer);
              } catch (Exception e) {
                   e.printStackTrace(writer);
         private void openFile(String xmlPath, String xslPath, PrintWriter writer)
          throws IOException, ParserConfigurationException, SAXException,
          TransformerConfigurationException, TransformerException {
              File xmlFile = new File(xmlPath);
              File xslFile = new File(xslPath);
              TransformerFactory tFact = TransformerFactory.newInstance();
              DocumentBuilderFactory dbFact = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = dbFact.newDocumentBuilder();
              Document xmlDoc = builder.parse(xmlFile);
              Document xslDoc = builder.parse(xslFile);
              Node xmlDocNode = (Node)xmlDoc;
              Node xslDocNode = (Node)xslDoc;
              DOMSource xmlSrc = new DOMSource(xmlDocNode);
              DOMSource xslSrc = new DOMSource(xslDocNode);
              DOMResult htmlResult = new DOMResult();
              Transformer transformer = tFact.newTransformer(xslSrc);  // the exception occurs here!
    When it runs, it complains:
    javax.xml.transform.TransformerConfigurationException:
    javax.xml.transform.TransformerConfigurationException:
    javax.xml.transform.TransformerException:
    javax.xml.transform.TransformerException: stylesheet requires attribute: version at
    org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:767) at
    mypackage.servlet.xml.XML2HTMLServlet.openFile(XML2HTMLServlet.java:49) at
    ...etc...etc...
    data.xml contains:
    <?xml version="1.0"?>
    <document type="lecture">
         <title>Test Data</title>
         <section>
              <name>A New Section</name>
         </section>
    </document>
    style.xsl contains:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
         <html>
              <head>
                   <title><xsl:value-of select="document/title"/></title>
              </head>
              <body>
                   <xsl:apply-templates select="document/section"/>
              </body>
         </html>
    </xsl:template>
    <xsl:template match="section">
         <div><i>Section</i><br/><xsl:value-of select="name"/></div>
    </xsl:template>
    </xsl:stylesheet>I'm not sure the method calls above are what I want, so here's the client-side equivalent in Internet Explorer 5.0:
    function createStyledXMLDocument(xmlUrl, xslUrl) {
         var xmlDocument = new ActiveXObject("Microsoft.XMLDOM");
         xmlDocument.load(xmlUrl);
         var xslDocument = new ActiveXObject("Microsoft.XMLDOM");
         xslDocument.load(xslUrl);
         return xmlDocument.transformNode(xslDocument);
    }Any help would be greatly appreciated.

    Hi!
    I found the immediate answer with
    dbFact.setNamespaceAware(true);As for parser, I'm just using the default JDK install. But I'd like to hear more on Xalan. Is it independent open source? How does Xalan compare to whatever is default in JDK?
    Thanks

  • HTML strings stored within XML

    Hey, I'm trying to populate my entire flash site from an XML
    spreadsheet. No problems, except that I'd like to store body copy
    as HTML strings. Is there a way to insert HTML text into an XML
    document without it being parsed as XML by Flash? Thanks!

    In a CDATA section.

Maybe you are looking for

  • Win 7 (preloaded) and Win XP in dual boot. Who has it?

    Hi there! I've got a G550 with Win 7 (factory installed) and I need to install Win XP as second S.O. I tried some things but it's not working properly.... The disk is divided in (approx): 200 MB hidden partition (from factory) 160GB with Win 7 instal

  • Multiple addresses for a single contact within a group?

    I have group to which I send weekly emails. One contact has more than one email address that he uses. When I select the group from Address Book the "default" email address for this individual (home) is not the address to which I want to send the week

  • Disk Utility unable to partition as FAT32

    Hello, I am trying to set up bootcamp on my Late 2013 13" MBP running Yosemite 10.10.1 (14B25). I went and purchased a 16GB flash drive and directly followed the instructions laid out here. I have a family copy (3 activation codes) of Windows 7 Home

  • How do you avoid unneccesary "array copies"?

    Hello - I have been having significant difficulty trying to optimize my code as I have been finding that LabView tends to make copies of variables almost everytime you access them. This may not be a big deal some times, but in my case, I am using arr

  • Table for GL line Item

    Hi Pls advice table to get GL line Item actual posting information. Pls advice  table to get the cost center actual posting line item.. Thanx