How to avoid priniting xml version... tag in output

hi,
I'm transforming an xml using xsl using output method="text". Not it is giving the something like the following tag in the top of output file.
<?xml version='1' encoding='UTF 8'?>
How can i remove this tag from not being printed.
A solutionasap will help us to proceed without hitches in our project.
thanx
Arun
null

Hi !
I've got the same problem, I'm using Jdeveloper build 915. My xml is like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<SERVICE DISPLAYNAME="Aktiekurser" LONG_DESCRIPTION="Aktiekurser med slutkurser">
<PARAMETERS>
<STOCK NAME="STOCKTICKER" DISPLAYNAME="Aktie kod" DISPLAYTYPE="TEXT">
<UPPERLIMIT NAME="MAX" DISPLAYNAME="Max " DISPLAYTYPE="TEXT"/>
<LOWERLIMIT NAME="MIN" DISPLAYNAME="Min" DISPLAYTYPE="TEXT"/>
<CLOSE NAME="CLOSE" DISPLAYNAME="Stangningskurs" DISPLAYTYPE="CHECKBOX"/>
</STOCK>
</PARAMETERS>
</SERVICE>
and my xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
<xsl:template match="SERVICE">
<xsl:value-of select="@LONG_DESCRIPTION"/>
<xsl:element name="TABLE">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="PARAMETERS/*">
<xsl:element name="TR">
<xsl:element name="TD">
<xsl:value-of select="@DISPLAYNAME"/>
<INPUT TYPE="{@DISPLAYTYPE}" NAME="{@NAME}" />
</xsl:element>
</xsl:element>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/SERVICE/PARAMETERS/*/*">
<xsl:element name="TD">
<xsl:value-of select="@DISPLAYNAME"/>
<INPUT TYPE="{@DISPLAYTYPE}" NAME="{@NAME}" />
</xsl:element>
</xsl:template>
</xsl:stylesheet>
I get
<?xml version = '1.0' encoding = 'UTF-8'?>
as the first row from the xsl-transform.
null

Similar Messages

  • How to remove ?xml version="1.0" encoding="UTF-8"? in receiver payload

    hi experts,
        how to remove <?xml version="1.0" encoding="UTF-8"?> from receiver payload.
    my source srtucture is ,
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:entity-data xmlns:ns0="http://www.xxx.com">
    <Customer>
    <CustNo>xxx</CustNo>
    </Customer>
    </ns0:entity-data>
    in receiver payload i dont wont " <?xml version="1.0" encoding="UTF-8"?> "
    i want receiver payload
    <ns0:entity-data xmlns:ns0="http://www.xxx.com">
    <Customer>
    <CustNo>xxx</CustNo>
    </Customer>
    </ns0:entity-data>
    can any one provide me the solution for this.
    regards,
    ganesh

    hi vijayakumar,
         thanx for ur response....

  • How to suppress ?xml version = '1.0'? in XML file generation thru PLSQL?

    Hi,
    I am using
    1. dbms_xmlgen.newContext to get the information from table.
    2. After that I am using dbms_lob.createtemporary
    3. Then I am using dbms_xmlgen.getXml
    4. Finally I am using dbms_xmlgen.closecontext
    I am using the above four steps to repatedly taking records from different tables.
    My requirement is : Each and every time I am getting the <?xml version = '1.0'?>.
    How to suppress <?xml version = '1.0'?> ?
    Regards
    Srini

    Hi,
    Use DBMS_XMLGEN.getXMLType to retrieve the XML data into an XMLType variable.
    Then, with getClobVal method, you can convert it to CLOB :
    SQL> DECLARE
      2    v_xml XMLType;
      3    v_lob CLOB;
      4  BEGIN
      5    v_xml := dbms_xmlgen.getXMLType('select * from scott.emp where rownum = 1');
      6    v_lob := v_xml.getClobVal();
      7 
      8    dbms_output.put_line(v_lob);
      9  END;
    10  /
    <ROWSET>
    <ROW>
      <EMPNO>7369</EMPNO>
      <ENAME>SMITH</ENAME>
      <JOB>CLERK</JOB>
      <MGR>7902</MGR>
      <HIREDATE>17/12/80</HIREDATE>
      <SAL>800</SAL>
      <DEPTNO>20</DEPTNO>
    </ROW>
    </ROWSET>
    PL/SQL procedure successfully completed

  • How to get 2 xml(Sibling tag) content same time and merge them

    how to get 2 xml(Sibling tag) content same time and merge them and search the result value in indesign file with page number  
    Like
    <Record>
    <A>this is a text</A>
    <B>a-123</B>
    </Records>
    First we need  tag A and B value as  :
    this is a text - a-123 and then get  this text page number form the indesign doc
    plz help

    hi
    var root = app.activeDocument.xmlElements[0];
    var aTag = root.evaluateXPathExpression("//Record/INAAMF");
    var bTag = root.evaluateXPathExpression("//Record/IAFKF");
    here I got  aTag  and bTag  = empty
    may be the reason is as I forgot to menion the proper XML path as
    <Records>
    <Record>
    <A>this is a text</A>
    <B>a-123</B>
    </Record>
    <Record>
    <A>Second text</A>
    <B>a-132</B>
    </Record>
    <Record>
    <A>Thied text</A>
    <B></B>
    </Record>
    <Records>

  • Delete xml messagetype tag and xml versioning tag in target xml file

    Hi experts.
    i want to delete the xml version, starting (<MT_ZMPSSERRMSGMST_SEND>*and ending </MT_ZMPSSERRMSGMST_SEND> tags in below message.
    here i am bold the tags which i want to delete. please help me how to delete this.
    <?xml version="1.0"; encoding="UTF-8"?>
    <MT_ZMPSSERRMSGMST_SEND>
       <MESSAGE>
          <TABLENAME/>
          <ACTION/>
          <RECORD>
             <ERRORID/>
             <ERRCLASSID/>
             <SHORTDESC/>
             <DESCRIPTION/>
             <RESOLVE/>
          </RECORD>
       </MESSAGE>
    </MT_ZMPSSERRMSGMST_SEND>

    Hi Srinivas,
    You can delete the required content of the XML by editing the XML.
    Develop a custom adapter module and use the below code to edit the xml and deleting the highlighted content
    // to read the input XML
    strData = xmlData.getText();
    // get the length of <?xml version="1.0"; encoding="UTF-8"?> <MT_ZMPSSERRMSGMST_SEND>
    int strheaderlength = (strData.substring(0,strData.indexOf("<Message>")).length());
    // read the data from <MESSAGE>  to </MESSAGE>
    String payload=strData.substring(strheaderlength,strData.startIndexOf("</MT_ZMPSSERRMSGMST_SEND>"))
    // set the new payload to xmlData
    xmlData.setText(payload);
    appreciate if useful

  • How to refer ?XML element tag name? in the RTF variable

    Hi All,
    I want to declare variable and assign the value of XML element tag to that variable.
    Following are the steps:
    <?xdoxslt:set_variable($_XDOCTX, MYCOUNT,1)?>
    <?xdoxslt:get_variable($_XDOCTX, MYCOUNT)?>
    <?if: xdoxslt:get_variable($_XDOCTX, MYCOUNT) =1?>xxx<?end if?>
    In the declaration part,I need to replace 1 with some of the xml element tag value(for example : <?vendor_name?>).
    But when I try to do so,I get some list of exceptions.
    Please suggest how to proceed.
    Thanks and Regards,
    Kaveri

    Hi Pradeep,
    Thanks for your response.Here my requirement goes:
    for -each:
    text(database value)
    end for-each
    This text value will continue from page 1 to N.
    So for page1 I want HEADER1 and from page2 onwards,I require different header HEADR2.
    By using your approach,my text which needs to be continued on different pages will not be acheived.
    One more thing I got from XMLP User guide:
    <xdofo:inline-total
    display-condition="exceptfirst"
    name="InvAmt">.
    SInce all my tags are generated from Oracel reports,I am unable to use the above xml line.Is there any way to use this by modifying the syntax..
    Please let me know your suggestions since this is show stopper for my report.
    Thanks and Regards,
    Kaveri

  • How to add: ?xml version="1.0"?

    Hi there,
    Just a simple question: How to I add the processing instruction to the top of my xml file
    using the xmldom?
    Here is my PL/SQL code for the package body so far and it compiles and works fine.
    ======================================================================================
    create or replace package body cardsXml is
    procedure generate_xml_order(p_Order_No in NUMBER)
    is
    begin
    DECLARE
    doc xmldom.DOMDocument;
    main_node xmldom.DOMNode;
    root_node xmldom.DOMNode;
    user_node xmldom.DOMNode;
    item_node xmldom.DOMNode;
    root_elmt xmldom.DOMElement;
    item_elmt xmldom.DOMElement;
    item_text xmldom.DOMText;
    CURSOR get_fingers(v_Order_Num NUMBER) IS
    SELECT length(RF.Minutia) Sze, RF.Finger_Cde, RF.Quality_Val
    FROM sbs.Recipient_Finger RF
    , sbs.Recipient R
    , sbs.recipient_card RC
    WHERE RC.order_no = v_Order_Num
    AND RF.pin = R.pin
    AND R.pin = RC.pin;
    BEGIN
    doc := xmldom.newDOMDocument;
    main_node := xmldom.makeNode(doc);
    root_elmt := xmldom.createElement(
    doc
    , 'FINGERS'
    root_node := xmldom.appendChild(
    main_node
    , xmldom.makeNode(root_elmt)
    FOR get_fingers_rec IN get_fingers(p_Order_No) LOOP
    item_elmt := xmldom.createElement(
    doc
    , 'FINGER'
    user_node := xmldom.appendChild(
    root_node
    , xmldom.makeNode(item_elmt)
    -- Create user element: Size
    item_elmt := xmldom.createElement(
    doc
    , 'SIZE'
    item_node := xmldom.appendChild(
    user_node
    , xmldom.makeNode(item_elmt)
    item_text := xmldom.createTextNode(
    doc
    , get_fingers_rec.Sze
    item_node := xmldom.appendChild(
    item_node
    , xmldom.makeNode(item_text)
    -- Create user element: FINGER_CDE
    item_elmt := xmldom.createElement(
    doc
    , 'FINGER_CODE'
    item_node := xmldom.appendChild(
    user_node
    , xmldom.makeNode(item_elmt)
    item_text := xmldom.createTextNode(
    doc
    , get_fingers_rec.finger_cde
    item_node := xmldom.appendChild(
    item_node
    , xmldom.makeNode(item_text)
    -- Create user element: QUALITY_VALUE
    item_elmt := xmldom.createElement(
    doc
    , 'QUALITY_VALUE'
    item_node := xmldom.appendChild(
    user_node
    , xmldom.makeNode(item_elmt)
    item_text := xmldom.createTextNode(
    doc
    , get_fingers_rec.quality_val
    item_node := xmldom.appendChild(
    item_node
    , xmldom.makeNode(item_text)
    END LOOP;
    xmldom.writeToFile(
    doc
    , '/ec_' || p_Order_No || '.xml'
    xmldom.freeDocument(doc);
    END;
    end generate_xml_order;
    end cardsXml;
    =======================================================================
    Thanks,
    Francois

    Using theDOM seems like a difficult way to create XML from a table.
    There are easier ways, e.g.
    declare
    theXML clob;
    query varchar2(100);
    id pls_integer := 3;
    begin
    query :='select run_id, tc_run_id,outcome_id, status from utr_outcome';
    theXML := xmlgen.getXML(query);
    printclobout(theXML);
    end;
    will produce
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <RUN_ID>1</RUN_ID>
    <TC_RUN_ID>1</TC_RUN_ID>
    <OUTCOME_ID>-1</OUTCOME_ID>
    <STATUS>FAILURE</STATUS>
    </ROW>
    <ROW num="2">
    <RUN_ID>1</RUN_ID>
    <TC_RUN_ID>2</TC_RUN_ID>
    <OUTCOME_ID>-2</OUTCOME_ID>
    <STATUS>FAILURE</STATUS>
    </ROW>
    ... etc.
    If your query is more complicated, you can use inline cursors (performance problems if query run on client).
    I recommend Steve Meunchs book, 'Building Oracle XML Applications'. Chapter 10 which covers 'automatic XML generation with DBXML' looks suitable.

  • Append XML version tag to PAYLOAD

    Hi,
    I wanted add XML tag <? xml version="1" conversion="UTF-8"?> to my payload.
    please suggest me the way to achieve it.
    I tried ora:toCDATA but could not achieve it.
    Thanks,
    Arun Jadhav.

    may b try getting your payload as string using ora:getContentAsString as use a concat operation and add your content and the parse it to XML using parasedEscapedXML
    Edited by: Oraacler on May 9, 2010 12:01 PM

  • How to insert ?xml version="1.0" encoding="utf-8"? before an element

    Hi, I have a message which must contain XML inside XML, this internal one must start off with the <?xml version="1.0" encoding="utf-8"?> string.
    Is there a nice trick for inserting this before an element? (not at the beginning of the mapping, a specific place further inside the XML).
    All of the other elements are mapped as part of the message type.

    Did you check Message Mapping : Play around with target structure .
    You can do this easily with UDF.
    public String setPrevalue(String var1,Container container) {
         StructureNode node = ((StructureNode) container.getParameter("STRUCTURE_NODE"));
         node.setPreValue("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
         return""; 

  • How to remove ?xml version="1.0" encoding="UTF-8"? .

    HI Experts,
                      i am doing one scenario file to file . in soruce payload i have <?xml version="1.0" encoding="UTF-8"?> . i want to remove <?xml version="1.0" encoding="UTF-8"?> at target side. is it possible .
    regards,
    alekhya.

    Hello,
    i want to remove <?xml version="1.0" encoding="UTF-8"?> at target side. is it possible .
    You can use XSLT and add
    <xsl:output method="text" version="1.0" encoding="UTF-8" omit-xml-declaration="yes"/>
    in your output declaration
    Hope this helps,
    Mark

  • How to remove ?xml version=

    Dear All,
    The moment I can see <?xml version="1.0"?> sentence in JSC produced pages going in the first line.
    Does anybody know the easiest way to remove/disable this 'feature' from the generated pages.
    The problem is comming using IE6.0 as a browser. I use CSS styles with fixed-size centered colums. IE6.0 goes nuts while anything else coming before DOCTYPE definition and swithes to quirk mode.
    Quirk mode makes my CSS looks agly and doesn't support centered layout.
    I have to say it is very annoying :)
    Alex

    Sorry, but I want remove this first line with <?xml version...
    To check what gives a bug I did the following:
    1.Run my page in design mode and it looks fine
    2. Clear and build my project, run it under Sun App Serv 8.2
    3. Can see centered CSS doesn't work
    4. Save source HTML by using 'View Source' context menu and remove annoying <?xml version...
    5. I got it - IT WORKS FINE.
    6. Please look at http://www.adobe.com/devnet/dreamweaver/articles/css_concepts_03.html (paragraph just before picture of Quirk and Standard mode)
    7. What is the reason of putting <xml into to the first line. XHTML is NOT xml anyway.
    King regards,
    Alex

  • How to avoid to print decimals in the output

    Hi,
    Please suggest me how to avoid getting decimals in the output.
    The variable that i am using is RKMNG. While declaring it i have used it in this manner,  rkmng type p decimals 0.
    but this only avoids fetching the data with decimals, when i am trying to print this value to the output using ALV FM, the decimals are appearing.
    Please can u provide me how to remove these three decimals that are appearing in the output.
    Thanks,

    do this :
    data : lv_var like i.
    move rkmng to lv_var.
    print lv_var.

  • How to avoid installing newer version of flash player

    Hey,
    After installing the newer version of flash player it caused troubles to me, and I don't see any way but to install an older version of Flash Player, however after I have installed it the game forces me to Install the newest version of Flash Player, otherwise it cannot run. So here is my question. How can I use an older version of Flash Player I had before without installing the newer version of it?
    - Dan

    Hi, You can go to this test site to see if you have Flash Player Installed on your 10.6.5 Mac.
    http://www.adobe.com/software/flash/about/
    Then this link has info on how to Uninstall Flash Player (if needed) and Install the latest version. It is a step by step.
    http://kb2.adobe.com/cps/865/cpsid_86551.html  
    After reading that info and you just need to Install, then this link would be easier:
    http://www.adobe.com/products/flashplayer/fp_distribution3.html
    Flash Player is a browser plugin and as long as your browser is supported by Adobe Flash Player, then you shouldn't have any problem.
    Hope that helps,
    eidnolb

  • Travelling I have very different downoad speed. How to avoid loading mobile version on the slow speed?

    I have to work in very different circumstances, sometimes I have very slow download speed. Then downloaded sites suddenly changes their look, as I understand, browser is switching to mobile phone download version. Can I prevent this?

    Look at the posts closely:might not be needed if formatted ;)
    create or replace procedure splitsms as
    begin
      insert into scott.smssplit (r,c,s,tc,na,tc2,na2,tc3,na3,tc4,na4,wther,sno)
      select substr(rcstcnatcnatcnatcnawther,1,2) r,
             substr(rcstcnatcnatcnatcnawther,3,2) c,
             substr(rcstcnatcnatcnatcnawther,5,1) s,
             substr(rcstcnatcnatcnatcnawther,6,3) tc,
             substr(rcstcnatcnatcnatcnawther,9,3) na,
             substr(rcstcnatcnatcnatcnawther,12,3) tc2,
             substr(rcstcnatcnatcnatcnawther,15,3) na2,
             substr(rcstcnatcnatcnatcnawther,18,3) tc3,
             substr(rcstcnatcnatcnatcnawther,21,3) na3,
             substr(rcstcnatcnatcnatcnawther,24,3) tc4,
             substr(rcstcnatcnatcnatcnawther,27,3) na4,
             substr(rcstcnatcnatcnatcnawther,30,10) wther,
             sno
        from scott.sms1 a
       where sno = (select max(sno)
                      from sms1
                     where sno != a.sno
                   ); ---------------> added where clause with table alias.
    end;Regards
    Etbin

  • How to avoid escaped XML in "Set Workflow Variable" | "By Composing"

    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the right pane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document the XML I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML in its
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task 1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task 1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

    Hi,
    I also have this problem. It seems that a crude way around it, is to use a quick
    fix via calling a business operation that performs string substitution to replace
    the escaped entity references (<) and (>) with "<" ">". I have done this
    and the approach works for me. Just be careful and make sure that the xml string
    your are cleaning up doesn't contain any of these entity reference that you would
    like to keep. Otherwise it will definitily break your xml. I hope you have that
    luxury.
    The easiest way to do is is to write a StringUtil class with a static replace
    function, replace(source, old, new), expose this method as a business operation,
    then call twice to convert your xml string.
    I know this is pretty pathetic, but might help in the meanwhile until BEA provides
    this functionality.
    Lukas
    "Smita Agarwal" <[email protected]> wrote:
    >
    Hi Paul,
    I am getting the exact same problem , have you found a solution for
    it??
    It will be great to know if this problem is solved.
    I am using WLI2.1 sp1 and WLS6.1 sp2, even with these two configuration
    this problem
    is occuring
    cheers,
    Smita
    "Paul Rooney" <[email protected]> wrote:
    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the rightpane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document theXML
    I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML inits
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way
    to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task
    1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task
    1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

Maybe you are looking for

  • How do I print from a Help page?

    Hi all. A newbie here. Quite regularly I find the need to use the help function on my OS 10.5.5 Mac and at times the help information is of considerable length, too long to write out long hand. My question, how can I get the printer to print from an

  • How do I get rid of the new itunes?

    I have just downloaded the new itunes and it has already made my dislike for this player greater! I had originally arranged all my music into Albums, which is now art work rather than the choice of art work/List/or a mix; list is what I prefered and

  • Acrobat Pro XI portfolio file sequence

    How do I maintain the Acrobat Pro XI portfolio file sequence when I convert it to a single PDF?

  • ORA-02068: following severe error from ....

    Hi, we have a dataguard setup for 10g databases on AIX platform as below. host1(TALON) host2(CATALINA) TICSPROD (PRIMARY ) TICSPROD(STANDBY) PLSPROD (STANDBY) PLSPROD (PRIMARY) We have decided to recreate PLSPROD STANDBY(because of some setup issues)

  • CUP - Comments not saving on request.

    Hi All, We are having an issue on CUP.  We have setup the comments field as mandatory when the request is either approved or rejected. When the approver enters the comments and approves the requests, CUP saves the time and date of approval, however i