How to mix HTML and XML??

Hi guys,
I want to stream some xml content to the browser from a servlet by setting the content-type as 'text/xml' and let IE browser take care of the parsing & formatting. It is important for me to show the formatted (tree structure) xml content in the browser. But I also need to show a text heading in the browser...Something like this ::
Application XML Message ---> header text
<xml>
<id>.....
<InvoiceDate>.....
</xml>
I know that the content has to be 'text/html' for the header text , and text/xml to let IE do automatic formatting of the xml data...How can I mix the contents? I don't want to format the xml file programattically or by using XSLT..Is it possible?
Thanks guys

I think it's possible; just create a page containing the header you want to display and an iFrame with the URL set to the address of the service that builds the XML. In fact you'll make two requests to server: one for the page containing the fancy header + the iFrame and one for the XML itself. Main page has text/html content and the contained iFrame will have text/xml content:
More artistically:
The header of the message
The iFrame pointing to the URL that
generates the XML.
Be sure to use appropriate HTML styles so the iFrame border will not get displayed.

Similar Messages

  • HTML and XML files open in same window(KM Navigation iView)

    Hi All,
    I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new window.Here I need to open in same window. How can I acheive this?. Please help me.
    Thanks & Regards,
    Venkatesh R

    Hi ,
    check the below thread and try options mentioned in it
    https://www.sdn.sap.com/irj/sdn/thread?threadID=72594
    Koti Reddy

  • How I post HTML and Video embed code from my component to landing page?

    Hi there,
    How I post HTML and Video embed code from my component to landing page?
    My Components are developed in NODEJS and PHP.
    Thanks

    Answered here http://topliners.eloqua.com/thread/7944

  • How to connect ORACLE8i and xml

    this is sethu involving in the effort to do a project in xml and oracle 8i in the environment of weblogic.
    i need how to connect oracle8i using xml
    which enable me to start my project.
    with regards
    sethu
    email:[email protected]
    null

    I agree with the rest of you folks. JDOM will be your best bet for integration. I am currently using JDOM to parse and/or create xml documents. As mentioned the tutorials are very good to check out. If you just want to hit the JDOM highlights and hit the ground running check out this link. http://www.jdom.org/downloads/docs.html
    Take some time to check out the first 3 links on that page. They are JDOM and XML Parsing, Part 1, Part 2, and Part 3. Very good information about JDOM and XML parsing.
    Hope some of this will help!

  • How to connect TextInput and XML?

    hello. Can anybody help me ? How can i connect an TextInput
    with XML? Just a simple exemple i looking

    I agree with the rest of you folks. JDOM will be your best bet for integration. I am currently using JDOM to parse and/or create xml documents. As mentioned the tutorials are very good to check out. If you just want to hit the JDOM highlights and hit the ground running check out this link. http://www.jdom.org/downloads/docs.html
    Take some time to check out the first 3 links on that page. They are JDOM and XML Parsing, Part 1, Part 2, and Part 3. Very good information about JDOM and XML parsing.
    Hope some of this will help!

  • How to disable HTML and Download excel sheet

    Hi ,
    i've some reports in my dashboards, i've enable report links for print and download, When i click on print button we can get PDT,HTML. I need only PDF. not HTML. How to disable HTML in print button. and also when click download button i need to see only download to Microsoft excel . Can any one help me out .

    Hi,
    Please refer the below links to remove the options
    http://obiee-tips.blogspot.com/
    Hope this helps
    Regards
    MuRam
    Edited by: MuRam on Jan 11, 2012 2:57 AM

  • How to convert HTML into XML

    I know I can parse XML into some HTML, but is there any tools or methods existed to parse HTML into XML?
    I have a not well-formed HTML with a lot data fields, including a lot not closed tags. This HTML is generated by some XML(as I can see), but I can't find a way to reform it into a XML, and eventually stored the data into another database.
    Anyone can help me? I appreciate!
    KIB

    As SAm has told you, you can use jTidy, for the purpose, a sample code , which can convert an html file to xml file is given at following url:
    see the documentation as well.
    http://sourceforge.net/docman/display_doc.php?docid=1298&group_id=13153
    gaurav_k1

  • Mixing HTML and JSF or better pure JSF Tags?

    I'm relatively new to JSF, but i can say, i work with all the Web Standards in HTML and CSS.
    So the HTML Render Results of JSF may not fit into a Web Developers Dreams of perfect HTML/CSS.
    An Option i see is to use HTML and put only the dynamic parts in there as JSF Components.
    What are the Pro's and Con's using HTML?
    some stuff i can image:
    Using pure JSF:
    - May many components have impact to the performance?
    - Mixed with HTML: What if the application should be rendered to another client pc (e.g. Mobile)?
    What are your experiences?

    The one downfall of mixing html with jsf, unless you use the f:verbatim tag, that the page is not properly represented in the component tree. Also depending on certain technologies you use (when I used ajax4jsf it worked this way) that the jsf component tree was rendered and then all the html was rendered at the end. This caused html tags and text that I had inside a jsf tag to be improperly displayed.
    This though was the case when I was originally using jsf 1.1, so it may have been improved in later editions, but since I have become accustomed to writing the entire page in jsf tags I have not really tested that limit in the current version.

  • How to retreive images and xml stored in temporary internet files

    hi all,
                  I am creating an air application that has to work in offline too.so i have decided to retrieve datas it from temporary internet files(is it a rightway or anyother way to do that if so pls suggest).   I have an issues of retreiving images and xml stored in the temporary internet files of the user system ..can anybody help me and give solution for this..
    regards,
    Divya.

    What software are you using to create the website? Perhaps there is some command you can implement on the website to force the entire file to be downloaded. If you use Dreamweaver, you might ask in that forum. If you make the link an ftp link rather than a http link, you might guarantee that the file will be downloaded in its entirety, but the download location will not necessarily be in a temp folder.

  • How to filter doc and xml using SDKFileOpenChooser?

    I need to filter only word and xml
    SDKFileOpenChooser openChooser;
    openChooser.AddFilter(291, "App_Filter");   //291 for app
    openChooser.ShowDialog();
    Where i find the extension ID for app filter or any solution?

    To view only XML files using SDKFileOpenChooser use:
    openChooser.AddFilter(kXMLFileTypeInfoID, " XML files(xml)");
    For Word files, try using  kMSWordFileTypeInfoID instead.

  • How to generate HTML from XML and XSL?

    Hi all,
    I am new to XML.
    Can I somehow see the HTML-Output of the XML-File, when I have the XSL-File too, but don't use any XML-Editor (XMLSpy) and FOP? I do not want use any additional tools - only the database tools.
    What I need for this?
    Do I need the XSLT-File too?
    I am waiting for your answers, when possible with examples please.
    Regards
    Leonid Pavlov

    Please post on the General XML forum.

  • How to include HTML in XML for OMNIPORTLET

    I have an OMNIPORTLET where I need to display a list of names along with a link to a story if they have a story.
    The goal is to list that NAME and if they have a story then show a (STORY) with a link under the STORY, and then for those names that do not have stories nothing would show for the second column.
    example below:
    ACME Rockets
    ACME Skis ( [Success Story|http://www.oracle.com])
    ACME Sleds
    The feed works correctly in displaying the names, but I need some guidance on how to handle displaying the Story link.
    In the XML file I have a tag for REFERENCE_URL and then within that tag is the &lt;a href="..."&gt; coding using *&lgt;* type escape characters to insure the HTML comes across embedded in the case where there is a Reference story. Also, when there is not a story, then the tag is left blank.
    The file looks fine when I check it out, but then when I include it in the OMNIPORTLET and run the Test button on the first page of the portlet configuration, all of the ampersands in front of the less than and greater than escape characters show that they are turned into having an extra ampersand in front of them.
    In the OMNIPORTLET I am using:
    * an HTML View
    * in the Layout in the Repeating Section with in the table column I display the ##COMPANY_NAME## and then the ##REFERENCE_URL## expecting to have the Reference URL push out a live HTML anchor and link.
    What happens is that I get a text display of the anchor instead of it coming out in HTML code to actually be an anchor.
    i.e.: ACME Systems &lt;a href="http://www.oracle.com/examplelink.pdf" target="_blank"&gt;Success Story&lt;/a&gt;
    Any guidance on what I should change or another method to handle what I am needing to do?
    Thanks,
    Stephen
    Edited by: slsmith on Feb 5, 2010 2:27 PM

    The define the "should not alter part" as CDATA?
    http://www.w3schools.com/XML/xml_cdata.asp

  • How to use HTML or XML described visual forms for data entry in Java app?

    Hi,
    We are considering to use HTML as a mean of configuration for visual content and layout of data entry dialogs in our Java GUI applications. Java program will need to be able to populate/collect data into/from dialog controls. I am guessing that JEditorPane and FormView classes could be used for this but I have not figured out yet how to do this.
    I would really appreciate any help you could provide with respect to this. Please share any tips, utilities, references, etc. Maybe one can suggest non-HTML (e.g. XML, UIML, ...) way to achieve the same requirements and recommend some utilities respectively.
    Thanks.
    -Vitaly

    Just to clarify, we need a solution for Java application (no applet, no web server, no servlets, no JSPs, no EJBs).
    -Vitaly

  • How do the itl and xml files work

    Due to some problems I have been having (now solved) I have been trying to get to grips with how these 2 files work.
    I now have a library of 37000 some songs in q:\itunes\itunes music and everything is working fine.
    However when I look in the xml file some song pointers are still to my documents\my music\itunes yet itunes still finds them. How?
    Does itunes look for the location set in edit>preferences>advanced>itunes music folder location first and then check the xml file address if it cannot find them there?
    Also if the songs are in the correct location anyway why is the xml file pointer looking at my documents.
    Does anyone know if this is abnormal? Can anyone explain the logic to me please 'cos to me it ain't logical!!
    Regards,
    Andy.

    I think iTunes must have got in a muddle as a result of the way you transfered your files to the external drive.
    It is important to realise that the iTunes Music folder location as designated in your preferences tells iTunes where to add music in the future. It is quite possible to get in a situation where iTunes looks there for newly added music, but continues to look in the old location for previously added files.
    If the xml file tells you it is accessing files in iTunes iTunes Music on your c: drive, then that is it is telling the truth. However these files are not longer in THE itunes Muisc folder , that is to say the one set in your preferences. All very confusing I am afraid.
    If your file locations get corrected when you play a track, there is something you could try.
    First close iTunes and make a copy of your xml and itl files in case you don't like what happens.
    Now open iTunes and go to you music view and select your entire library with select all.
    Right click in the selection and choose Get Info. Say yes to multimle edits.
    When you see the multipe edit Get Into screen, simply exit with OK, do nothing else. This will force iTunes to reread all your tags which may take a while if your library is large. If I geussed right, it will also update the file locations. Although I have used multiple get into in this way to correct tag into I haven't tried it to correct paths so this is just a guess - it could only possibly work for files that are in the designated iTunes Music folder in the proper place, but iTunes is still pointing to an old loaction where the files no longer exist.

  • How to use HTML and Java Script files in Portal

    Hi,
    I am trying to access a web application using iViews. My application contains JSP,HTML,Servlets,JS(java script), image files. I am using JSPDynPro to access the JSP files and I am putting servlets in the private/lib folder of the PORTAL-INF dir of Portal project. Now my problem is almost all the JSP files uses the HTML files, JS files and image files. Where can put these files in the portal project dir structure to give access to the JSP files when i am creating a iView for the JSPDynPro componenets in the irj.
    thanks,
    Ashok

    Hi,
    JSPDynpage is the controller, one JSPDynpage can call more than one jsp file according to the coding. Through the JSPDynpage's setJspName() function only you can display a jsp page.
    EX:
    public void doProcessBeforeOutput() throws PageException {
      this.setJspName("logon.jsp");
    if you put the JSPDynpage in the src.core then the JSPDynpage can be accessed only by this application.
    if you put the JSPDynpage in the src.api then other applications can access this component.
    You can put the jsp pages in the pagelet folder.
    xml file
    =========
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="jspdynpage name">
          <component-config>
            <property name="ClassName" value="package name.jspdynpagename"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    REWARD USEFUL ANSWERS

Maybe you are looking for

  • Error in VC application

    Dear Team ,                  While compiling VC appliaction i was getting this error "Error in compiling Flex application ".As per your suggestion I have apllied note 974494 . After applying still i am facing the same problem . Error in compiling Fle

  • Making Page look same in All Pixels & Writing code for Submit Button.

    Hello All, How to make the page look the same in all computers even though the pixels are different? Please help me in this regard. More Over if I want write the code for Submit button where the code should be written. Whether the code is different f

  • Eos utility 2 not installing

    I, I have a brand new 70D and i'm not able to install eos utility 2 on my computer. I already have eos utility 1. I tried with the cd and with the installation package on the canon site. At the step 4 of the installation, it say NG (in red) Eos Uilit

  • Incorrect previews in LR

    Right click > edit in > merge to HDR Pro in PS and tone mapped 32 bit HDR file with the ACR in PS. After saving the file, I can not get the correct preview in LR in the develop module ... any advise. Thanks a lot.

  • Alternative to Active X viewer

    We are considering going to BOE 3.1, and have many .NET apps usiing the ReportClientDocument model. The Active X viewer has been problematic, are there any other options to using this viewer in 3.1? TIA Rick