Need to prevent special character in generated XML file

Hello,
I am using E-business Suite 12.1.3 and XML version 5.6.3.
My XML file is ending up with a special character (a Latin capital letter U with circumflex) at the end, after the final closing tag.
Due to this the concurrent program that needs to output the XML is ending with warning.
My XML file is produced using a PL/SQL procedure, as follows (I've simplified it):
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="UTF-8" ?>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<DOCS>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<LETTER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<EMP_NAME>Michaela Hart</EMP_NAME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</LETTER>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</DOCS>');
But when I run the concurrent request that creates the output then try to view the output in Internet Explorer I get the following error:
Invalid at the top level of the document. Error processing resource 'http://servername.domain...
</DOCS>
If I view the source of the page in Internet Explorer it shows a square after </DOCS> indicating the special character that has been added.
I checked this by looking at the output file in unix (cat -v o7766582.req) and it showed up the Latin U character.
I realise it could be to do with the character set I am using. I checked what we had on the server:
> echo $NLS_LANG
American_America.UTF8
I would have thought that corresponded with the XML declaration character set but I'm not sure.
Does anyone have any other ideas about why I have this special character, and how it could be removed?
Thanks in advance,
Hazel

Hi AlexAnd,
thanks very much for your reply.
I'm now unable to recreate the problem since dbms_xmlgen worked. If I switch back to my previous method it works fine!
I'm not sure your suggestion would help, as there were no special characters in the data, the special character was added after the last tag I output. I hard coded the data (as in my example) for testing purposes so there was no SQL in use and the special character was still added at the end of the XML output. But I will definitely give it a try if I get the problem again.
I had the idea that maybe I should have been using FND_FILE.PUT rather than FND_FILE.PUT_LINE but now the error is gone I can't tell if that would have solved the problem either.
I appreciate your input.
Regards
Hazel

Similar Messages

  • PHP generated XML files in Flash

    I want to create a flash based frontend for my image gallery
    system. I need to load in an php generated xml file (something like
    images.php). But Flash seems to load the unparsed xml file
    (webserver with php works fine). Maybe that's just happening in the
    authoring environment. I'm trying to load the xml file with the
    XML-connector. Can someone give me an advice before I do hours of
    trial'n'error business?

    It seems like I don't get my foot into the AS/XML door. My
    XML looks like this:
    <root>
    <image>
    <url>
    <name>
    <etc>
    (Close tags not shown)
    The XML file is valid and works with XML-connector. I try to
    access the XML data with this AS:
    xml_doc = new XML();
    xml_doc.load('flash.xml');
    xml_doc.onLoad = function(success) {
    //trace(this.toString());
    xml_doc.ignoreWhite = true;
    //trace(xml_doc.toString());
    trace(xml_doc);
    var mainnode:XMLNode = xml_doc.firstChild;
    var imagenodes:Array = xml_doc.firstChild.childNodes;
    for (var i:Number = 0; i < imagenodes.length; i++) {
    // for each person node:
    var imagenode:XMLNode = imagenodes
    images.push(
    {i:i+1,
    url:imagenode.childNodes[0].nodeValue,
    imagename:imagenode.childNodes[1].nodeValue
    trace(images);
    I'm not getting any values out (just 'undefined'). There
    seems to be something missing, but I just don't find out what.
    Cheers,
    Martin

  • Hi I need this asap... "Java code to generate XML File from XML Schema"

    Hi all....
    I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
    Thankz in advance...
    PS: I already posted in the afternoon... this is the second posting.

    take look at :
    http://sourceforge.net/projects/jaxme/
    this might help...

  • Error while generating XML file through RDF

    Hi,
    I wanted to generate a Report on some business case. For that I need to generate XML file first.
    For generating XML file
    1. I have built an RDF through Reports builder.
    2. Saved the report to local machine with extension .rdf
    3. Moved it to appltop/app/reports/US directory
    4. Registered tha Report with Executable of type Oracle Reports
    5. Defined Concurrent Program with OUTPUT as XML.
    When I submmitted the program, it was giving an error as follows.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    A semi colon character was expected. Error processing resource 'https://oaphrd.humana.com/OA_CGI/FNDWRR.exe?temp_id=2088989...
    +<?xml version="1.0" encoding="&Encoding"?>+
    But, when I tried to sane the report directly to a file (file - > generate file -> XML) the XML was generated successfully.
    How to get rid of this. Some one please help me out.
    Thanks !
    Edited by: Rajasekhar Reddy on May 4, 2012 1:23 AM

    Hi,
    I found the issue and corrected it. :)
    This was happened only because of the Version problem of Report Builder with Oracle Applications.
    Reports Builder 10g is not compatiblie with Oracle Applications 11.5.10.
    Oracle 11.5+ will always expect the RDF from Reports 6i version. Because of this, the endocing was damaged.
    You can observe in the earlier post as encoding="&Endoding". Here +&Encoding should be replaced by some encoding mechanism like "UTF-8".+
    Finally corrected the version and got the Output as expected.
    Thanks !

  • Error while generating XML file from rdf report.

    Hi All,
    we are having a rdf report that displays images retrieved from data base. I need to convert this report to xml report(using rtf template).
    when i tried to run the report after changing the output of the concurrent program to "XML", i am getting the below error.
    REP-1295: Data format of column 'PK1_VALUE' is unsupported.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1295: Data format of column 'PK1_VALUE' is unsupported.
    images are stored in BLOB type columns.
    Can anyone help me on this..
    thanks
    gtungala

    Hi Hussein,
    Thank you for the reply.. i was sure that i will get correct response with in a day..
    you people made this as one of the best technical forums..no doubt in that..
    need some more help from you...!
    The metalink docs say that it is not possible to generate xml file as the image is BLOB.
    Can you please tell me any solution for developing xml template(rtf) which can display images that are stored in data base BLOB columns. Even PL/SQL script will do.. I have tried with changing the BLOB to CLOB in rdf query(by calling a function that converts BLOB to CLOB). it didnt help.
    thanks in advance..
    gtungala

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

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

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

  • Generate XML file from RFC using Web Services

    Hi,
      I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.
    I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.
    Any FM available?
    Thanks,
    Ram Sanjeev

    which version of WAS you are on .
    if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    lower version of WAS use class cl_http_client.
    if this case you have to manually build the soap message.
    /people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
    Regards
    Raja

  • Generate XML File from table

    How to generate XML file from a table without using UTL_FILE that too in local machine...

    You downloaded the wrong XML Parser!
    XSQL requires Java Parser. Well, there's a copy included with the XSQL package so you actually don't need to do another download.
    You really don't need XSQL if you just want a XML file from DB, you just needed a XML SQL Utility. Download that and run the samples.

  • Using a data file in jsp to generate xml file

    hi
    can anybody help me to
    how to use a data file generated in unix in jsp to generate xml file.
    by using beans i am able to generate the xml.
    thanks in advance.

    You haven't provided adequate relevant information. If you need help provide proper relevant details.

  • Form2xml generate xml files with "??????????" for non-latin characters

    i used form2xml in oracle 10 g suit to convert forms 5   .fmb to .xml . using the command:
    frmf2xml.bat OVERWRITE=YES myform.fmb
    The forms contains arabic character set, but the xml file is generated with character "????????? "  , and the xml file is unusable
    what can i do to keep arabic characters in the generated  xml files.
    Edit:
    I run form2xml on windows xp SP3 with arabic support (codepage =1256)
    The xml file is generated as UTF-8

    I resolved the problem.
    step1: search in the registry for every NLS_Lang key and modify its value to codepage 1256 using regedit
    step2: in control panel-Region and Language , I  modified language to be Arabic
    Now every thing is good

  • Java code to generate XML File from XML Schema

    Hi I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
    Thankz in advance...

    JAXB has been available as an early release download for some time. There are also XML Binding packages available from Borland (JBuilder) and Castor. These tools create Java classes from a source document, xml,dtd etc. You can use these classes to marshal-unmarshal XML documents.
    Dave

  • Permission Denied error generating XML file

    We’re using ODI to write out files to a Windows CIFS file system through an agent installed on the ODI Unix server. In order to do this, we had to create the agent using a user ID that had permission to write to the Windows file system. For writing out flat files, this worked great; we have no problems at all.
    However, for writing out XML files to the file system, we’re getting an error that says Permission Denied. We do NOT get the error if we write the XML to a Unix directory, only if we attempt to write it to the CIFS file system. I have two questions:
    1.     Is ODI able to execute against a Windows CIFS file system from UNIX to generate XML files?
    2.     If so, is there a list of permissions required on the fileshare that the ODI needs to generate the XML?
    Below is the exact error we’re getting:
    0 : null : java.sql.SQLException: Could not save the file /mdm_conversion/TST/2.lsm because a class java.io.IOException occurred and said: Permission denied
    Has anyone ever performed something like this or encountered a similar problem?

    Hi,
    I found the issue and corrected it. :)
    This was happened only because of the Version problem of Report Builder with Oracle Applications.
    Reports Builder 10g is not compatiblie with Oracle Applications 11.5.10.
    Oracle 11.5+ will always expect the RDF from Reports 6i version. Because of this, the endocing was damaged.
    You can observe in the earlier post as encoding="&Endoding". Here +&Encoding should be replaced by some encoding mechanism like "UTF-8".+
    Finally corrected the version and got the Output as expected.
    Thanks !

  • Generate XML file for payroll result

    Hi,
    I tried to generate XML file for chinese payroll result by t-code: pu12, but i can not find the interface format for china payroll(here is format for other country vesion like international, france...). How can i generate xml file for chinese payroll result. DO i need to create a format type? Is there any other way? thank you in advance.

    Coming back to my question is it really possible to generate bigger XML on 9i.
    Sure. But not in one go.
    I would use SQL/XML functions instead and paginate the result set so that each CLOB chunk doesn't exceed 4GB (or less). Each chunk could then be appended to a file using UTL_FILE.
    Alternatively, as Oracle 9i supports parallel pipelined functions, you could also imagine doing the job in parallel using automatic data partitioning on an input ref cursor.
    That would require some postprocessing steps to rebuild the entire file from the different chunks though.
    See : Pipelined and Parallel Table Functions

  • MPOZ issue generating XMl file

    Hi,
    we have upgraded our ECC6 system to EHP5.Unfortunately one of the add-ons  FI-CAX was not upgraded.
    I want to generate XML file to upgrade this component.If I select EHP5 installation its picking up all the component which has already being upgraded.
    Can you pls suggest how can I generate XML for one particular  Add-on.
    Thanks for your help in advance.
    Regards!!
    Ravi

    Hi Ravi,
    As you said , ECC system EHP5 upgrade is finished but you need 1 add to upgrade seperatly now.
    Pls ensure your system landscape , in SMSY of SolMan is updated correctly with upgrdaed component version for ECC.
    Then try to download component via MOPZ , it sould auto calculate other latest vesrion to apply including your add on component.
    Regards

  • Generate XML file from DB table

    Hi all,
    I am trying to retrieve data from a DB table and generate an XML file.
    I am using Oracle8i and IIS 4.0. I have downloaded XML parser for PL/SQL and XSQL Servlet. Also I have Jrun to enable IIS to process Jservlets
    Here are my questions,
    1. Do I need any other software ?
    Also do I need both XML parser for PL/SQL and XSQL Servlet ??
    2. What is the next step I should do ?
    Please help me. Thanks in advance.
    Vikki

    You downloaded the wrong XML Parser!
    XSQL requires Java Parser. Well, there's a copy included with the XSQL package so you actually don't need to do another download.
    You really don't need XSQL if you just want a XML file from DB, you just needed a XML SQL Utility. Download that and run the samples.

Maybe you are looking for

  • Constant Disconnect, 120 kbps Max!, Poor support,....

    HI All, been with BT  for 30 years - yep!" and broadband customer virtually since it was first introduced! past 5 months have been HELL.  It starts with  continuous disconnects, massive drop is speed from an acceptable 4/5 G  through to 128k -  the s

  • Unable to run 32 bit java vm

    Hi all, I have encountered a strange problem on a solaris 8 system freshly installed. running java command causes segmentation fault. With native java installation coming with OS: root@myhost # /bin/java -version Segmentation Fault Tried installing f

  • IPod as backup for my photo and music library

    May I use iPod as backup device for my photo and music library in case of my iMac failure? Is this tested and recommended solution? Thanks, Jan

  • How or where do I find the printer year? HP OfficeJet Pro 8600 Plus

    How can I get the printer year for the HP OfficeJet Pro 8600 Plus? I have looked in printer staus report and the various labels I can find on the printer itself. I'm sure I'm just missing it.I bought it new, so I do not have any reason to think the i

  • What's the easiest way to manage 2 Muse accounts on one computer?

    I have a personal and a work adobe account. I'm currently only able to use my personal version of Muse on this computer, but really need to have access to both. What's the easiest way to switch between these two account on a single computer?