Will IE format XML automatically??

Hi guys,
I have XML data stored on a DB2 table as varchar. I want to read the xml and do some parsing/translation and produce an xml which I have to render in the browser (I do not want to store the resulting xml).The parsing/translation can be done with JAXP, but how do I stream the resulting xml to IE? Also IE does rendering of xml file (the colored tree structure). So in this case do I have to worry about rendering or IE will take care of it?
Can you point me to some examples?
Many thanks
Clemen

You probably want a servlet to stream it to the client, if you don't want to store it locally.
Whether you need to worry about transforming it, either on the client or on the server, depends whether the tree is what you want the user to see. Recent IE will support XSLT 1, though earlier versions only support a MS specific language that is partly related to the 1998 draft. Or you can transform to a presentable format on the server and not worry about version issues.
Pete

Similar Messages

  • How to send a Material Idoc in format XML to SQL Server DB?

    Hi,
    I am creating a Material Idoc in format XML and I need send the same to a SQL Server DB.
    In the transaction BD10 I create the XML Idoc, but the same is stored in the SAP Server and I need send this to an external SQL Server DB.
    Somebody knows how to send automatically the XML Idoc to a SQL Server DB?
    Thanks and regards!
    Edited by: marcosap on Nov 11, 2010 4:00 PM

    Hi,
    All your XML idoc will get store in App layer,you can ask your Unix expert to write the unix code to fetch these XML idoc files and transfer to destination based on time period set by conjob.
    This is simple & easy job for any UNIX expert.
    Regards
    Siva

  • How to convert well format xml in coldfusion?

    Hi,
    I am consuming asp.net webservice in coldfusion.It returns xml but it is not in wellformat.
    Please suggest me how to convert to well format xml.
    Advance Thanks,

    chandra12345 wrote:
    I am consuming asp.net webservice in coldfusion.It returns xml but it is not in wellformat.
    Please suggest me how to convert to well format xml.
    Technically speaking, a piece of text must be well-formed before it can be called an XML document. So you cannot yet say the returned text is XML.
    The first thing to do is to check whether it is. Use, for example, isXml(someString) to check whether someString is well-formed XML.
    There is no one standard way to convert text to well-formed XML. This is because there are infinitely many ways in which text can fail to be well-formed. The easiest solution for you will be to learn the rules for well-formed XML.
    Any elementary book on XML will teach you that. If you find books old-fashioned, then you could instead google well-formed xml .

  • Do you have examples of CSV Format XML that can handle relationshiptypes?

    Hi,
    I have created a Windows Computer extended class that, for the sake of the example, has an additional property
    ServerNameRow , and a relationship (selected via Single Instance Picker control)
    BusinessUnitCustomersListPickerClass_Relationship. (The Single Instance Picker selects the primary name field/property only)
    I want to import data via CSV, and/or PowerShell. Both need a Format XML file.
    I don't know what the syntax is for relationship BusinessUnitCustomersListPickerClass_Relationship.
    What I'd need is some examples, preferably of a non-extended class and of an extended class's format XML.

    http://blogs.technet.com/b/servicemanager/archive/2009/05/26/using-the-csv-import-feature.aspx
    At the bottom of that blog post is an attachment (CSVImport.docx). It contains all the information you'll need for constructing CSV imports, including examples.
    To import relationships, you'll need to define a type projection targeting the windows computer class that contains a component for your custom relationship type.
    Also note you should not use the extension class itself in your definition file or in the type projection definition. Just use the windows computer class. Don't worry..your extension class property will be recognized by the import process. Extensions
    to a class are different than inherited classes.

  • Document to formatted XML file

    I have a question. I have written a sample java program that will create an xml file. The program works properly, but the generated xml is not formatted. How can i format the xml file.
    The java program code is
    package com.spi.xml;
    import java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Result;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    public class WriteXML {
    static Document document;
    public static void buildDOM() {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    try {
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.newDocument();
    Element root = (Element) document.createElement("GUI");
    document.appendChild(root);
    Element curElement = document.createElement("Button");
    curElement.appendChild(document.createTextNode("Submit"));
    root.appendChild(curElement);
    curElement = document.createElement("Button");
    curElement.appendChild(document.createTextNode("Cancel"));
    root.appendChild(curElement);
    // Save the document to the disk file
    TransformerFactory tranFactory = TransformerFactory.newInstance();
    Transformer aTransformer = tranFactory.newTransformer();
    Source src = new DOMSource(document);
    Result dest = new StreamResult(new File("C:\\xmlFileName.xml"));
    aTransformer.transform(src, dest);
    } catch (Exception pce) {
    pce.printStackTrace();
    public static void main(String[] args) {
    buildDOM();
    The output (XML file)
    <?xml version="1.0" encoding="UTF-8"?>
    <GUI><Button>Submit</Button><Button>Cancel</Button></GUI>
    How can i format the xml file for multiple lines? I cant't use other libraries (Xerces,JDOM,Xalan) cause they are to big - the application is an applet.

    I don't think the DOM stuff in the core API provides any pretty printing facilities, unless they were added in 5.0.
    I know that jdom does--http://www.jdom.org
    You might also check out apache's XML stuff--http://xml.apache.org/
    Or dom4j--http://www.dom4j.org/

  • I have a lot of videos processed using elements 2.  I have bought a MAC.  If I buy the newest version of elements for my new mac, will i be able to easily transfer the videos to the newest version i.e. will the new software automatically integrate the wor

    I have a lot of videos processed using elements 2.  I have bought a MAC.  If I buy the newest version of elements for my new mac, will i be able to easily transfer the videos to the newest version i.e. will the new software automatically integrate the work done on those videos.  What is my best option to transfer those videos to my new mac.  Thanks

    phyli2
    What is your "Elements 2" - Photoshop Elements 2 or Premiere Elements 2? For now I will assume Premiere Elements 2 which had to be on some version of Windows.
    What do you have from Premiere Elements 2 - project files (.prel) or exports to file formats such as .avi or .mpg or .mov?
    Project files from Premiere Elements (any version) Windows cannot be used in Premiere Elements (any version) Mac.
    Video files exported from Premiere Elements 2 with its QuickTime choice (.mov files) would be likely to open in Premiere Elements 13 Mac. The other Premiere Elements
    2 choices of MPEG and Windows Media would be expected to need conversion to .mov or .mp4 before import into Premiere Elements 13.
    In Premiere Elements 13 Mac, consider importing the files from wherever you save files in Mac to a project with the project's Expert workspace Add Media/Files and Folders/Project Assets. I would strongly encourage you to set the project preset manually (File Menu/New/Project) to match the properties of these source files before import rather than let the project do it manually for you based on the properties of the first video dragged to the Timeline.
    Please supply more details so that we can fine tune the reply. Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • How to remove override after importation of XML automatically

    Does anyone know of the best way to automate the removeoverride concept after importation of XML into an InDesign template without manually threading to a new page.
    I am trying to write a batch program that will create multiple XML files and then generate an InDesign document for each XML file from a predefined InDesign template file that is already mapped to the XML structure.

    RESOLVED

  • Xml formated xml query

    I'm looking for a stored procedure (Oracle8i) like:
    function getXML(xmlQuery in varchar2) return xmlResults;
    The xmlQuery string will be formatted something like:
    <Query>
    <ColLst>SSN, LAST_NAME, PHONE_NUM<ColLst/>
    <Table>EMPLOYEE<Table/>
    <Where>SSN='123456789'<Where/>
    <Query/>
    And the return will look something like:
    <EMPLOYEE Row="1">
    <SSN>123456789<SSN/>
    <LAST_NAME>Glasgow<LAST_NAME/>
    <PHONE_NUM>336-657-8309<PHONE_NUM/>
    <EMPLOYEE/>
    Hopefully it would accept a ColLst value of "*".
    Hopefully it would handle mutiple query requests in the single XML document.
    Thanks,
    Mickey Glasgow
    [email protected]
    [email protected]

    In 11g XMLSERIALIZE will do the job:
    SQL>  select xmlserialize(content xmltype('<a><b><c/></b></a>') indent) xml
    from dual
    XML                                                          
    <a>                                                          
      <b>                                                        
        <c/>                                                     
      </b>                                                       
    </a>                                                         
    1 row selected.

  • Why my iPhone will touch the screen automatically, sometimes?

    I've got an iPhone 5s, I found it sometimes will touch the screen automatically while I didn't do anything. The first time I find his problem is in Ninja Rooftops, I noticed that it jumped lots of times by itself. And then I find this problem not just in the game, it's everywhere...
    Can I get my iPhone changed? It really bugs me!!!

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    If no joy...
    1)  Connect to iTunes on the computer you usually Sync with and Restore
    http://support.apple.com/kb/HT1414
    Make sure you have the Latest Version of iTunes (v11) Installed on your computer
    iTunes free download from www.itunes.com/download

  • Since installing 10.5, Itunes will no longer open automatically when I connect my Iphone or insert a CD.  Nor will it, when I insert a CD, recognize the CD unless I close Itunes and open it again.  Any ideas?

    Since installing 10.5, Itunes will no longer open automatically when I connect my Iphone or insert a CD.  Nor will it, when I insert a CD, recognize the CD unless I close Itunes and open it again.  Any ideas?

    Purchase the Snow Leopard install DVD from Apple to install 10.6
    After that uodate to 10.6.8 using Software Update

  • Will my iphone 5c automatically connect to w-fi from cellular mode when wi-fi is available ?

    WIll my iphone 5c automatically connect to an available wi-fi from the cellular mode or do I have to set the phone manually to go to wi-fi ?

    It will if your iPhone has successfully connected with an available wi-fi network when returning within range of such a network as long as wi-fi is on.

  • How to get batch job o/p in PDF format and automatically saved to xyz loc

    Hi Experts,
    Our requirement is we want output of background job in PDF format and this PDF generated should be saved in some xyz path at OS level.
    Why doing this?: Business don't want hard copy o/p of some batch jobs but only want to save this output in pdf format to some OS location for future use.
    We could achieve above objective by archiving method (but for some reason we cant adopt it).
    So guys please propose solution in detail regarding above problem "how to get o/p in PDF format and automatically get saved to xyz location"
    System : 4.0B
    OS : Windows NT
    Database : Oracle
    Thanks in advance

    Hi guys,
    Thanks guys for your invaluable advise.I asked abaper to use the above report for pdf conversion. But I have another problem that o/p of batch job should come in japanese language but when i check spool or hard copy o/p its not coming in readable form (seems something like machine language) . I dont what is the reason there must be some basis setting to get the batch job o/p in japanese language.
    Please help me.
    thank you

  • Formatting XML written to a file

    Hi,
    I am trying to write runtime data (XML) to a file. I am doign the following to write to the file:
    public void saveFile() throws Exception {
    try {
    TransformerFactory transformerFactory =
    TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    DOMSource source = new DOMSource(doc);
    OutputStream output = new FileOutputStream(XMLFile);
    StreamResult result = new StreamResult();
    transformer.transform(source, result);
    output.flush();
    output.close();
    } catch (Exception x) {
    throw x;
    The output from the above code is a clutter of elements. All the elements are on the same line some times.
    1) How can I format the output? (Indent the elements in the file)
    Is there a way to achieve this?
    Sometimes, I see a square character at the end of some lines. I thought the output file is corrupt because of this character. But it does not seem to be a problem.
    2) How do I avoid this character?

    Duplicate of the following thread:
    Format XML data when writing to a file
    -Blaise

  • Using a CWM format XML as datastore; COM SDK to read the file and create Universe

    Hello everyone
    We are in the process of migrating from a metadata store to BusinessObjects Universe and the plan is to use Java/COM SDK to accomplish that. We have run into limitations with both the SDKs. Java SDK doesn't provide that facility and using COM SDK we are trying to read from a XML file (metadata in CWM format) and create the universe but so far haven't been successful. If the (Universe)Designer can read a CWM format xml file (say created from BODS) we are wondering why can't a customer made COM program do the same.
    Has anyone attempted this and been successful. Please acknowledge.
    Thanks

    I have written C#.NET code to build universes on the fly using the Designer SDK with no problems.  However, I wasn't using CWM formatted data to do this.
    I have two suggestions for you:
    1.  Since not all of the functionality in the Designer tool seems to be available through the SDK, can you parse the CWM xml file in your code and build the universe based on the data instead of trying have Designer build it?
    2.  Since you're using Java, you may get better answers by posting this question in the Java SDK Application Development space here:  http://scn.sap.com/community/bi-platform/java-sdk
    -Dell

  • How to fix iframe issue that displays XML values instead of formatted XML in IE11

    The following sub.jsp file shows the formatted XML properly as expected when is opened directly:
    <% response.setContentType("text/xml"); %>
    <book>
    <chapter1>chapter 1</chapter1>
    <chapter2>chapter 2</chapter2>
    </book>
    IE11 shows the result as below which are colored and can be collapsed or un-collapsed:
    <book><chapter1>chapter 1</chapter1><chapter2>chapter 2</chapter2></book>
    But if the sub.jsp is opened in an iframe from the below main.html, it only shows the values of the XML in the iframe:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="ISO-8859-1">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <iframe src="sub.jsp"></iframe>
    </body>
    </html>
    The iframe shows only the XML values, i.e., chapter 1 chapter 2 in IE11. This issue does not happen in IE8.
    I appreciate to your if you know how to address this issue.
    Regards, Amir

    The following sub.jsp file shows the formatted XML properly as expected when is opened directly:
    <% response.setContentType("text/xml"); %>
    <book>
    <chapter1>chapter 1</chapter1>
    <chapter2>chapter 2</chapter2>
    </book>
    IE11 shows the result as below which are colored and can be collapsed or un-collapsed:
    <book><chapter1>chapter 1</chapter1><chapter2>chapter 2</chapter2></book>
    But if the sub.jsp is opened in an iframe from the below main.html, it only shows the values of the XML in the iframe:
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="ISO-8859-1">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <iframe src="sub.jsp"></iframe>
    </body>
    </html>
    The iframe shows only the XML values, i.e., chapter 1 chapter 2 in IE11. This issue does not happen in IE8.
    I appreciate to your if you know how to address this issue.
    This issue is also posted at below link:
    https://social.msdn.microsoft.com/Forums/en-US/5b0692b4-d312-4797-9089-42c1029ac059/how-to-fix-iframe-issue-that-displays-xml-values-instead-of-formatted-xml-in-ie11?forum=iewebdevelopment
    Regards, Amir

Maybe you are looking for

  • Any way to at a glance determine if the backup is done?

    Does anyone knows if there is an indicator that tell you if the last backup completed (without digging into the drive or going to system/prefference/TM to see when the next backup is scheduled? Would be nice if the ICON changed color or something.

  • ITunes Won't Recognize Optical Drive / Can't Burn Discs.

    Hi. I’m having some problems w/ an installation of iTunes on a Windows 64 bit PC.  Specifically, when iTunes is installed, Windows 7 no longer recognizes the optical drive, and I can't burn discs via iTunes.  I’ve attempted to implement all the solut

  • IDOC and Proxy to R/3 System.

    Hi I am working on a scenario where a file is read and IDOCS are sent to SAP system. My requirement is to create a proxy with a few fields like interface id, wait time and idoc type and trigger the proxy to SAP system as soon as the IDOCS are sent to

  • Networked PC connection fails

    I have a wireless network system (ATT) which has 2 pc's (Sony VAIO and Toshiba Laptop) wirelessly connected so they can access the internet and also network with my early 2009 iMac (which is connected but via ethernet). I can see and network with my

  • Ultiboard user footprint doesn't show up in Multisim footprint dialog box

    I can't get Multisim's footprint selector dialog box to access certain parts I made recently in Ultiboard. I've been doing this a long time and never had this problem. Design suite version is 10.1 and OS is Win7 Thanks