Remove XML Header

I am developing a Java Servlet and would like to query the database multiple times. I have used OracleXMLQuery and an array to be able to run three separate queries. My problem is occuring in my returned XML Document. Each query comes back with a XML Header such as:
<?xml version = '1.0'?>
<Query_1>
<COL1>10</COL1>
</Query_1>
<?xml version = '1.0'?>
<Query_2>
<COL1>20</COL1>
</Query_2>
<?xml version = '1.0'?>
<Query_3>
<COL1>30</COL1>
</Query_3>
I have assigned the header separately and would just like to be able to turn off the generated header. My problem is coming when I am trying to use an applet and it does not like when it sees the XML header more than once. Any ideas or hints on how this can be done I would appreciate it.

Hello this did solve my issue. I have same issue infact. I used this xsl mapping  as
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
</xsl:stylesheet>
But my output xml struıcture has broken. Should I  do some changing in my xsl mapping and how ?
Regards,
Ceren.

Similar Messages

  • How to remove the header tag in the XML data ?

    Hi All,
    I am sending an XML data from SFTP to Proxy, in that I want to remove the header tag (first tag) from the xml, while loading the data. how to do that ?

    Hi,
          It is not about the thing that, whether your source is XML or flat file. If you dont want some thing in your source file , dont consider it and dont map it with your target structure. think that, your not getting the header in your source.  What is the header here.
    <Emp_details>
    <Emp_Id> Employee No </Emp_Id>
    <Emp_Name> Employee Name </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 1234 </Emp_Id>
    <Emp_Name> xxxx </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 5678 </Emp_Id>
    <Emp_Name> yyy </Emp_Name>
    </Emp_details>
    you have two fields under node Emp_details. What do u want to avoid here?
    Regards,
    Reyaz

  • How to remove the header in Report from SQVI

    Folks,
    I created a report by joining 4 tables in SQVI, the output data is around 200 pages. I need to remove the header from the report so I can down load to a excel.
    Can some tell me how to switch of the header in SQVI ( Layout Mode). I did this before using Legend on/off but I quite didn't remember how I exactly did it.
    Thanks,
    Kumar

    Hi,
          It is not about the thing that, whether your source is XML or flat file. If you dont want some thing in your source file , dont consider it and dont map it with your target structure. think that, your not getting the header in your source.  What is the header here.
    <Emp_details>
    <Emp_Id> Employee No </Emp_Id>
    <Emp_Name> Employee Name </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 1234 </Emp_Id>
    <Emp_Name> xxxx </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 5678 </Emp_Id>
    <Emp_Name> yyy </Emp_Name>
    </Emp_details>
    you have two fields under node Emp_details. What do u want to avoid here?
    Regards,
    Reyaz

  • Hide/remove group header

    Hi,
    I have modified the view with grouping by division. Now i want to remove group heading 'division' just directly want to display division name, how can i do this? please suggest.
    Regards,
    Deependra

    I think you messed up the feature.xml
    What steps did you take?
    The only thing that you had to do where the following two steps
    -  edit the schema.xml of the customlist.
    Basiccly remove two times this line of code and save it
    <GetVar Name="GroupByField" HTMLEncode="TRUE" /><HTML><![CDATA[</a> :&nbsp;]]></HTML>
    - uninstall and install the feature 
    stsadm -o uninstallfeature -name CustomList -force
    stsadm -o installfeature -name CustomList
    I did the first step for you and zipped the feature you can get it here replace the one you have with this one and install and uninstall the feature
    good luck
    Renee Hulsman - e-office / the netherlands - rhulsman.blogspot.com

  • Removing the header and footer in Pages

    I just began to use Pages after purchasing a new ibook. In AppleWorks, headers and footers were never inserted by default. In Pages, how can I remove the header and footer in Pages so I can have more space for the body section of the document?

    I had already set page margins to zero, and I disagree with you: Headers and footers still appear with a height of approximately 1/8 inch.
    SInce I posted my previous message, I have experimented a bit. I was able to (almost but not quite) totally eliminate the header and footer by clicking into the header and footer area and reducing the font size to the absolute minimum. After having done that, the body was basically in-line with 0" on the vertical page ruler.
    Also, in my opinion, whether or not most printers do a full page bleed is irrelevant. I should be able to work with the page body without its being offset from the page ruler if I don't want to employ a header or footer.
    Rusty

  • Need to remove the header and footer regions on one page

    Hi,
    I have a requirement to remove the header and footer regions on one page only. The regions I'm referring to contain the following:
    Header:
    Company logo, Home link, Logout link, Preferences link
    Footer:
    Copyright info, Privacy Statement, Home link, Logout link, Preferences link
    These are the standard Oracle header and footer regions/page items, so I am not specifying a particular page name, although it would be the create time cards page we want to modify.
    Also, we only want to remove these regions/items from ONE page, not an entire responsibility.
    Any help is greatly appreciated.
    Thanks!
    Suzanne

    Hi,
    In order to hide,
    Home link, Logout link, Preferences link
    Use this code in the processrequest of the controller on the page on which you want tohide these
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    page.setGlobalButtons((oracle.cabo.ui.UINode)null);
    And for hiding the Copyright info, Privacy Statement:
    Click on Personalise page link
    then Click on Choose Context
    Choose "OAFooter" as Scope
    and click "Apply"
    and then Personalise the Copyright and Privay Statememnt icon and set rendered as False.
    Thanks,
    Gaurav
    Edited by: Gauravv on Aug 25, 2009 8:36 PM

  • Create a new line in the xml-header structure.

    Hi,
    Can any one tell me how to create a new line in the xml-header structure.
    I am doing a IDOC-XI-HTTP scenario.
    Actually my mapping create this file:
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    The result must look like this.
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    Thanks and Regards,
    Eren

    Hi,
    thanks for you quick answer.
    I found a xsl script.
    It works fine.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes"/>
       <xsl:template match="*">
          <xsl:param name="depth">0</xsl:param>
          <!-- New line with indenting. -->
          <xsl:if test="$depth > 0">
             <xsl:text>    </xsl:text>
          </xsl:if>
          <xsl:text>&#xA;</xsl:text>
          <xsl:element name="{name(.)}">
             <xsl:for-each select="@*">
                <xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
             </xsl:for-each>
             <xsl:apply-templates>
                <xsl:with-param name="depth" select="$depth + 1"/>
             </xsl:apply-templates>
          </xsl:element>
       </xsl:template>
    </xsl:stylesheet>
    Best regards
    Eren

  • I want to remove the header and footer when printing from my mac, i can do this in the Page Setup on my PC but not on the Mac. I can do it each time I print but then it resets. How do I make a universal change?

    I want to remove the header and footer when printing from my mac, I can do this in the Page Setup on my PC but not on the Mac. I can do it each time I print but then it resets. How do I make a universal change?
    == This happened ==
    Every time Firefox opened

    Go to the "File" menu, then "Print." The window that appears will have three drop-down menus at the top.
    The first is labeled "Printer",
    The second is "Presets".
    The third is unlabeled but has "Copies & Pages" selected by default.
    Click on that third menu and select "Firefox" near the bottom of the list.

  • HT1349 how  do you remove the header and footer from a document

    how  do you remove the header and footer from a document

    It depends upon the app you are using.

  • Remove XML tags from XML element in Oracle

    Hi,
    I have a requirement where I have to remove all the xml tags from xml element with banks, currently I'm using replace 4 times to replace all different types of xml tags, performance is really bad. is there any better option to remove xml tags from xml data leaving the actual data. please find the example data below.
    select
    TO_CLOB(REPLACE(REPLACE(REPLACE(REPLACE
    ('<Concatcolumn><ConcatGroupID>MyText Data goes here </ConcatGroupID><ConcatGroupID>Data agian</ConcatGroupID></Concatcolumn>','<ConcatGroupID>'),'<Concatcolumn>'),'</ConcatGroupID>',';'),';</Concatcolumn>')) AS Concatcolumn
    from dual
    **************Out put*************
    MyText Data goes here ;Data agian

    One way is to use xquery:
    SQL> with t as
    select xmltype('<Concatcolumn>
                          <ConcatGroupID>MyText Data goes here </ConcatGroupID><ConcatGroupID>Data agian</ConcatGroupID></Concatcolumn>'
       ) xml from dual
    select xmlquery('string-join(//text(), ";")' passing xml returning content).getclobval() xml from t
    XML                                                              
    MyText Data goes here ;Data agian                                
    1 row selected.

  • Can we option or property to remove xml prolog ?xml version="1.0" encoding="UTF-8"? )  in atg server

    Hi
    i have a doubt if any one knows please let me know.
    in atg rest service(POST Request) i am sending request as xml and also i am expecting response as xml
    i have configured to get response as xml,but i want to delete xml prolog<?xml version="1.0" encoding="UTF-8"?>)  from my response can we have property to remove  xml prolog by using  atg server.
    thanks in advance
    bala

    Hello Soumya,
    Good to know it worked, I have got some doubts of using XPATH have U ever worked on that, let me know.
    Bye,
    Sam Mathew

  • Remove DataGrid Header Separator dynamically

    Hello,
    Scenario: I have a DG with 3 static columns and many dynamic columns added at run time.
    I want to have one and only one header for all the dynamic columns.
    In a way it can be seen as multiple datagridColumns (without headers) in  a single dataGridColumn (with only a header). Now there is a heavy traffic between static columns and the dynamic columns. So I dont think it is possible to have two different DG's.
    My Attempts: I tried to use the HeaderSeparatorSkin to remove the header separators so as to give a feel of one single header. But since the headerseparatorskin is removed at DG level it can be either removed for all columns or for none.
    My Question: I will have to create a custom DG so as to draw separator skin for few columns and remove for others. But I am not sure how can I do that since using "headerSeparatorSkin" removes it for all columns. Can some one show me a path as to how I can accomplish this?
    A very bad way of accomplishing the above is to remove all the header separator skins and then use headerRenderer for the static columns to show a line similar to separator skin. But that is a bad way of coding I guess.
    Thanks in advance,
    Bhargav

    Thank you for the reply Flex harUI.
    If I understood right the renderer will extend a DG and will have columnns  and only one row. But the row color will not match the the row of the main DG.
    Secondly I have using a checkbox renderer to be displayed in the columns created dynamically. The data of this renderer is changing with users interaction. Thus I am not very sure if implementing a renderer inside a renderer should be a good idea.
    But I will try and use your suggestion to see if it can be used for my implementation.
    Thanks again,
    Bhargav

  • HT5282 remove the header & footer in windows safari 5.1.7 while in printing

    Hi,
    I want to remove the header and footer while printing the data in windows 7 64 bit OS.
    Any one can help me out of this issue.
    Regards,
    Kathiresh Muthusamy

  • Removing columns heading for a perticular page in ALV list display

    Dear All,
    For last page of my ALV list display i need to remove columns heading (Strictly for single page only).
    Kindly help me with possible solution.
    I am triggering page break by  using group attribute in the sort catalogue.(  l_v_sortcat-group     = '* '. )
    Best Regards
    Ravishekar Thallapally

    if u can catch the page number,
    while building fieldcat, put the condition
    if sy-page = (page number)
    ls_fielcact-fieldname = fieldname.
    ls_fieldcat-tech = 'X'.
    LS_FIELDCAT-NO_OUT = 'x'.
    modify lt_fielcat from ls_fieldcat.
    but how r u catching page number?? can u pls tell
    endif.
    Message was edited by: Hymavathi Oruganti

  • Adding Encoding in XML header without mapping

    Hi Gurus,
    I am stuck in a situation where in a pass through scenario, I need to add encoding type in XML header.
    Below is example -
    Current Situation - <?xml version="1.0"?>
    Expected result -  <?xml version="1.0" encoding="UTF-8"?>
    Can anybody help me in this regard? how to achieve this?
    Regards
    Vidhi S

    Hi Vidhi
    Use it in the below way in the receiver adapter.
    Module name: AF_Modules/XMLAnonymizerBean
    Parameter name: anonymizer.encoding
    This will work. I have tested already.

Maybe you are looking for

  • Installation on RedHat Enterprise 6.5

    > I am installing Zenworks 6.5 for Linux on a RedHat Enterprose ES 3.0 that > was updated before the installion of Zenworks. > > The installion fails because rcd will not run. I found this in the > /var/log/messages > > Sep 28 09:31:43 dclnpzen1 rcd[

  • Setting UserField values in document rows

    Hi all This is the discription of my problem: I have SP1 PL4, moreover I created 2 user Fields in the row’s of documents they are named: U_AnzVE, U_AnzPal By code I try to do the following: I add a new entry for example a Purchase Order (or any other

  • Connect ipod to another computer

    i justg bought another computer and need to connect my ipod to my new computer. now it is already set up on my old one, and i want to connect it or sync it with my new one. how do i sync my ipod with my other computer without deleting all my songs??

  • How can i preorder an unlocked iphone 6 ?

    How can i preorder an unlocked iphone 6 ? without a  Service

  • Keynote crashes when editing a slide

    Keynote crashes every time I for example draw a square and touch it. I then have to start the program again to access ny presentation.