Help: How do we retain XML tags inside BPEL

I have scenario where the entire input (XML) needs to be converted as string object and passed to Java service (WSIF). getVariableData is removing XML tags.
Input is a XML document with XML Signature in it. Without tags, Java code is not able to verify the signature.
I am using Apache XML Security libraries. In order for me to verify, code creates Document object (org.w3c.dom.Document) from an inputstream.
Any help is much appreiciated.

Hi Clemens,
First of all, thanks for the quick response. I would appreciate if you could help me little more to understand your suggestion. Currently, my BPEL process input is coming in with a structure, which includes XML information to load invoice along with its digital signature.
Currently, I am trying to include an activity of Assignement after receiveInput activity to create an Xpath expression of something like this..
concat(concat("<SignedInvoice>",concat(orcl:get-content-as-string(bpws:getVariableData('inputVariable','payload','/client:SignedInvoice/ns2:EM_VOUCHER_IN')),orcl:get-content-as-string(bpws:getVariableData('inputVariable','payload','/client:SignedInvoice/ns3:Signature')))) , "</SignedInvoice>")
Where would I be implementing your suggestion of casting with org.w3c.dom.Element? would it be in the expression builder or does it need to be done somewhere else.
Thanks again..
Ramesh

Similar Messages

  • How to use h:selectOneRadio tag  inside h:dataTable tag

    Hi All,
    Can any one tell me how to use <h:selectOneRadio> tag inside <h:dataTable> tag and how to get selected radio button value in bean ?

    JSF<h:selectOneMenu value="#{myBean.selectedItem}">
        <f:selectItems value="#{myBean.selectItems}" />
    </h:selectOneMenu>MyBeanprivate String selectedItem;
    public String getSelectedItem() {
        return selectedItem;
    public void setSelectedItem(String selectedItem) {
        this.selectedItem = selectedItem;
    public List getSelectItems() {
        List selectItems = new ArrayList();
        selectItems.add(new SelectItem("key1", "value1"));
        selectItems.add(new SelectItem("key2", "value2"));
        selectItems.add(new SelectItem("key3", "value3"));
        return selectItems;
    }String selectedItem should contain the key (key1, key2 or key3) when selected. The values (value1, value2 and value3) are the options as shown in the list.

  • How to read duplicate XML tag?

    Hi to all gurus,
    Currently I am working on XSLT transformation. I encountered a problem when I have to read a random number of xml tag with the same names.
    sample:
    <product_code_list>
    <product_code>12345</product_code>
    <product_code>12333</product_code>
    <product_code>12233</product_code>
    </product_code_list>
    My xslt can only manage to read the 1st row. How can it be possible to read all the 3 rows?
    xslt:
    <product_code_list>
    <xsl:for each select-value-of='product_code_list'>
    <product_code_list1>
    <product_code><xsl: select-value-of ='product_code'></product_code>
    </product_code_list1>
    </xsl:for each>
    </product_code_list>
    Many thanks in advance for reading this. Please assist to solve this. Point will be generously awarded!

    Hi Mr Raja!
    Thanks again for your help. I felt so embarrassed.
    The product is produced from another source dynamically. Hence the list can contain from 1 to any number of products.
    I tried to use the for-each but another problem arise. the structure is created for the products, but it is all empty inside when i used the debugger to go through the code.
    TYPES:
    TPRODUCT(10) OCCURS 0,
    BEGIN OF PRODUCT_LIST,
      PRODUCT TYPE TPRODUCT,
    END OF PRODUCT_LIST,
    PL TYPE PRODUCT_LIST OCCURS 0.
    DATA:
    VENDOR TYPE STANDARD TABLE OF PRODUCT_LIST INITIAL SIZE 0,
    XML_STRING TYPE STRING,
    xslt_error     TYPE REF TO     cx_xslt_exception,
    xslt_message     TYPE     string.
    CLEAR xml_string .
    CONCATENATE
    `<myXML>`
    `<PRODUCT_LIST>`
    `<PRODUCT>12345</PRODUCT>`
    `<PRODUCT>12333</PRODUCT>`
    `<PRODUCT>62233</PRODUCT>`
    `</PRODUCT_LIST>`
    `</myXML>`
    INTO XML_STRING.
    CLEAR VENDOR.
    TRY.
          CALL TRANSFORMATION ('ZTESTCHINXSLT')
          SOURCE XML XML_STRING
          RESULT VENDOR = VENDOR.
        CATCH
        cx_xslt_exception INTO xslt_error.
          xslt_message = xslt_error->get_text( ).
      ENDTRY.
    XSLT:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/abapxml" version="1.0">
    <xsl:template match="/">
    <asx:abap xmlns:asx="http://www.sap.com/abapxml">
    <asx:values>
    <xsl:for-each select="myXML">
    <VENDOR>
    <xsl:for-each select="PRODUCT_LIST">
    <PRODUCT_LIST1>
    <PRODUCT>
    <xsl:for-each select="PRODUCT">
    <P>
    <xsl:value-of select="PRODUCT"/>
    </P>
    </xsl:for-each>  
    </PRODUCT>
    </PRODUCT_LIST1>   
    </xsl:for-each>
    </VENDOR>
    </xsl:for-each>   
    </asx:values>
    </asx:abap>
    </xsl:template>
    </xsl:transform>
    Message was edited by:
            swee chin

  • How to add Multiple XML Tags for a single column for an RDF

    Hi Gurus,
    I have Requirement in the Oracle D2k Report from which we are generating the xml tags.
    My Requirement is in a table i have 2 columns say A and B.
    i am able to generate three xml tags separately using the report builder by clicking on the column name and in the xml setting giving the xml tag.
    eg: table Acount contains 2 columns A and B with respective data
    A B
    QT 1
    QTS 0
    QTR 2
    i am able to general xml tags like this
    <ACount>
    <AStatus>QT</AStatus>
    <HeadCount>1</HeadCount>
    </ACount>
    <ACount>
    <AStatus>QTS</AStatus>
    <HeadCount>0</HeadCount>
    </ACount>
    my requiremnt for the xml tags is
    <ACount>
    <AStatusQT>1</AStatusQT>
    <AStatusQTS>0</AStatusQTS>
    </ACount>
    kindly help me out how to achieve this requirment in the rdf file mulitple xml tags.
    all your input are most valuable to me, thanks in advance
    Edited by: 909577 on Apr 9, 2012 3:10 PM

    I'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
    To answer your initial questions, you are correct with both your assumptions:
    1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
    2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
    So in following your instructions, well that's the problem I'm not quite following :)
    1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden?  If so, I've done this.
    2) I'm not quite sure where to use the statement you provided me.  You said to put it in the dataset, but I don't know which dataset.  I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
    as a parameter).  If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties.  I tried this, and it did not generate any errors, but it also kept my report groups from displaying
    -- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
    I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there.  When I did this and ran the report, I would get the following error:
    The 'SchoolDaysActiveWeek' parameter is missing a value
    So what am I missing!? 
    Also, thanks for taking the time to respond!!

  • How to Find the XML Tag in indesign

    HI!!<br /><br />We are working with XML work flow in indesign. In indesign how could we find the XML Tag in indesign.<br /><br />Example::<br />In the Below list we could have to find the xml tag <chapter> in story editor or in the main text frame in indesign using find option. Kindely sent if any Plugins is available.<br /><br />For exmaple:<br />************<br /><book><br /> <part><br /> <chapter><br />  <head><br />   <para><br />    <bold><br /><br />Thanks,<br />C.K.Venkatesan

    I imported the xml file in vb.net. now i want to find the number of pages and no. of elements. i found out it. but i was not able to find which elements are placed in which page. i want that information. plz kindly help. i am using vb.net. for eg. <ce:figure> placed in which page no., <ce:sections> placed in which page no., etc..,

  • How to get the XML TAG name itself instead of TAG value

    Hi All,
    I have a question here
    I want to retrieve the XML tag from a XML file instead of its value.
    Example:
    <item>Colgate</item>
    Now I want to retrieve "item" as output from XPath expression, I dont want its value as "colgate"
    How to do that...?
    Thanks
    -Praveen

    You can do this with an axes XPatch expression:
    child::node()/name()
    For more info see: http://www.w3schools.com/xpath/xpath_axes.asp
    HTH,
    Bas

  • How to add raw HTML tags inside JSF tags...

    Hi
    I would like to use <input type = text > inside my project in some area..The following code hides the input = type html tag and forwards the click event to jsf command button...After selecting the file,it should forward the value to jsf textfield....
    My code seems as below.
    <h:form id="detailForm" onsubmit="printElements(detailForm,this)">
    <f:verbatim>
    <input id="uploadFile" type="file" style ="dispaly:none"size="100" />
    </f:verbatim>
    <h:inputText id="docName" style="width:650px;" maxlength="100"/>
    <h:commandButton id="visibleBrowseButton" value="Select File..." onclick="'detailForm:uploadFile'.click();callClick();">
    </h:commandButton>
    </h:form>
    <script type="text/Javascript">
    function callClick()
    var val = document.detailForm.uploadFile.value;
    document.getElementById('detailForm:docName').value = val;
    </script>
    While running this page it works fine in IE but in Mozilla firefox it troubles me during detailForm:uploadFile'.click().
    I suspect the jsf page cannot able to detect the raw html tag inside jsf tags...Eventhough i tried using inside<f:verbatim> it wont works..
    I would like to know
    1.Whether the code is right,,if the code goes wrong why it got runned in IE not in firefox....
    2.How can raw html tags can be integrated inside JSF tags....

    First of all, why are you ignoring valuable answers about a JSF fileupload component in your previous topic?
    Second, you can just nest raw HTML anywhere in your JSF page. Your problem is rather related to JavaScript. It has completely nothing to do with Java nor JSF. Learn JavaScript -there is a nice tut at w3schools.com- and look for a JavaScript forum if you still stucks. There are ones at webdeveloper.com and dynamicdrive.com.
    The f:verbatim is only required if you was using JSF 1.1 or older, which is not the case. You would have occurred completely different problems.

  • How to filter particular xml tag value using -DBMS_XMLGEN / DBMS_XMLSTORE

    Hi,
    I am using dbms_xmlgen and dbms_xmlstore package to extract xml datafile tag value from file server to oracle database table.
    I have used the below pl/sql program to extract the xml tag values to oracle relational table.Its working fine for me.
    But I would like to extract the values based on particular filter condition.
    The following xml program I have 3 rows I would like extract the xml data based on the following condition .
    Filter condition
    ==============
    the tag <STATE_ABBREVIATION> value shuold be 'CA' and the <CITY> tag value should be Palo_Alto then I will store the ZIPCODE
    ZIP_CODE_EXTN,STATE_ABBREVIATION tag values in the Oracle Relational table.
    The below pl/sql program storing all the three rows but I required the values based on the filter condition that I mentioned earlier.
    Kindly assist me what are the steps that I need to change in this program.?
    XML Program file content.
    ======================
    <ZIPCODES>
    <mappings>
    <STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
    <ZIPCODE>94301</ZIPCODE>
    <ZIP_CODE_EXTN>9277</ZIP_CODE_EXTN>
    <CITY>Palo_Alto</CITY>
    </mappings>
    <mappings>
    <STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
    <ZIPCODE>95302</ZIPCODE>
    <ZIP_CODE_EXTN>9279</ZIP_CODE_EXTN>
    <CITY>LA</CITY>
    </mappings>
    <mappings>
    <STATE_ABBREVIATION>TX</STATE_ABBREVIATION>
    <ZIPCODE>75038</ZIPCODE>
    <ZIP_CODE_EXTN>7837</ZIP_CODE_EXTN>
    <CITY>DALLAS</CITY>
    </mappings>
    </ZIPCODES>
    PL/SQL Program for XML extract.
    ==========
    declare
    charString varchar2(80);
    finalStr varchar2(4000) := null;
    rowsp number;
    insCtx DBMS_XMLStore.ctxType;
    ctx dbms_xmlgen.ctxHandle;
    v_FileHandle UTL_FILE.FILE_TYPE;
    begin
    v_FileHandle := utl_file.fopen('XMLTEST','XML_NEW_CITIES.XML','r') ;
    loop
    BEGIN
    utl_file.get_line(v_FileHandle, charString);
    exception
    when no_data_found then
    utl_file.fclose(v_FileHandle);
    exit;
    END;
    dbms_output.put_line(charString);
    if finalStr is not null then
    finalStr := finalStr || charString;
    else
    finalStr := charString;
    end if;
    end loop;
    insCtx := DBMS_XMLStore.newContext('SYS.ZIPCODES');
    dbms_xmlgen.setRowsetTag(insCtx,'ZIPCODES');
    dbms_xmlgen.setRowsetTag(insCtx,'mappings');
    DBMS_XMLStore.clearUpdateColumnList(insCtx);
    DBMS_XMLStore.setUpdateColumn(insCtx,'ZIPCODE');
    DBMS_XMLStore.setUpdateColumn(insCtx,'ZIP_CODE_EXT N');
    DBMS_XMLStore.setUpdateColumn(insCtx,'STATE_ABBREV IATION');
    rowsp := dbms_xmlstore.insertXML(insCtx,finalstr);
    end;
    Thanks,
    nat

    Thanks for your reply. :)
    Its working fine in the DBMS_XMLSTORE package. Here I have given the code
    CREATE OR REPLACE TYPE typ_dummy AS  OBJECT
    ( "@ENO"   NUMBER,
      "@ENAME" VARCHAR2(100),
      eno      NUMBER,
      ename    VARCHAR2(100));
    CREATE TABLE EMP
      empno    VARCHAR2(25),
      sal      NUMBER,
      hiredate DATE,
      typ      TYP_DUMMY
    DECLARE
      insCtx DBMS_XMLStore.ctxType;
      rows NUMBER;
      xmldoc CLOB :=
        '<ROWSET>
           <ROW num="1">
             <SAL>1800</SAL>
             <EMPNO>739</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
               <TYP ENO="739" ENAME="Nazurullah">
               <ENO> 1 </ENO>
               <ENAME> ALDRIN </ENAME>
               </TYP>
           </ROW>
           <ROW>
             <SAL>18000</SAL>
             <EMPNO>7369</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
             <TYP ENO="7369" ENAME="PEPPIN" />
           </ROW>
           <ROW>
             <SAL>37000</SAL>
             <EMPNO>20701</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
             <TYP>
               <ENO> 20701 </ENO>
               <ENAME> VENKATACHALAM </ENAME>
             </TYP>
           </ROW>
         </ROWSET>';
    BEGIN
      insCtx := DBMS_XMLStore.newContext('emp'); -- get saved context
      -- Now insert the doc.
      -- This will only insert into EMPNO, SAL and HIREDATE columns
      rows := DBMS_XMLStore.insertXML(insCtx, xmlDoc);
      -- Close the context
      DBMS_XMLStore.closeContext(insCtx);
    END;
    SELECT * FROM emp;
    EMPNO        SAL HIREDATE          TYP(@ENO, @ENAME, ENO, ENAME)
    739         1800 27-AUG-96     TYP_DUMMY(739, 'Nazurullah', 1, ' ALDRIN ')
    7369       18000 27-AUG-96     TYP_DUMMY(7369, 'PEPPIN', NULL, NULL)
    20701      37000 27-AUG-96     TYP_DUMMY(NULL, NULL, 20701, ' VENKATACHALAM ')

  • How to get all xml tags in a text frame?

    I want to get all the xml tags of the text in a text frame. I had tried the following methods but always get the tag binding the frame itself. <br /><br />1) XMLReference objXMLRef = Utils<IXMLUtils>()->QueryXMLReferenceData(textModel, 1);<br /><br />2) XMLReference objXMLRef = Utils<IXMLUtils>()->GetStoryThreadXMLReference(textModel, textIndex);<br /><br />Thanks in advance.

    I would think if you intanciate the XMLReference and use IIDXMLElement GetChildCount / GetNthChild would do what you are looking for.
    Ian

  • Insert XML Tags in BPEL Email body

    Hi All,
    in one of bpel process we are inserting Xml message in the email body. but in the email all message is coming without start and end tags.
    lets say my xml meaasage is *<name>test</name>*
    the output iam getting in the mail is test
    we cannot use mime type 'text/plain',bcz we are inserting this xml message in html template.
    is there any way to send xml message in the email body?
    Any help would be appreciate...
    Thanks,
    Sudhakar.m

    Hi
    Thanks for the reply.
    Currently we are using same way as you mentioned ,that still not working.the mail is coming without xml tags.
    is there any workaround for this issue??
    Regards,
    Sudhakar.M

  • How do i parse XML tags specific to a particular parent tag ?

    Hi,This the XML i have to parse.
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml version="1.0" encoding="UTF-8"?>
    <Air_MultiAvailabilityReply
         xmlns="http://xml.amadeus.com/SATRSP_07_1_1A">
         <messageActionDetails>
              <functionDetails>
                   <businessFunction>1</businessFunction>
                   <actionCode>45</actionCode>
              </functionDetails>
              <responseType>3</responseType>
         </messageActionDetails>
         <singleCityPairInfo>
              <locationDetails>
                   <origin>BOM</origin>
                   <destination>GOI</destination>
              </locationDetails>
              <cityPairFreeFlowText>
                   <freeTextQualification>
                        <codedIndicator>4</codedIndicator>
                        <typeOfInfo>50</typeOfInfo>
                   </freeTextQualification>
                   <freeText>
                        **-AMADEUS AVAILABILITY - AN ** 164 TH 31DEC 0000
                   </freeText>
              </cityPairFreeFlowText>
              <cityPairFreeFlowText>
                   <freeTextQualification>
                        <codedIndicator>4</codedIndicator>
                        <typeOfInfo>OFD</typeOfInfo>
                   </freeTextQualification>
                   <freeText>GOI GOA.IN</freeText>
              </cityPairFreeFlowText>
              <flightInfo>
                   <basicFlightInfo>
                        <flightDetails>
                             <departureDate>311209</departureDate>
                             <departureTime>0500</departureTime>
                             <arrivalDate>311209</arrivalDate>
                             <arrivalTime>0600</arrivalTime>
                        </flightDetails>
                        <departureLocation>
                             <cityAirport>BOM</cityAirport>
                        </departureLocation>
                        <arrivalLocation>
                             <cityAirport>GOI</cityAirport>
                        </arrivalLocation>
                        <marketingCompany>
                             <identifier>IT</identifier>
                        </marketingCompany>
                        <flightIdentification>
                             <number>3131</number>
                        </flightIdentification>
                        <productTypeDetail>
                             <productIndicators>D</productIndicators>
                             <productIndicators>702</productIndicators>
                             <productIndicators>ET</productIndicators>
                        </productTypeDetail>
                        <lineItemNumber>1</lineItemNumber>
                   </basicFlightInfo>
                   +<infoOnClasses>+
                        <productClassDetail>
                             <serviceClass>Y</serviceClass>
                             <availabilityStatus>9</availabilityStatus>
                        </productClassDetail>
                   </infoOnClasses>
                   <additionalFlightInfo>
                        <flightDetails>
                             <typeOfAircraft>321</typeOfAircraft>
                             <numberOfStops>0</numberOfStops>
                             <legDuration>0100</legDuration>
                        </flightDetails>
                        <departureStation>
                             <terminal>1</terminal>
                        </departureStation>
                        <productFacilities>
                             <type>1A</type>
                        </productFacilities>
                        <productFacilities>
                             <type>DA</type>
                        </productFacilities>
                        <productFacilities>
                             <type>LSA</type>
                        </productFacilities>
                   </additionalFlightInfo>
              </flightInfo>
              <flightInfo>
                   <basicFlightInfo>
                        <flightDetails>
                             <departureDate>311209</departureDate>
                             <departureTime>0520</departureTime>
                             <arrivalDate>311209</arrivalDate>
                             <arrivalTime>0620</arrivalTime>
                        </flightDetails>
                        <departureLocation>
                             <cityAirport>BOM</cityAirport>
                        </departureLocation>
                        <arrivalLocation>
                             <cityAirport>GOI</cityAirport>
                        </arrivalLocation>
                        <marketingCompany>
                             <identifier>IC</identifier>
                        </marketingCompany>
                        <flightIdentification>
                             <number>663</number>
                        </flightIdentification>
                        <productTypeDetail>
                             <productIndicators>D</productIndicators>
                             <productIndicators>ET</productIndicators>
                        </productTypeDetail>
                        <lineItemNumber>2</lineItemNumber>
                   </basicFlightInfo>
                   <infoOnClasses>
                        <productClassDetail>
                             <serviceClass>N</serviceClass>
                             <availabilityStatus>4</availabilityStatus>
                        </productClassDetail>
                   </infoOnClasses>
                   <infoOnClasses>
                        <productClassDetail>
                             <serviceClass>H</serviceClass>
                             <availabilityStatus>4</availabilityStatus>
                        </productClassDetail>
                   </infoOnClasses>
                   <additionalFlightInfo>
                        <flightDetails>
                             <typeOfAircraft>321</typeOfAircraft>
                             <numberOfStops>0</numberOfStops>
                             <legDuration>0100</legDuration>
                        </flightDetails>
                        <departureStation>
                             <terminal>1</terminal>
                        </departureStation>
                        <productFacilities>
                             <type>1A</type>
                        </productFacilities>
                        <productFacilities>
                             <type>DA</type>
                        </productFacilities>
                        <productFacilities>
                             <type>M</type>
                        </productFacilities>
                   </additionalFlightInfo>
              </flightInfo>
         </singleCityPairInfo>
    </Air_MultiAvailabilityReply><flightinfo> is the tag containing information about one airline result.I have created beans containing information about each of the tag referrring to the airline.Now the issue i face is how do i store the information contained in <infoOnClasses> which is specific to each <flightinfo> tag.I have created a bean which has two parameters classtype and number of seats.
    I am using dom for parsing elements.One of my parsing helper method is this :
    private static String getTextValue(Element ele, String tagName) {
              String textVal = null;
              NodeList nl = ele.getElementsByTagName(tagName);
              if(nl != null && nl.getLength() > 0) {
                   Element el = (Element)nl.item(0);
                   textVal = el.getFirstChild().getNodeValue();
              return textVal;
         In the above XML,i have created 2 beans which contains information contained in the 2 <flightinfo> tags and only part missing is how do i create the class information bean specific to each of the <flightinfo> tags.
    Please let me know if any i have missed something.
    Thank you for your consideration.

    punter wrote:
    How do I store the information contained in <infoOnClasses> which is specific to each <flightinfo> tag?Huh? No it isn't. An infoOnClasses element contains a productClassDetail which has a serviceClass and an availabilityStatus. This structure is consistent.
    So where exactly does the "specific to each <flightinfo> tag" come in? Or do you mean that each infoOnClasses belongs to a flightinfo? If so then your flightinfo "bean" would have an attribute which is a List of infoOnClasses beans.
    And you do not, if you can avoid it, hand code XML binders any more... Have a look at XMLBeans (or similar).
    Cheers. Keith.

  • How to add parent XML tag in ID CS5

    Hi,
    I have the following xml structrure in the InDesign cs5 document.
         <para>
              <link>
                    <insert>
    I want to add <xref> tag within this structure as parent to <insert>, like below:
         <para>
              <link>
                    <xref>
                        <insert>
    can anybody help me on this.
    Thanks,
    Krishnan

    Hi,
    First Select <insert> tag,
    var parentTagName = app.selection[0].associatedXMLElements[0].markupTag.name;
            if(parentTagName.toString() == "insert"){
                app.selection[0].associatedXMLElements[0].xmlElements.add("xref", app.selection[0]);
    Regards,
    Bala.

  • How to turn off XML tag when outputting xml nodes?

    I'm outputting some xml data and each time ColdFusion adds the <?xml version="1.0" encoding="UTF-8"?> tag. Is there any way to turn this off?

    It's difficult to tell what are are doing and how best to remedy it without you giving us at least some idea what your code looks like.
    Adam

  • How to send in xml tag a ESCAPE CONTROL ( chr27 )

    Hi,
    For a Check Printing custom (R12), I need to send to a matrix dot printer a xml file containing a "ESC J;" every 56 rows.
    The template that I'm using is an e-Text type.
    1) Does anybody know how I can write this ESCAPE CONTROL in e-Text?
    2) Does anybody know why the xml parser gets error when I create a new tag with the value of chr(27) in the iby hook package (IBY_FD_EXTRACT_EXT_PUB).?
    I do
    l_escape := CHR(27);
    SELECT XMLConcat(XMLElement("Extend",
    XMLElement("XX_ControlPageESC",l_escape) )
    INTO l_ins_ext_agg
    FROM dual;
    Thankss a lot!!
    Valeria

    Hi Valeria,
    I've also tried getting escape characters into ETEXT and failed.
    I think a better option is to create a new printer driver SRW file with pagebreak declared as char 27 every 56 rows, and use that to print to your printer.
    Regards,
    Gareth
    http://garethroberts.blogspot.com
    http://www.virtuate.com

  • How to generate blank xml tag when encounter null elements in it

    Hi Gurus,
    Iam facing one issue in generating the blank tag, here is my file which I am generating right now
    <HEADER>
        <MINISTRY_CODE>RPO</MINISTRY_CODE>
        <DEPARTMENT_CODE>000</DEPARTMENT_CODE>
        <ORDER_CODE>RPO000EPO11001002</ORDER_CODE>
        <EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
        <AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
        <VARIATION_NUMBER>0</VARIATION_NUMBER>
        <EXCEPTIONS>
          <EXCEPTION>
            <EXCEPTION_CODE>PO016</EXCEPTION_CODE>
            <EXCEPTION_LONG_DESC>PO cannot be created/amended successfully</EXCEPTION_LONG_DESC>
          </EXCEPTION>
        </EXCEPTIONS>
      </HEADER>
      <ITEMS>
        <ITEM>
          <LINE_NUMBER>1</LINE_NUMBER>
          <EXCEPTIONS>
            <EXCEPTION>
              <EXCEPTION_CODE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
              <EXCEPTION_LONG_DESC xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
            </EXCEPTION>
          </EXCEPTIONS>
          <LOCATIONS>
            <LOCATION>
              <LINE_NUMBER>1</LINE_NUMBER>
              <EXCEPTIONS>
                <EXCEPTION>
                  <EXCEPTION_CODE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                  <EXCEPTION_LONG_DESC xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                </EXCEPTION>
              </EXCEPTIONS>
              <DISTRIBUTIONS>
                <DISTRIBUTION>
                  <LINE_NUMBER>1</LINE_NUMBER>
                  <EXCEPTIONS>
                    <EXCEPTION>
                      <EXCEPTION_CODE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                      <EXCEPTION_LONG_DESC xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    </EXCEPTION>
                  </EXCEPTIONS>
                </DISTRIBUTION>
              </DISTRIBUTIONS>
            </LOCATION>
          </LOCATIONS>
        </ITEM>
      </ITEMS>
    </GEBIZ_ORDER_ACK>current I am generating EXCEPTION tag even if it is null like
    <EXCEPTIONS>
    <EXCEPTION>
    <EXCEPTION_CODE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
    <EXCEPTION_LONG_DESC xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
    </EXCEPTION>
    </EXCEPTIONS>
    but my requirement is not generate them when exception code is null and only generate like
    <EXCEPTIONS/>
    this is sql i am using to generate the above said code let me know how can i control that
                       SELECT xmlserialize(document
                                  xmlelement("GEBIZ_ORDER_ACK"
                                  , xmlagg(
                                      xmlconcat(hdr, dtls)
                                  as clob indent size = 2
                       --  INTO lv_out
                         FROM (
                               SELECT xmlelement("HEADER"
                                           , xmlelement("MINISTRY_CODE", poh.ministry_code)
                                           , xmlelement("EXCEPTIONS"
                                                 , xmlelement("EXCEPTION"
                                                             , xmlelement("EXCEPTION_CODE"   --,NVL(poh.exception_code,'NULL')
                                                             , xmlattributes(
                                                               NVL2(poh.exception_code,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
                                                             , NVL2(poh.exception_code,null,'true') as "xsi:nil"
                                                             ,poh.exception_code)
                                                             , xmlelement("EXCEPTION_LONG_DESC"
                                                             , xmlattributes(
                                                               NVL2(poh.exception_long_desc,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
                                                             , NVL2(poh.exception_long_desc,null,'true') as "xsi:nil"
                                                             ,poh.exception_long_desc)
                                           ) hdr
                                     , xmlelement("ITEMS"
                                     , xmlagg(
                                              xmlelement("ITEM"
                                               ,xmlelement("LINE_NUMBER", v1.line_no)
                                               ,xmlelement("EXCEPTIONS"
                                                        , xmlelement("EXCEPTION"
                                                                    , xmlelement("EXCEPTION_CODE"    --,NVL(v1.exception_code,'NULL')
                                                                    , xmlattributes(
                                                                      NVL2(v1.exception_code,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
                                                                    , NVL2(v1.exception_code,null,'true') as "xsi:nil"
                                                                    , v1.exception_code)
                                                                    , xmlelement("EXCEPTION_LONG_DESC"
                                                                    , xmlattributes(
                                                                      NVL2(v1.exception_long_desc,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
                                                                    , NVL2(v1.exception_long_desc,null,'true') as "xsi:nil"
                                                                    ,v1.exception_long_desc)
                                               ,xmlelement("LOCATIONS"
                                               ,( SELECT xmlagg(
                                                          xmlelement("LOCATION"
                                                        , xmlelement("LINE_NUMBER",v2.location_line_no)
                                                        , xmlelement("EXCEPTIONS"
                                                        , xmlelement("EXCEPTION"
                                                        , xmlelement("EXCEPTION_CODE"   --,NVL(v2.exception_code,'NULL')
                                                        , xmlattributes(
                                                          NVL2(v2.exception_code,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
                                                        , NVL2(v2.exception_code,null,'true') as "xsi:nil"
                                                        , v2.exception_code)
                                                        , xmlelement("EXCEPTION_LONG_DESC"
                                                        , xmlattributes(
                                                          NVL2(v2.exception_long_desc,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
                                                        , NVL2(v2.exception_long_desc,null,'true') as "xsi:nil"
                                                        ,v2.exception_long_desc)
                                               ,xmlelement("DISTRIBUTIONS"
                                               ,(SELECT xmlagg
                                                 (       xmlelement("DISTRIBUTION"
                                                         ,xmlelement("LINE_NUMBER", v3.distribution_line_no)
                                                         ,xmlelement("EXCEPTIONS"
                                                         , xmlelement("EXCEPTION"
                                                         , xmlelement("EXCEPTION_CODE"--,NVL(v3.exception_code,'NULL')
                                                         , xmlattributes(
                                                           NVL2(v3.exception_code,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
                                                         , NVL2(v3.exception_code,null,'true') as "xsi:nil"
                                                         ,v3.exception_code)
                                                         , xmlelement("EXCEPTION_LONG_DESC"
                                                         , xmlattributes(
                                                           NVL2(v3.exception_long_desc,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
                                                         , NVL2(v3.exception_long_desc,null,'true') as "xsi:nil"
                                                        ,v3.exception_long_desc)
                                                          ) ORDER BY v3.distribution_line_no
                                                       ) FROM xgbz_fin_stage_ack_pot_v@dev_1157.RP.EDU.SG v3
                                                        WHERE v2.po_cont_code = v3.po_cont_code
                                                          AND v2.line_no = v3.line_no
                                                          AND v2.location_line_no = v3.location_line_no
                                                          AND v2.fs_timestamp = v3.fs_timestamp
                                                          AND v3.tx_timestamp IS  NULL
                                                 ) ORDER BY v2.location_line_no
                                              ) FROM xgbz_fin_stage_ack_pol_v@dev_1157.RP.EDU.SG v2
                                               WHERE v2.line_no = v1.line_no
                                                 AND v2.po_cont_code = v1.po_cont_code
                                                 AND v2.fs_timestamp = v1.fs_timestamp
                                                 AND v2.TX_TIMESTAMP IS NULL
                             ) ORDER BY v1.line_no
                         ) dtls
                    FROM xgbz_fin_stage_ack_poh_v@dev_1157.rp.edu.sg poh,
                         xgbz_fin_stage_ack_pod_v@dev_1157.rp.edu.sg v1
                   WHERE v1.po_cont_code = poh.po_cont_code
                     AND v1.fs_timestamp = poh.fs_timestamp
                     AND v1.tx_timestamp IS NULL
                     AND poh.tx_timestamp IS NULL
                     AND poh.po_cont_code = rec_po_ack.po_cont_code
                   GROUP BY poh.po_cont_code,poh.ext_system_code,poh.amendment_no,poh.variation_no,poh.exception_code,poh.exception_long_desc,
                            poh.ministry_code, poh.dept_code)This is urgent please help in this regard.
    thanks in advance.
    Regards
    Nagendra

    Hi,
    Here are two possible solutions :
    xmlelement("EXCEPTIONS",
      xmlforest(
        xmlforest(
          v1.exception_code as "EXCEPTION_CODE"
        , v1.exception_long_desc as "EXCEPTION_LONG_DESC"
        ) as "EXCEPTION"
    )or,
    xmlelement("EXCEPTIONS",
      case when v1.exception_code is not null
             or v1.exception_long_desc is not null
        then xmlelement("EXCEPTION",
               xmlforest(
                 v1.exception_code as "EXCEPTION_CODE"
               , v1.exception_long_desc as "EXCEPTION_LONG_DESC"
      end
    )

Maybe you are looking for

  • Error while creating Ear File for project Containing (WAR+MAR) in jdev

    hi, I am trying to deploy my adf application containing MDS customization.While creating EAR from application properties--->deploy--->deploye to EAR i am getting following error. Wrote MAR file to C:\JDeveloper\mywork\MDSApp\deploy\AutoGeneratedMar.m

  • Receiver JMS adapter issue in PI 7.1

    Hi All, We are using JMS receiver adapter for one of our scenarios. I'm facing different type of issue in production system Issues: If the channel is functioning the messages are successfully delivering to end system. If there are NO messages for lon

  • How to add a custom attribute to an entry?

    I need to store a person's social security number in the directory. I haven't found any appropriate standard attribute for such purpose (is there any?), so I decided to create a new one. I've written a method: public void setAttribute(String entryDN,

  • Xcelius 4.0 Professional Activation problem

    I installed Xcelius 4.0 Professional 1 year ago, no problem occured. But today it jumps out a window asking me to activate it. I try to do according it's wizard but I was told "Activation key is not valid". It's strange because I successfuflly activa

  • Class not found error when using javah

    Im just trying to create a simple hello world program using jni however I already got stuck trying to create the c header file when I run the javah program. It keeps telling that the class is not found but the class is in the local directory. Should