XML encoding "UTF-8" ignored

HI all,
we try to post an XML message (cXML invoice) to a receiver but it doesn´t work.
We use a communication channel "http-destination" where we configure content-type "text/xml" together with XML encoding "UTF-8".
The configured URL works fine and can be tested in SM59.
The XML payload itself has a declaration <?xml version="1.0" encoding="UTF-8"?>
but the strange thing that happens is that all these declarations are being ignored and instead US-ASCII is used. Which leads to an error due to some special german characters within the contents of the XML (e.g. ä, ö, etc.).
Does anybody of you know how I can achieve that the pre-set UTF-8 will be used as encoding type???
Many thanky in advance!
Willi Wuerstlin

Hi.
I am trying to map the standard cXML invoice to SAP's standard idoc INVOIC01 - This is how the file looks like
<?xml version="1.0" ?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.014/InvoiceDetail.dtd">
<cXML version="" payloadID="2008-07-29T04:51:08-06:00.cXML.TEST4101V002" timestamp="2008-07-29T04:51:08-06:00" xml:lang="en-US">
     <Header>...</Header>
...</cxml>
I am having problem with the line <!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.014/InvoiceDetail.dtd"> - when the payload is having this line XI is not accepting the message.
Please let me know how to address this.
Thanks.

Similar Messages

  • DMEE: XML Encoding UTF-8/UTF-16

    Hi,
    I'm generating automatic payment files via program run SAPFPAYM_SCHEDULE.
    The file is generated under UTF-8 but when generated on SAP server become UTF-16.
    => When double clicking on the Z_XML20022 and clicking on glasses you can see "<?xml version="1.0"
    encoding="utf-8"?>"
    => When you have a look under AL11
    /interfaces_sec/DECCLNT300/FI_payment_SAP032/out/PSAPCIT.PAYMENT_CN10_1. it's <?xml version="1.0"
    encoding="utf-16"?>
    I need to have utf-8.
    Thanks in advance for your help.

    Hi,
    If you using XSLT, you may use this transformation (based on your XML example, but simplified):
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
          xmlns:sap="http://www.sap.com/sapxsl"
          xmlns:am="http://www.xxx.com/ActionMessage"
          version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:output encoding="utf-8"/>
         "your rest XML data"
    </xsl:transform>
    PS: I advise you to read the Note 1017101 - Encoding Problems with ABAP XML Processing, which explains better what I said above.

  • XML encoding UTF-8 and accents

    hello everybody !
    a little problem with my xml file,
    ===========
    <?xml version="1.0" encoding="UTF-8"?>
    <videoData>
    <video1
           thumbtitle = "Soirs de fêtes - défilé de mode"     
           buffTime = "2"
           header = "my description"
           >flv/video1.flv</video1>
    </videoData>
    ===========
    my problem : no accent appears in my flash, and the result is : Soirs de ftes - dfil de mode
    I read a lot of articles on different forums regarding the good encoding, it seems that <?xml version="1.0" encoding="UTF-8"?> is the good one
    so I don't understand what is wrong.
    I also use .txt file in other part of my website in flash, and I also have the same problem
    I suppose it is in the actionscript I must write something :
    ===========
    myLoadVars = new LoadVars();
    myLoadVars.onLoad = function() {
    myText.htmlText = myLoadVars.myHTMLdata;
    myLoadVars.load("page1Text.txt");
    ============
    Can somebody help me ?
    thanks in advance for your help
    Françoise

    Hi.
    I am trying to map the standard cXML invoice to SAP's standard idoc INVOIC01 - This is how the file looks like
    <?xml version="1.0" ?>
    <!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.014/InvoiceDetail.dtd">
    <cXML version="" payloadID="2008-07-29T04:51:08-06:00.cXML.TEST4101V002" timestamp="2008-07-29T04:51:08-06:00" xml:lang="en-US">
         <Header>...</Header>
    ...</cxml>
    I am having problem with the line <!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.014/InvoiceDetail.dtd"> - when the payload is having this line XI is not accepting the message.
    Please let me know how to address this.
    Thanks.

  • Remove ?xml version="1.0" encoding="UTF-8"?   from XML doc

    I have generated an XML file using javax XML transformer. In the XML file thats generated I have the version and the encoding line
    <?xml version="1.0" encoding="UTF-8"?>
    which is automatically generated in my XML file. Is there any way that I can avoid that from the XML file thats generated.
    Here is the transformer that I have used.
    public static void printToXML(String fileName){
               try{
                    File file = new File(fileName);
                    Transformer tr = TransformerFactory.newInstance().newTransformer();
                    tr.setOutputProperty(OutputKeys.INDENT, "yes");
                    tr.setOutputProperty(OutputKeys.METHOD,"xml");
                    tr.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "3");
                    tr.transform( new DOMSource(dom),new StreamResult(new FileWriter(file)));
               }catch(TransformerConfigurationException tcex){
                    logger.info("TransformerConfigurationException at printToXML method in CSVtoXML.java");
                    logger.error("TransformerConfigurationException", tcex);
               }catch(TransformerException tex){
                    logger.info("TransformerException at printToXML method in CSVtoXML.java");
                    logger.error("TransformerException", tex);
               }catch(IOException ioex){
                    logger.info("IOException at printToXML method in CSVtoXML.java");
                    logger.error("IOException", ioex);
          }

    Well, it is a pretty important line. Why do you need it removed? Anything that really processes XML knows how to read it and determine what encoding was used. That is vital, if you look at the number of questions posted here about foreign language text in XML. If you really have a text processsor that knows how to open a file called something.xml, and knows how to process or ignore most of the pointy bracket things, but not this one, it is time to fix it.
    Dave Patterson

  • Append messages with out header tag " ?xml version="1.0" encoding="UTF-8"?

    Hi all,
    I am doing file to file scenario.When I use APPEND in the File adapter it is also adding <?xml version="1.0" encoding="UTF-8" ?>
    I need to send a file for every 10 minutes consolidate all files and send at the end of the day.
    <?xml version="1.0" encoding="UTF-8" ?>
    <ID>31154</ID>
    The next time when i send the file with different< ID>31155</ID>
    it should append ignoring <?xml version="1.0" encoding="UTF-8" ?>
    The consolidated file must look like this...
    <?xml version="1.0" encoding="UTF-8" ?>
    <ID>31154</ID>
    < ID>31155</ID>
    Thanks ,
    Srinivas

    Hey
    as pointed out by everyone else,there is no straight way for this,one thing u can do is that create two separate scenarios.
    in first scenario use content conversion on receiver side and keep on appending the text for 10 mins (guess this is ur pooling interval),now since ur using FCC u wont get <?xml version="1.0" encoding="UTF-8" ?>,you will get a flat file on receiver side.
    after 10 mins u can have one more scenario which picks up this flat file and this time use FCC on sender side so that it will convert this flat file to XML,in this way you will get <?xml version="1.0" encoding="UTF-8" ?> only once.
    hope this solves ur problem.
    just make sure that you specify correct polling intervals for both the scenarios.
    thanx
    ahmad

  • Why ' ?xml version="1.0" encoding="UTF-8"? ' is not appearing in XML ( 9.2)

    Hi,
    I am using following SQL query to generate output from XML
    select
    XMLTYPE
    ('<?xml version="1.0" encoding="UTF-8"?>'||
    xmlelement("bank",
    XMLATTRIBUTES('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",
    'http://www.XXXX.xsd' AS "xsi:nonamespaceSchemaLocation" ),
    xmlelement("Transaction",
    xmlforest(
    intraday "MessageCode",
    actnum "ToAccountNo",
    v00090 "ToBranchCode",
    v00230 "CurrencyCode",
    amt "Amount",
    trandt "TransactionDate",
    valuedt "ValueDate"),
    xmlelement("CustomerRefNo",
    xmlforest(
    utr_number "ReferenceNo1",
    ref1 "ReferenceNo2",
    ref2 "Custtype",
    r1 "SequenceNo"
    x1
    from
    It is working fine but '<?xml version="1.0" encoding="UTF-8"?>' it is not coming as header of output My output is coming like
    <bank xmlns:xsi="http://www.w3.org/2001/XMLSchema" xsi:nonamespaceSchemaLocation="http://www.XXXX.xsd">
    <Transaction>
    <MessageCode>0100</MessageCode>
    <ToAccountNo>012340123456</ToAccountNo>
    <ToBranchCode>01234</ToBranchCode>
    <CurrencyCode>INR</CurrencyCode>
    <Amount>11.00</Amount>
    <TransactionDate>2007-01-15T17:54:31</TransactionDate>
    <ValueDate>2007-01-15</ValueDate>
    Kindly help.
    PJP

    Try using the XMLRoot function.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#sthref1566

  • XML encoding to UTF-8 charset - Oracle 9i

    Hi Masters
    Database Version : 9i
    Can you please help me here.. I am in a process of writing an Inventory Adjustment tool that will generate the XML and encode it to utf-8 charset…
    I have successfully written the code to generate the XML in this format
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <InvAdjustDesc>
    <dc_dest_id>323</dc_dest_id>
    <InvAdjustDtl>
    <item_id>12345678</item_id>
    <adjustment_reason_code>383</adjustment_reason_code>
    <unit_qty>4</unit_qty>
    <from_disposition>ATS</from_disposition>
    <to_disposition/>
    <user_id>e7062159</user_id>
    <create_date>
    <year>2012</year>
    <month>10</month>
    <day>29</day>
    <hour>14</hour>
    <minute>59</minute>
    <second>25</second>
    </create_date>
    <ww_liability_code>353</ww_liability_code>
    <ww_ref_1/>
    <ww_ref_2/>
    <ww_tran_id>25863399875</ww_tran_id>
    <ww_alloc_no/>
    <ww_final_store>353</ww_final_store>
    </InvAdjustDtl>
    </InvAdjustDesc>
    And now as part of the AIT requirement this XML needs to be encoded to utf-8 and look like this
    <?xml version="1.0" encoding="UTF-8"?><RibMessages><ribMessage><family>InvAdjust</family><type>INVADJUSTCRE</type><id>54601557</id><ribmessageID>3</ribmessageID><publishTime>2012-10-29 15:03:12.000 SAST</publishTime><messageData>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot; ?&gt;&lt;InvAdjustDesc&gt;&lt;dc_dest_id&gt;323&lt;/dc_dest_id&gt;&lt;InvAdjustDtl&gt;&lt;item_id&gt;12345678&lt;/item_id&gt;&lt;adjustment_reason_code&gt;383&lt;/adjustment_reason_code&gt;&lt;unit_qty&gt;4&lt;/unit_qty&gt;&lt;from_disposition&gt;ATS&lt;/from_disposition&gt;&lt;to_disposition/&gt;&lt;user_id&gt;e7062159&lt;/user_id&gt;&lt;create_date&gt;&lt;year&gt;2012&lt;/year&gt;&lt;month&gt;10&lt;/month&gt;&lt;day&gt;29&lt;/day&gt;&lt;hour&gt;14&lt;/hour&gt;&lt;minute&gt;59&lt;/minute&gt;&lt;second&gt;25&lt;/second&gt;&lt;/create_date&gt;&lt;ww_liability_code&gt;353&lt;/ww_liability_code&gt;&lt;ww_ref_1/&gt;&lt;ww_ref_2/&gt;&lt;ww_tran_id&gt;25863399875&lt;/ww_tran_id&gt;&lt;ww_alloc_no/&gt;&lt;ww_final_store&gt;353&lt;/ww_final_store&gt;&lt;/InvAdjustDtl&gt;&lt;/InvAdjustDesc&gt;</messageData><customFlag>F</customFlag></ribMessage></RibMessages>
    I am not quite familiar with xml encoding do you have any suggestion on how i can accomplish this?
    Thanks

    Hi Odie
    I found a way of writing the encoded xml thanks for your help my man, much appreciated...
    But now can you help me here this xml I am generating needs to be like the one at the bottom...
    Here is my SQL I am using....
    SELECT XMLELEMENT
    ("InvAdjustDesc"
    ,XMLFOREST
    (inv.dc_dest_id AS "dc_dest_id"
    ,XMLFOREST
    (NVL(inv.item_id, ' ') AS "item_id"
    ,NVL(inv.adjustment_reason_code, ' ') AS "adjustment_reason_code"
    ,NVL(inv.unit_qty, 0) AS "unit_qty"
    ,NVL(inv.from_disposition, ' ') AS "from_disposition"
    ,NVL(inv.to_disposition, ' ') AS "to_disposition"
    ,NVL(inv.user_id, ' ') AS "user_id"
    ,XMLFOREST(TO_CHAR(SYSDATE, 'yyyy') AS "year"
    ,TO_CHAR(SYSDATE, 'mm') AS "month"
    ,TO_CHAR(SYSDATE, 'dd') AS "day"
    ,TO_CHAR(SYSDATE, 'hh') AS "hour"
    ,TO_CHAR(SYSDATE, 'mi') AS "minute"
    ,TO_CHAR(SYSDATE, 'ss') AS "second"
    ) AS create_date
    ,NVL(inv.ww_liability_code, ' ') AS "ww_liability_code"
    ,NVL(inv.ww_ref_1, ' ') AS "ww_ref_1"
    ,NVL(inv.ww_ref_2, ' ') AS "ww_ref_2"
    ,NVL(inv.ww_tran_id, ' ') AS "ww_tran_id"
    ,NVL(inv.ww_alloc_no, ' ') AS "ww_alloc_no"
    ,NVL(inv.ww_final_store, ' ') AS "ww_final_store"
    ) AS InvAdjustDtl)) AS InvAdjustDesc
    FROM invadjust inv
    WHERE inv.dc_dest_id = 342
    and rownum <= 3;
    I need to have a leading <InvAdjustDesc> with a node <dc_dest_id> with repeating <InvAdjustDtl>
    I did try to put XMLAGG to group all of my <InvAdjustDtl> nodes but the output I get is two entries of <InvAdjustDtl> as follows
    <InvAdjustDesc>
    <dc_dest_id>323</dc_dest_id>
    <INVADJUSTDTL>
    <InvAdjustDtl>
    <item_id>20144791</item_id>
    <adjustment_reason_code>6</adjustment_reason_code>
    <unit_qty>-4</unit_qty>
    <from_disposition>ATS</from_disposition>
    <to_disposition />
    <user_id>r7052891</user_id>
    <CREATE_DATE>
    <year>2012</year>
    <month>10</month>
    <day>31</day>
    <hour>10</hour>
    <minute>15</minute>
    <second>44</second>
    </CREATE_DATE>
    <ww_liability_code>342</ww_liability_code>
    <ww_ref_1 />
    <ww_ref_2 />
    <ww_tran_id>342021751178</ww_tran_id>
    <ww_alloc_no />
    <ww_final_store>342</ww_final_store>
    </InvAdjustDtl>
    <InvAdjustDtl>
    <item_id>6009173222220</item_id>
    <adjustment_reason_code>6</adjustment_reason_code>
    <unit_qty>-1</unit_qty>
    <from_disposition>ATS</from_disposition>
    <to_disposition />
    <user_id>r7052891</user_id>
    <CREATE_DATE>
    <year>2012</year>
    <month>10</month>
    <day>31</day>
    <hour>10</hour>
    <minute>15</minute>
    <second>44</second>
    </CREATE_DATE>
    <ww_liability_code>342</ww_liability_code>
    <ww_ref_1 />
    <ww_ref_2 />
    <ww_tran_id>342021751179</ww_tran_id>
    <ww_alloc_no />
    <ww_final_store>342</ww_final_store>
    </InvAdjustDtl>
    <InvAdjustDtl>
    <item_id>2034180000008</item_id>
    <adjustment_reason_code>6</adjustment_reason_code>
    <unit_qty>-1</unit_qty>
    <from_disposition>ATS</from_disposition>
    <to_disposition />
    <user_id>r7052891</user_id>
    <CREATE_DATE>
    <year>2012</year>
    <month>10</month>
    <day>31</day>
    <hour>10</hour>
    <minute>15</minute>
    <second>44</second>
    </CREATE_DATE>
    <ww_liability_code>342</ww_liability_code>
    <ww_ref_1 />
    <ww_ref_2 />
    <ww_tran_id>342021751180</ww_tran_id>
    <ww_alloc_no />
    <ww_final_store>342</ww_final_store>
    </InvAdjustDtl>
    </INVADJUSTDTL>
    </InvAdjustDesc>cond>11</second>
    </CREATE_DATE>
    <ww_liability_code>342</ww_liability_code>
    <ww_ref_1 />
    <ww_ref_2 />
    <ww_tran_id>342021751180</ww_tran_id>
    <ww_alloc_no />
    <ww_final_store>342</ww_final_store>
    </INVADJUSTDTL>
    </InvAdjustDesc>cond>11</second>
    </CREATE_DATE>
    <ww_liability_code>342</ww_liability_code>
    <ww_ref_1 />
    <ww_ref_2 />
    <ww_tran_id>342021751180</ww_tran_id>
    <ww_alloc_no />
    <ww_final_store>342</ww_final_store>
    </INVADJUSTDTL>
    </InvAdjustDesc>
    --------------------------------------Desired Output___________________
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <InvAdjustDesc>
         <dc_dest_id>852</dc_dest_id>
         <InvAdjustDtl>
              <item_id>12345</item_id>
              <adjustment_reason_code>989</adjustment_reason_code>
              <unit_qty>4</unit_qty>
              <from_disposition>ats</from_disposition>
              <to_disposition>tst</to_disposition>
              <user_id>w759862</user_id>
              <create_date>
                   <year>2012</year>
                   <month>10</month>
                   <day>31</day>
                   <hour>09</hour>
                   <minute>14</minute>
                   <second>23</second>
              </create_date>
              <ww_liability_code>852</ww_liability_code>
              <ww_ref_1/>
              <ww_ref_2/>
              <ww_tran_id>12358965</ww_tran_id>
              <ww_alloc_no/>
              <ww_final_store>323</ww_final_store>
         </InvAdjustDtl>
         <InvAdjustDtl>
              <item_id>78952675</item_id>
              <adjustment_reason_code>987</adjustment_reason_code>
              <unit_qty>5</unit_qty>
              <from_disposition>ats</from_disposition>
              <to_disposition>asr</to_disposition>
              <user_id>w7889526</user_id>
              <create_date>
                   <year>2012</year>
                   <month>10</month>
                   <day>31</day>
                   <hour>09</hour>
                   <minute>15</minute>
                   <second>02</second>
              </create_date>
              <ww_liability_code>456</ww_liability_code>
              <ww_ref_1/>
              <ww_ref_2/>
              <ww_tran_id>482665226</ww_tran_id>
              <ww_alloc_no/>
              <ww_final_store>456</ww_final_store>
         </InvAdjustDtl>
    </InvAdjustDesc>

  • HTTP Receiver Adapter - delete ?xml version="1.0" encoding="UTF-8"?

    Hi,
    Is it possible to delete the part below when sending an HTTP request through HTTP receiver adapter without any java/abap/xslt mapping?
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SELL xmlns:ns0="http://test.com/Sell">
    Thanks
    Arman

    Hi,
    <?xml version="1.0" encoding="UTF-8"?>
    Specifies that the given message is xml
    <ns0:MT_SELL xmlns:ns0="http://test.com/Sell">
    Specifies its a MessageType of the payload, without this that message is not identifies and is not processed. Its manditory to have these. Other wise error will raise.
    Regards,
    Prasanna

  • 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

  • Unexoected ?xml version="1.0" encoding="utf-8"?

    Hi everybody.
    I having the follow problem.
    I have a anyType field inside a wsdl interface. when i invoke the web service, the resulting value is that:
    <rootElement>
    <?xml version="1.0" encoding="utf-8"?>
    <field1>Something1</field1>
    <?xml version="1.0" encoding="utf-8"?>
    <field2>Something2</field2>
    <?xml version="1.0" encoding="utf-8"?>
    <field3>Something3</field3>
    </rootElement>
    somebody knows why this could happen.????..
    any sugestion could be so helpfull

    just put this
    <?xml version="1.0" encoding="utf-8"?>
    once, at the very top of the document. (before the root)

  • Remove ?xml version="1.0" encoding="UTF-8"? from xml file

    I have generated an XML file using sax paraser. In the XML file thats generated I have the version and the encoding line
    <?xml version="1.0" encoding="UTF-8"?>which is automatically generated in my XML file. Is there any way that I can avoid that from the XML file thats generated.

      try
                            FileWriter fr = new FileWriter(new File(path, fileName));
                            Document docNode = docNodeMap.get(name);
                            XMLOutputter outputter = new XMLOutputter();
                            outputter.output(docNode, fr);
                            fr.close();
                    catch (IOException e)
                            e.printStackTrace();
                    }this the code generating xml file.

  • Adding  " ?xml version="1.0" encoding="UTF-8"? "   in generated xmls

    Hi,
    I am using xmlbeans framework to generate xmls , i am able to generate xml using document object but header "<?xml version="1.0" encoding="UTF-8"?>" is not coming in that xml file , how to include this in output xml files.

    Hi,
    I don't know the XMLBeans Framework, but this header is called XML declaration.
    In general there are options to configure this (i. e. setOption("omit-xml-declaration", false);).
    Anyway, I don't know the exact syntax in this framework but have a look at this, maybe it helps somehow.
    http://xmlbeans.apache.org/docs/2.0.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveNoXmlDecl()
    Best Wishes
    esprimo

  • Printing ?xml version=\"1.0\" encoding=\"UTF-8\"? at the top of my xml

    Can anyone spot where I'm going wrong?
    I'm creating a DOMDocument like this:
    Document document = null;
    DocumentBuilder doc_builder = null;
    try
         doc_builder = factory.newDocumentBuilder();
    catch(ParserConfigurationException e){/* deal with exception*/}
    document = doc_builder.newDocument();Adding various stuff to it, then saving it like this
    Source source = new DOMSource(document);
    Result result = new StreamResult(idx);
    Transformer xformer = TransformerFactory.newInstance().newTransformer();
    xformer.setOutputProperty(OutputKeys.METHOD, "xml");
    xformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); //??????
    xformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1");
    xformer.setOutputProperty(OutputKeys.INDENT, "yes");
    xformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    xformer.transform(source, result);All the usual stuff.
    But how do I get it to write:
    <?xml version=\"1.0\" encoding=\"UTF-8\"?>
    at the top of the page?
    One further thing...
    If I have nothing to write in my xml file, it just spits out a blank file.
    Instead, I want it to write:
    <?xml version="1.0" encoding="UTF-8"?>
    <upIdx/>
    a simple:
    document.createElement("upIdx");doesn't appear to do anything if the block "upIdx" is subsequently empty.
    Many thanks

    duugggh....
    (well it is friday evening.. ... long week.. all that kind of stuff)
    how stupid of me....
    to answer my own question, it was here:
    xformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no"); //??????
    xformer.setOutputProperty(OutputKeys.VERSION, "1.0");
    xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");

  • 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....

Maybe you are looking for

  • TS1372 iTunes won't open at all.

    I am using my brothers laptop, and every time I try to use iTunes, it never opens up correctly, it just says: "iTunes has stopped working", and when I try to re install it, the exact same thing happens, the computer I am using is a windows vista oper

  • OOF not working for mailboxes homed on Exchange 2010 server during migration

    Hi There I'm troubleshooting an issue during a exchange 2010 to exchange 2013 migration where the OOF is not working for users homed on the exchange 2010 mailbox servers. This applies to users using outlook 2010 and outlook 2013 .OWA works perfectly

  • I bought a new Iphone 5 today at Verizon

    I bought a new Iphone 5 at Verizon I had an old Iphone that just died allmy apps were downloaded via WiFi at verizon and they told me to go sync with Itunes I tunes does not recoginize my new phone doing something wrong-- lesnorvell

  • Licensing my application on a target computer

    I built an application and intend to sell it for use in a target computer. How can I incorporate a parallel key for use with my application? Or are there other ways I can license my product? Help is greatly appraciated. Thanks.

  • What about including the version number in the package report?

    Here's a simple suggestion - can we include the file version in the report that's created when you package files? Shouldn't be too hard to add something like: ADOBE INDESIGN CS6 PRINTING INSTRUCTIONS FOR SERVICE PROVIDER REPORT Or PUBLICATION NAME: 0