How to format XML file as in JDeveloper's style?

I'm trying to output XML by using oracle.xml.parser.v2.XMLOutputStream. There are three possible output styles: COMPACT, DEFAULT, PRETTY. I tried all of them, but none of them can give me the exact fromatting style as in JDeveloper. What output style JDeveloper is using? If there's a special XSL is being used by JDeveloper, can anyone give me a link?
Much thanks
Charles

You mean you want to see the XML source?
You need to replace the characters '<' and '&' with corresponding entities '&lt;' and '&amp;'. You can use replaceAll, but do the ampersands first.
Then I suggest you probably want to put them in a <PRE> block.

Similar Messages

  • How to RUN a XML file directly in JDeveloper

    Can any one please suggest me for running a XML file directly in Jdeveloper?
    I need the step how to do it

    actually I am calling xsl inside my xml....
    the XMl code
    =================
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?xml-stylesheet type="text/xsl" href="SfATranslation.xsl"?>
    <SfAForm>
    <SfAFormHeader>
    <Name>ACM Maintain Code Table</Name>
    <Notes></Notes>
    <HeaderText>ACM Maintain Transaction Code Table</HeaderText>
    <ItemID></ItemID>
    <LogoImage>cpfb.gif</LogoImage>
    <SubmitTo>FormAction.asp</SubmitTo>
    <Title>Account Management</Title>
    <TranslationRule>SfATranslation</TranslationRule>
    </SfAFormHeader>
    <SfASection>
    <VisibilityRule></VisibilityRule>
    <SfASectionHeader>
    <Name>ACM - Maintain Transaction Code Table</Name>
    <Notes>ACM Maintain Transaction Code Table</Notes>
    <ItemID>TX Code</ItemID>
    </SfASectionHeader>
    <SfAComponent>
    <VisibilityRule></VisibilityRule>
    <SfAComponentHeader>
    <Name>Code Table Information</Name>
    <ItemID>A1</ItemID>
    </SfAComponentHeader>
    <SfAItem>
    <Name>Scheme Code</Name>
    <Type>SfA_Select</Type>
    <VisibilityRule></VisibilityRule>
    <Information>Select Scheme</Information>
    <ItemID></ItemID>
    <Required>*</Required>
    <Value></Value>
    <SfA_SelectOptions>
    <Name>Education</Name>
    <ItemID>EDN</ItemID>
    <Multiple>Y</Multiple>
    <Selected></Selected>
    </SfA_SelectOptions>
    <SfA_SelectOptions>
    <Name>Housing</Name>
    <ItemID>HU</ItemID>
    <Multiple>Y</Multiple>
    <Selected></Selected>
    </SfA_SelectOptions>
    <SfA_SelectOptions>
    <Name>Investment</Name>
    <ItemID>INV</ItemID>
    <Multiple>Y</Multiple>
    <Selected></Selected>
    </SfA_SelectOptions>
    </SfAItem>
    <SfAItem>
    <Name>Transaction Code</Name>
    <Type>SfA_Text</Type>
    <VisibilityRule></VisibilityRule>
    <Information>Enter Transaction Code</Information>
    <ItemID>TXCode</ItemID>
    <Required>*</Required>
    <Value></Value>
    </SfAItem>
    <SfAItem>
    <Name>Reason Code</Name>
    <Type>SfA_Text</Type>
    <VisibilityRule></VisibilityRule>
    <Information>Enter Reason</Information>
    <ItemID>Reason</ItemID>
    <Required>*</Required>
    <Value></Value>
    <ItemError>
    <Name>Error Test</Name>
    <ItemID>ER001</ItemID>
    <Message>Please enter valid data . . .</Message>
    <SupportLink>http://www.google.co.nz/</SupportLink>
    </ItemError>
    </SfAItem>
    <SfAItem>
    <Name>Description</Name>
    <Type>SfA_Textarea</Type>
    <VisibilityRule></VisibilityRule>
    <Cols>60</Cols>
    <Information>Enter Description</Information>
    <ItemID>Description</ItemID>
    <Required>*</Required>
    <Rows>5</Rows>
    <Value></Value>
    </SfAItem>
    <SfAItem>
    <Name>Interest Computation</Name>
    <Type>SfA_Checkbox</Type>
    <VisibilityRule></VisibilityRule>
    <Information></Information>
    <ItemID>Interest</ItemID>
    <Required></Required>
    <Value></Value>
    <SfA_CheckboxOptions>
    <Name>Interest</Name>
    <ItemID>IDInterest</ItemID>
    <Multiple>Y</Multiple>
    <Selected></Selected>
    </SfA_CheckboxOptions>
    </SfAItem>
    <SfAItem>
    <Name>Interest Information</Name>
    <Type>SfA_Information</Type>
    <VisibilityRule>IDInterest!='IDInterest'</VisibilityRule>
    <BeginText>For information</BeginText>
    <EndText>or look up admin manual</EndText>
    <ItemID></ItemID>
    <Link>http://www.google.co.nz/</Link>
    <LinkLabel>see sss</LinkLabel>
    </SfAItem>
    </SfAComponent>
    <SfAComponent>
    <VisibilityRule>IDInterest!='IDInterest'</VisibilityRule>
    <SfAComponentHeader>
    <Name>Interest Calculation Applicable Dates</Name>
    <ItemID>A2</ItemID>
    </SfAComponentHeader>
    <SfAItem>
    <Name>Effective Start Date</Name>
    <Type>SfA_Text</Type>
    <VisibilityRule></VisibilityRule>
    <Information>dd/mm/yyyy</Information>
    <ItemID></ItemID>
    <Required></Required>
    <Value></Value>
    </SfAItem>
    <SfAItem>
    <Name>Effective End Date</Name>
    <Type>SfA_Text</Type>
    <VisibilityRule></VisibilityRule>
    <Information>dd/mm/yyyy</Information>
    <ItemID></ItemID>
    <Required></Required>
    <Value></Value>
    </SfAItem>
    </SfAComponent>
    </SfASection>
    <SfAMenuHeader>
    <MenuItem>
    <Name>Account Management</Name>
    <Href>Form.xml</Href>
    <Image></Image>
    <ItemID></ItemID>
    <Target>_self</Target>
    </MenuItem>
    <MenuItem>
    <Name>Asset Enhancement</Name>
    <Href>Form.xml</Href>
    <Image></Image>
    <ItemID></ItemID>
    <Target>_self</Target>
    </MenuItem>
    <MenuItem>
    <Name>Common Biz Services</Name>
    <Href>Form.xml</Href>
    <Image></Image>
    <ItemID></ItemID>
    <Target>_self</Target>
    </MenuItem>
    <MenuItem>
    <Name>Common Sys Services</Name>
    <Href>Form.xml</Href>
    <Image></Image>
    <ItemID></ItemID>
    <Target>_self</Target>
    </MenuItem>
    <MenuItem>
    <Name>Operations</Name>
    <Href>Form.xml</Href>
    <Image></Image>
    <ItemID></ItemID>
    <Target>_self</Target>
    </MenuItem>
    <MenuItem>
    <Name>System Messages</Name>
    <Href>Form.xml</Href>
    <Image></Image>
    <ItemID></ItemID>
    <Target>_self</Target>
    </MenuItem>
    </SfAMenuHeader>
    <SfAButtonHeader>
    <ButtonItem>
    <Name>Save</Name>
    <ItemID></ItemID>
    </ButtonItem>
    <ButtonItem>
    <Name>Update</Name>
    <ItemID></ItemID>
    </ButtonItem>
    <ButtonItem>
    <Name>Deactivate</Name>
    <ItemID></ItemID>
    </ButtonItem>
    <ButtonItem>
    <Name>Help</Name>
    <ItemID></ItemID>
    </ButtonItem>
    <ButtonItem>
    <Name>Cancel</Name>
    <ItemID></ItemID>
    </ButtonItem>
    </SfAButtonHeader>
    </SfAForm>
    The Xsl code
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="SfAForm">
    <html>
    <head>
    <title>HP Smart Forms Demo</title>
              <link rel="stylesheet" href="../shared/css/useragentmanExample.css" type="text/css" media="all" />
              <link rel="stylesheet" href="../shared/css/visibleIf.css" type="text/css" media="all" />
              <link rel="stylesheet" href="../shared/css/style.css" type="text/css" media="all" />
              <script type="text/javascript" src="../shared/js/EventHelpers.js"></script>
              <script type="text/javascript" src="../shared/js/visibleIf.js"></script>
    </head>
    <body>
    <xsl:apply-templates select="SfAFormHeader"/>
    </body>
    </html>
    </xsl:template>
    <xsl:template match="SfAFormHeader">
    <xsl:variable name="tmpformID"><xsl:value-of select="ItemID"/></xsl:variable>
    <xsl:variable name="tmpformName"><xsl:value-of select="Name"/></xsl:variable>
    <xsl:variable name="tmpformAction"><xsl:value-of select="SubmitTo"/></xsl:variable>
    <xsl:variable name="tmpformImage"><xsl:value-of select="LogoImage"/></xsl:variable>
    <div id="stylized" class="myform">
    <form id="{$tmpformID}" name="{$tmpformName}" method="post" action="{$tmpformAction}" class="visibleIf-disableIfInvisible">
    <table>
    <tr>
    <td valign="top"><IMG src="{$tmpformImage}" ALT=""/></td>
    <td valign="top" rowspan="1">
         <h1> <xsl:value-of select="Title"/> </h1>
         <p>
    <xsl:call-template name="PreserveLineBreaks">
    <xsl:with-param name="text" select="Notes"/>
    </xsl:call-template>
    </p>
         <!-- <xsl:apply-templates select="//SfASection"/> -->
    </td>
    </tr>
    <tr>
         <td valign="top">
         <xsl:apply-templates select="//SfAMenuHeader"/>
         </td>
         <td valign="top">
         <xsl:apply-templates select="//SfASection"/>
         </td>
    </tr>
    <tr>
    <td></td> <!--Blank cell below the menu-->
    <td>
    <p></p>
         <xsl:apply-templates select="//SfAButtonHeader"/>
    </td>
    </tr>
    </table>
    </form>
    </div>
    </xsl:template>
    <xsl:template match="SfAMenuHeader">
    <xsl:apply-templates select="MenuItem"/>
    </xsl:template>
    <xsl:template match="MenuItem">
    <xsl:variable name="tmpappMenuHref"><xsl:value-of select="Href"/></xsl:variable>
    <xsl:variable name="tmpappMenuTarget"><xsl:value-of select="Target"/></xsl:variable>
    <xsl:variable name="tmpappMenuImage"><xsl:value-of select="Image"/></xsl:variable>
    <a class="menulink" href="{$tmpappMenuHref}" target="{$tmpappMenuTarget}"> <xsl:value-of select="Name"/> </a>
    <xsl:choose>
    <xsl:when test="$tmpappMenuImage=''">
    </xsl:when>
    <xsl:otherwise>
    <IMG src="{$tmpappMenuImage}" ALT=""/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template match="SfAButtonHeader">
    <xsl:apply-templates select="ButtonItem"/>
    </xsl:template>
    <xsl:template match="ButtonItem">
    <button type="submit"><xsl:value-of select="Name"/></button>
    </xsl:template>
    <xsl:template match="SfASection">
    <xsl:variable name="tmpSectionVisibleRule"><xsl:value-of select="VisibilityRule"/></xsl:variable>
    <xsl:choose>
    <xsl:when test="$tmpSectionVisibleRule=''">
    <xsl:apply-templates select="SfASectionHeader"/>
    <xsl:apply-templates select="SfAComponent"/>
    </xsl:when>
    <xsl:otherwise>
    <span class="visibleIf" data-visibleif-rule="{$tmpSectionVisibleRule}"> <!--&&=AND ||==OR -->
    <xsl:apply-templates select="SfASectionHeader"/>
    <xsl:apply-templates select="SfAComponent"/>
    </span>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template match="SfAComponent">
    <xsl:variable name="tmpComponentVisibleRule"><xsl:value-of select="VisibilityRule"/></xsl:variable>
    <xsl:choose>
    <xsl:when test="$tmpComponentVisibleRule=''">
    <xsl:apply-templates select="SfAComponentHeader"/>
    <xsl:apply-templates select="SfAItem"/>
    </xsl:when>
    <xsl:otherwise>
    <span class="visibleIf" data-visibleif-rule="{$tmpComponentVisibleRule}"> <!--&&=AND ||==OR -->
    <xsl:apply-templates select="SfAComponentHeader"/>
    <xsl:apply-templates select="SfAItem"/>
    </span>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template match="SfASectionHeader">
    <h3 class="sectionID"> <xsl:value-of select="ItemID"/> </h3>
    <h2 class ="sectionTitle"> <xsl:value-of select="Name"/> </h2>
    <!-- <p> <xsl:value-of select="Notes"/></p> -->
    <p>
    <xsl:call-template name="PreserveLineBreaks">
    <xsl:with-param name="text" select="Notes"/>
    </xsl:call-template>
    </p>
    </xsl:template>
    <xsl:template match="SfAComponentHeader">
    <h3 class="questionCode"> <xsl:value-of select="ItemID"/> </h3>
    <h3 class ="questionTitle"> <xsl:value-of select="Name"/> </h3>
    </xsl:template>
    <xsl:template match="SfAItem">
    <xsl:variable name="tmpItemVisibleRule"><xsl:value-of select="VisibilityRule"/></xsl:variable>
    <xsl:choose>
    <xsl:when test="$tmpItemVisibleRule=''">
    <xsl:call-template name="processItem">
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <span class="visibleIf" data-visibleif-rule="{$tmpItemVisibleRule}"> <!--&&=AND ||==OR -->
    <xsl:call-template name="processItem">
    </xsl:call-template>
    </span>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="processItem">
    <xsl:variable name="tmpID"><xsl:value-of select="ItemID"/></xsl:variable>
    <xsl:variable name="tmpItemValue"><xsl:value-of select="Value"/></xsl:variable>
    <xsl:variable name="tmpItemType"><xsl:value-of select="Type"/></xsl:variable>
    <xsl:apply-templates select="ItemError"/>
    <xsl:choose>
    <xsl:when test="$tmpItemType='SfA_Select'">
    <label>
    <xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
    <span class="small"> <xsl:value-of select="Information"/> </span>
    </label>
              <select class="dropdown" name="{$tmpID}" value="{$tmpItemValue}">
              <xsl:apply-templates select="SfA_SelectOptions"/>
              </select>
    </xsl:when>
    <xsl:when test="$tmpItemType='SfA_Checkbox'">
    <label>
    <xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
    <span class="small"> <xsl:value-of select="Information"/> </span>
    </label>
    <div>
    <xsl:apply-templates select="SfA_CheckboxOptions"/>
    </div>
    </xsl:when>
    <xsl:when test="$tmpItemType='SfA_Radio'">
    <label>
    <xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
    <span class="small"> <xsl:value-of select="Information"/> </span>
    </label>
    <div>
    <xsl:apply-templates select="SfA_RadioOptions"/>
    </div>
    </xsl:when>
    <xsl:when test="$tmpItemType='SfA_Information'">
              <xsl:variable name="tmpLink"><xsl:value-of select="Link"/></xsl:variable>
              <span class="para">
              <xsl:value-of select="BeginText"/>
              <xsl:if test="$tmpLink!=''">
                   <xsl:text> </xsl:text>
         <xsl:value-of select="LinkLabel"/>
         </xsl:if>
              <xsl:text> </xsl:text>
              <xsl:value-of select="EndText"/>
              </span>
    </xsl:when>
    <xsl:when test="$tmpItemType='SfA_Textarea'">
         <xsl:variable name="tmpRows"><xsl:value-of select="Rows"/></xsl:variable>
    <xsl:variable name="tmpCols"><xsl:value-of select="Cols"/></xsl:variable>
    <label>
    <xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
    <span class="small"> <xsl:value-of select="Information"/> </span>
    </label>
    <textarea class="text" rows="{$tmpRows}" cols="{$tmpCols}" name="{$tmpID}"><xsl:value-of select="Value"/></textarea>
    </xsl:when>
    <xsl:otherwise>
    <label>
    <xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
    <span class="small"> <xsl:value-of select="Information"/> </span>
    </label>
              <input class="text" type="text" name="{$tmpID}" id="{$tmpID}" value="{$tmpItemValue}"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template match="ItemError">
    <xsl:variable name="tmpSupportLink"><xsl:value-of select="SupportLink"/></xsl:variable>
    <!--Add error message if it exists. Add below the data entry -->
    <!-- <label><xsl:text>Error: </xsl:text><xsl:value-of select="ItemID"/></label> -->
    <label></label>
    <xsl:choose>
    <xsl:when test="$tmpSupportLink=''">
    <span class="error"><xsl:value-of select="Message"/></span>
    </xsl:when>
    <xsl:otherwise>
    <a class="error" href="{$tmpSupportLink}" target="_blank"><xsl:value-of select="Message"/></a>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template match="SfA_CheckboxOptions">
    <xsl:variable name="tmpItemOptionID"><xsl:value-of select="ItemID"/></xsl:variable>
    <xsl:variable name="tmpItemOptionValue"><xsl:value-of select="Value"/></xsl:variable>
    <xsl:variable name="tmpItemOptionSelected"><xsl:value-of select="Selected"/></xsl:variable>
    <xsl:variable name="tmpItemOptionMultiple"><xsl:value-of select="Multiple"/></xsl:variable>
    <input type="checkbox" name="{$tmpItemOptionID}" value="{$tmpItemOptionID}">
    <xsl:if test="$tmpItemOptionSelected='Y'">
    <xsl:attribute name="checked">checked</xsl:attribute>
    </xsl:if>
    </input>
    <xsl:choose>
    <xsl:when test="$tmpItemOptionMultiple='Y'">
    <span class="checklabelMultiple"><xsl:value-of select="Name"/></span>
    </xsl:when>
    <xsl:otherwise>
    <span class="checklabelSingle"><xsl:value-of select="Name"/></span>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template match="SfA_RadioOptions">
    <xsl:variable name="tmpItemOptionID"><xsl:value-of select="ItemID"/></xsl:variable>
    <xsl:variable name="tmpItemOptionValue"><xsl:value-of select="Value"/></xsl:variable>
    <xsl:variable name="tmpItemOptionSelected"><xsl:value-of select="Selected"/></xsl:variable>
    <xsl:variable name="tmpItemOptionMultiple"><xsl:value-of select="Multiple"/></xsl:variable>
    <input type="radio" name="{$tmpItemOptionID}" value="{$tmpItemOptionValue}">
    <xsl:if test="$tmpItemOptionSelected='Y'">
    <xsl:attribute name="checked">checked</xsl:attribute>
    </xsl:if>
    </input>
    <xsl:choose>
    <xsl:when test="$tmpItemOptionMultiple='Y'">
    <span class="checklabelMultiple"><xsl:value-of select="Name"/></span>
    </xsl:when>
    <xsl:otherwise>
    <span class="checklabelSingle"><xsl:value-of select="Name"/></span>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template match="SfA_SelectOptions">
    <xsl:variable name="tmpItemOptionValue"><xsl:value-of select="ItemID"/></xsl:variable>
    <xsl:variable name="tmpItemOptionSelected"><xsl:value-of select="Selected"/></xsl:variable>
    <xsl:choose>
    <xsl:when test="$tmpItemOptionSelected=''">
              <option value="{$tmpItemOptionValue}"><xsl:value-of select="Name"/></option>
    </xsl:when>
    <xsl:otherwise>
    <option value="{$tmpItemOptionValue}" selected="{$tmpItemOptionSelected}"><xsl:value-of select="Name"/></option>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="PreserveLineBreaks">
    <xsl:param name="text"/>
    <xsl:choose>
    <xsl:when test="contains($text,'&#xA;')">
    <xsl:value-of select="substring-before($text,'&#xA;')"/>
    <xsl:call-template name="PreserveLineBreaks">
    <xsl:with-param name="text">
    <xsl:value-of select="substring-after($text,'&#xA;')"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$text"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>

  • How to convert XMl file to XSD file

    how to convert XMl file to XSD file ?
    i have a xml file format  it has to be converted to xsd file through ABAP .
    Regards
    Anbu B

    i got the answer....
    Regards
    Anbu B

  • How to refresh XML file  from my client machine

    Hai All
    I have temp.XML and temp.XSL template in our server machine.
    when i give a print from client machine first time it gives the record,and next time it did not get refresh.Always it shows the previous records in the browser.But when i go into the server machine and click on temp.xml,it shows the current record(correct records)
    How to refresh XML file  from my client machine?
    Regards
    Dhina

    You never delete a Time Machine backup by dragging it to the Trash. You are supposed to use the TM application to manage the backups. What you will need to do now is to simply erase the drive using Disk Utility.

  • How to generate xml-file for SAP Fiori (UI add-on) with Solution Manager 7.0.1?

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

  • How to convert XML file to an internal table ?

    Hi All,
    I want to do a batch input program. The source data would be given as an excel file . I would like to know how to convert XML file to internal table properly. Please help me out..
    Thanking you in advance ..
    Shankara Narayanan T.V

    Hi Shankar,
    use 'ALSM_EXCEL_TO_INTERNAL_TABLE' FM.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
             EXPORTING
                  filename                = p_file1
                  i_begin_col             = '1'
                  i_begin_row             = '5'
                  i_end_col               = '40'
                  i_end_row               = '16'
             TABLES
                  intern                  = it_intern
             EXCEPTIONS
                  inconsistent_parameters = 1
                  upload_ole              = 2
                  OTHERS                  = 3.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    LOOP AT it_intern.
          AT NEW row.
            CLEAR it_intern.
          ENDAT.
            CASE lv_flag.
        Production Version
              WHEN  1.
                it_master-matnr      =   it_intern-value.     
              WHEN  2.
                it_master-werks      = it_intern-value.
              WHEN  3.
                it_master-verid      = it_intern-value.
              WHEN  4.
                it_master-text1      = it_intern-value.
              WHEN  5.
                it_master-fdate     = it_intern-value.
          AT END OF row.
            APPEND it_master.
          ENDAT.
        ENDLOOP.
    -Anu
    Message was edited by:
            Anupama Reddy

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • How to read .xml file from embedded .swf(flash output) in captivate

    I have been trying to read .xml file from the .swf (Flash output) that is embedded within the captivate file but no luck yet . Please if anyone got any clue on how get this thing done using Action script 3.0 then let me know. I am using Adobe Captivate 5.5 at present and Flash CS 5.5.
    I am well aware about how to read .xml file through action script 3.0 in flash but when insert the same flash in captivate and publish nothing comes in captivate output. I would higly appreciate if anyone could help me out with that.
    Here is is graphical demonstration of my query :
    Message was edited by: captainmkv

    Hi Captainmkv,
    Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
    Tristan,

  • How to upload XML file from Application server.

    Hi,
    How to upload XML file from Application server.Please tell me as early as possible.
    Regards,
    Sagar.

    Hi,
    parameters : p_file type ibipparms-path obligatory.
    ***DOWNLOAD---->SAP INTO EXCEL
    filename1 = p_file.
    call function 'GUI_DOWNLOAD'
      exporting
      BIN_FILESIZE                    =
        filename                        = filename1
        filetype                        = 'ASC'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = 'X'
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
      tables
        data_tab                        = it_stock
      FIELDNAMES                      =
    exceptions
       file_write_error                = 1
       no_batch                        = 2
       gui_refuse_filetransfer         = 3
       invalid_type                    = 4
       no_authority                    = 5
       unknown_error                   = 6
       header_not_allowed              = 7
       separator_not_allowed           = 8
       filesize_not_allowed            = 9
       header_too_long                 = 10
       dp_error_create                 = 11
       dp_error_send                   = 12
       dp_error_write                  = 13
       unknown_dp_error                = 14
       access_denied                   = 15
       dp_out_of_memory                = 16
       disk_full                       = 17
       dp_timeout                      = 18
       file_not_found                  = 19
       dataprovider_exception          = 20
       control_flush_error             = 21
       others                          = 22
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Regards,
    Deepthi.

  • How to use XML file as a source in BODS?

    How to use XML file as a source in BODS?
    Could anyone please help me out for this?

    exmpale XML file :
    <?xml version="1.0" encoding="utf-8"?>
    <MM_RECON_REPORT>
      <RPT_DATE>str1234</RPT_DATE>
      <RPT_ROW>
        <SRC_EXT_REC_COUNT>123.45</SRC_EXT_REC_COUNT>
        <PRE_TRANS_REC_COUNT>123.45</PRE_TRANS_REC_COUNT>
        <POST_TRANS_REC_COUNT>123.45</POST_TRANS_REC_COUNT>
        <PASS_BAPI_REC_COUNT>123.45</PASS_BAPI_REC_COUNT>
        <TOT_SAP_RETURN>123.45</TOT_SAP_RETURN>
        <TOT_SAP_SUCC_REC_COUNT>123.45</TOT_SAP_SUCC_REC_COUNT>
        <PARTIAL_SUCC_REC_COUNT>123.45</PARTIAL_SUCC_REC_COUNT>
        <TOT_SAP_ERR_REC_COUNT>123.45</TOT_SAP_ERR_REC_COUNT>
        <MM_SUCC_REC_COUNT>123.45</MM_SUCC_REC_COUNT>
        <MM_ERR_REC_COUNT>123.45</MM_ERR_REC_COUNT>
        <CLS_SUCC_REC_COUNT>123.45</CLS_SUCC_REC_COUNT>
        <CLS_ERR_REC_COUNT>123.45</CLS_ERR_REC_COUNT>
        <CP_SUCC_REC_COUNT>123.45</CP_SUCC_REC_COUNT>
        <CP_ERR_REC_COUNT>123.45</CP_ERR_REC_COUNT>
        <VMS_SUCC_REC_COUNT>123.45</VMS_SUCC_REC_COUNT>
        <VMS_ERR_REC_COUNT>123.45</VMS_ERR_REC_COUNT>
        <SOURCE_TYPE>str1234</SOURCE_TYPE>
        <RUN_ID>123.45</RUN_ID>
        <RUN_SEQ>123.45</RUN_SEQ>
        <RUN_DATE>2012-12-13</RUN_DATE>
      </RPT_ROW>
    </MM_RECON_REPORT>
    example XSD file :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <xsd:annotation>
        <xsd:documentation xml:lang="en">
        XML Schema generated by Data Services
        </xsd:documentation>
      </xsd:annotation>
    <xsd:simpleType name="DIType-decimal-28-0">
      <xsd:restriction base="xsd:decimal">
        <xsd:totalDigits value="28"/>
        <xsd:fractionDigits value="0"/>
      </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="DIType-varchar-200">
      <xsd:restriction base="xsd:string">
      <xsd:maxLength value="200"/>
      </xsd:restriction>
      </xsd:simpleType>
    <xsd:simpleType name="DIType-varchar-10">
      <xsd:restriction base="xsd:string">
        <xsd:maxLength value="10"/>
      </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="DATE">
      <xsd:restriction base="xsd:date">
      </xsd:restriction>
      </xsd:simpleType>
    <xsd:element name="MM_RECON_REPORT" >
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="RPT_DATE" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="RPT_ROW"  minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    <xsd:element name="RPT_DATE" type = "DIType-varchar-200"/>
    <xsd:element name="RPT_ROW" >
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="SRC_EXT_REC_COUNT" />
            <xsd:element ref="PRE_TRANS_REC_COUNT" />
            <xsd:element ref="POST_TRANS_REC_COUNT" />
            <xsd:element ref="PASS_BAPI_REC_COUNT" />
            <xsd:element ref="TOT_SAP_RETURN" />
            <xsd:element ref="TOT_SAP_SUCC_REC_COUNT" />
            <xsd:element ref="PARTIAL_SUCC_REC_COUNT" />
            <xsd:element ref="TOT_SAP_ERR_REC_COUNT" />
            <xsd:element ref="MM_SUCC_REC_COUNT" />
            <xsd:element ref="MM_ERR_REC_COUNT" />
            <xsd:element ref="CLS_SUCC_REC_COUNT" />
            <xsd:element ref="CLS_ERR_REC_COUNT" />
            <xsd:element ref="CP_SUCC_REC_COUNT" />
            <xsd:element ref="CP_ERR_REC_COUNT" />
            <xsd:element ref="VMS_SUCC_REC_COUNT" />
            <xsd:element ref="VMS_ERR_REC_COUNT" />
            <xsd:element ref="SOURCE_TYPE" />
            <xsd:element ref="RUN_ID" />
            <xsd:element ref="RUN_SEQ" />
            <xsd:element ref="RUN_DATE" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    <xsd:element name="SRC_EXT_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="PRE_TRANS_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="POST_TRANS_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="PASS_BAPI_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="TOT_SAP_RETURN" type = "DIType-decimal-28-0"/>
    <xsd:element name="TOT_SAP_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="PARTIAL_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="TOT_SAP_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="MM_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="MM_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="CLS_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="CLS_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="CP_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="CP_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="VMS_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="VMS_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="SOURCE_TYPE" type = "DIType-varchar-10"/>
    <xsd:element name="RUN_ID" type = "DIType-decimal-28-0"/>
    <xsd:element name="RUN_SEQ" type = "DIType-decimal-28-0"/>
    <xsd:element name="RUN_DATE" type = "xsd:date"/>
    </xsd:schema>
    compare the xml vs xsd for better understanding

  • 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

  • How to send XML file to https server using POST

    Hi, I am having an requirement, that I have to connect to https server and I have to pass an input XML file as a response server will give me output XML file.
    The certificate validation part is over, I am using FileInputStream to read the XML file and attaching this to connection.getOutputStream(); but server is throwing me DTD does n't match.
    Can any body tell me how to send XML file, I have to use any DOM parser to send the XML file, suggest me and give me sample code.
    Thanks,

    Can anybody give me the solution

  • How to read xml file as shown below.

    Hello,
    I am using flash builder 4 and currently working on implementing AIR application.
    I need to read xml file data.
    Normal xml files are easy to read and i am much more aware of it.
    But can any one have idea how to read XML file which is given below.
    <node>
    <key>ID</key>
    <integer>1</integer>
    <key>Name</key>
    <string>Dhwani</string>
    <key>Postno</key>
    <integer>20</integer>
    <key>deskname</key>
    <string>flex</string>
    <key>empid</key>
    <integer>25</integer>
    <key>projectname</key>
    <string>abc</string>
    </node>
    Here i have xml file in form of key value pair. <key> node shows name of the key and after that <integer> or <string> node are the value for that specific key.
    if i select node.key then it shows me all the keys. and from that i cant make out what is the value for key ID.
    Is there any way to take first node and then second. i mean first i ll take value of key and store it into some arraycollection. and then value will be stored.
    Any help is appreciated.. Looking for positive reply.
    Thanks
    Dhwani

    There are different methods to access XML data which have pro's and cons. Let us know more about what you want to do and we can help you.

  • How to read XML file and write into another XML file

    Hi all, I am new to JAVAXML.
    My problem is I have to read one XML file and take some Nodes from that and write these nodes into another XML file...
    I solved, how to read XML file
    But I don't know how to Write nodes into another XML.
    Can anyone help in this???
    Thanks in advance..

    This was answered a bit ago. There was a thread called "XML Mergine" that started on Sept 14th. It has a lot of information about what it takes to copy nodes from one XML Document object into another.
    Dave Patterson

  • How to convert XML file to PDF

    Hi there,
    Does anyone know by any chance, how to covert XML file to PDF? Thanks

    Hello,
    You can convert most of the files in PDF by using the Print menu.
    Open the file you want to save in PDF and choose in the menu bar File > Print....
    You will see a will the Print window and at the left, click on the PDF button.
    Choose in the menu “Save as PDF...”
    Insert the name and you can also set security settings (like a password) and click on the “Save” button.
    Hope this will help.
    EDIT : (oups, dsimagry posted as the same time of me)

Maybe you are looking for

  • DBMS_CRYPTO in ORACLE 10.2?

    Hello, I wanna substitute some old selfmade encryption functions by the dbms_crypto package.http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_crypto.htm#BJFGFDFG says that it's part of ORACLE 10g Release 2. I have the version 10.2.0.4.

  • How to java class

    This is my first time learning Java, Please show me how to write the Java Class which is connect to Main Class. Thanks a lot

  • Storage location mandatory

    Dear Experts, Could you please inform to make Storage Location field has mandatory in Purchase Order for the User ID. Since it is a Client level I do not want to disturb for any other company code or plants. And also I want to make Plant mandatory wh

  • X100e BIOS Fn key swap - Is it possible to swap the physical keys too?

    We just received our first x100e ThinkPad and like many other users we did not like the Fn key location, so we have changed it via the bios setting that swaps it with the Ctrl key. However, is it possible to also swap the physical Fn and Ctrl keys on

  • Is it possible to test the dropdown values?

    Here we are trying to test dropdown value using Adobe browser lab for firebug. We are testing Registration form which has many dropdown fields. But using Adobe browser lab for firebug not able to get the dropdown values. Thanks Jenny