ISSUES IN XML FILE HEADER

Hi Gurus,
I am facing issue with the first two lines in incoming XML file. I am unable to read this using my program.
<?xml version="1.0"?>
<GL_INTERFACE_TBL xmlns="http://xmlns.oracle.com">I am pasting first few lines of my sample code.
DECLARE
    lv_supp_file     XMLTYPE;
  BEGIN
    lv_supp_file  := xmltype( bfilename('XMLDIR','GL_XML_0512.xml'), nls_charset_id('AL32UTF8'));If first two lines are like this then I can read the file easily.
<?xml version="1.0" encoding="UTF-8"?>
<GL_INTERFACE_TBL>
OR
<?xml version="1.0" encoding="UTF-8"?>
<GL_INTERFACE_TBL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Please confirm is there any way. Our third applications does not have UTF-8 character set.
Regards,
Nagendra

You still don't give the error message.
Don't you think it's important for diagnosing the problem?
When I try to read that incoming XML file I am encountering errors. Is it possible to make programs compatible in reading such kind of files.Sure.
You have to determine what's the real encoding of the XML file (ask the third party team if necessary).
Normally, when the encoding specification is missing in the prolog (like what you're receiving), then the file is considered UTF-8, but obviously it's not the case here.
When you know the real encoding, you must then specify the corresponding character set in the XMLType constructor.
For example, if the encoding is ISO-8859-1, then you must use this instead :
lv_supp_file  := xmltype( bfilename('XMLDIR','GL_XML_0512.xml'), nls_charset_id('WE8ISO8859P1'));

Similar Messages

  • Add schema location and version to the XML file header

    HI, I used XMLBean to generate a XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <bo:TXLife xmlns:bo="http://ACORD.org/Standards/Life/2">
    </bo:TXLife>
    I need add a schema location, a version, another name space so the header looks
    like:
    <?xml version="1.0" encoding="UTF-8"?>
    <bo:TXLife xmlns:bo="http://ACORD.org/Standards/Life/2"
    xmlns:xsd="http://www.w3.com/2001/XMLSchema"
    xmlns:xsi="http://www.w3.com/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.iit.com/schema/Schema29.xsd"
    version="2.9">
    </bo:TXLife>
    Thanks,

    Thanks Steve.
    Your right, it seems that I can't access the attribute or in this case add it
    by just editing the xsd. At least I haven't found a way to do that.
    The cursor solution works ok, but we'll have to add that code to every transformation
    etc.
    Timo
    "Steve Traut" <[email protected]> wrote:
    Hello Timo -- Unless your schema defines the attribute as part of the
    element you want to edit, I don't think you'll get access to the attribute
    through JavaBeans-style accessors.
    If you have any feedback about why the cursor won't work in your situation,
    though, I'd love to hear it.
    Steve
    "Timo Lukumaa" <[email protected]> wrote in message
    news:[email protected]...
    Hello, where having a similar problem. We need a schema locationdefinition so
    that XML is valid. We can edit the xsd files and add stuff there, wouldthere
    be a way to do that with out the cursor? This cursor solution isn'ttoo
    nice..
    "Steve Traut" <[email protected]> wrote:
    Henry -- You'll need an XmlCursor for inserting attributes that aren't
    defined in your schema. Try something like the following.
    TXLifeDocument txLifeDoc = TXLifeDocument.Factory.newInstance();
    TXLife txLife = txLifeDoc.addNewTXLife();
    // Create a cursor and move it to where you want to start inserting
    attributes.
    XmlCursor cursor = txLife.newCursor();
    cursor.toFirstContentToken();
    cursor.toLastAttribute();
    // Insert your attributes.
    cursor.insertAttributeWithValue("schemaLocation","http://www.w3.com/2001/XM
    L
    Schema-instance", "http://www.iit.com/schema/Schema29.xsd");
    cursor.insertAttributeWithValue("version", "2.9");
    cursor.insertNamespace("xsi",
    "http://www.w3.com/2001/XMLSchema-instance");
    cursor.insertNamespace("xsd", "http://www.w3.com/2001/XMLSchema");
    // Dispose of the cursor.
    cursor.dispose();
    Steve
    "Henry Niu" <[email protected]> wrote in message
    news:[email protected]...
    HI, I used XMLBean to generate a XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <bo:TXLife xmlns:bo="http://ACORD.org/Standards/Life/2">
    </bo:TXLife>
    I need add a schema location, a version, another name space so theheader
    looks
    like:
    <?xml version="1.0" encoding="UTF-8"?>
    <bo:TXLife xmlns:bo="http://ACORD.org/Standards/Life/2"
    xmlns:xsd="http://www.w3.com/2001/XMLSchema"
    xmlns:xsi="http://www.w3.com/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.iit.com/schema/Schema29.xsd"
    version="2.9">
    </bo:TXLife>
    Thanks,

  • Issues opening xml files in CS6

    I'm having a problem opening xml files in CS6. Currently, I'm able to load Dreamweaver CS6, but when I open a file labeled as .xml, the application freezes up. I have already set up my preferences to read .xml files. (some background info: I do have a previous version of 5.5 installed on the same machine. I could guess that the problem could be associated with having an earlier version of dreamweaver installed at the same time, but why would it only affect xml files?)

    Have you tried opening the .xml file in NotePad or some other simple text editor? just to verify that the file is good and not corrupted.

  • Issues reading XML file

    Hello all,
    I am having trouble reading the XML file. I believe I have done the right query except the results back are blank and I am not sure why?
    Version = Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    XML File: E_table_export_CES.xml
    <?xml version='1.0' encoding='UTF-8' ?>
    <RESULTS>
         <ROW>
              <COLUMN NAME="ID">12688f8ac8aa6310VgnVCM10000078ccc70a____</COLUMN>
              <COLUMN NAME="BRANCH_NAME">Brooklyn</COLUMN>
         </ROW>
    </RESULTS>
    CREATE DIRECTORY XMLDIRX AS '/dbms/xml';
    Query that I am using:
    select *
    FROM xmltable ('*/ROW'
    passing XMLTYPE (bfilename ('XMLDIRX', 'E_table_export_CES.xml'), NLS_CHARSET_ID ('UTF8'))
    columns
    "ID" VARCHAR2(200) path '@ID'
    ,"BRANCH_NAME" varchar2(25) path '@BRANCH_NAME'
    ) xtbl
    I am getting back ID and Branch_Name columns but the row is empty. Just not sure what I am doing wrong. Any help would greatly be appreciated!

    Hi,
    I'll try moving things around to see if I can get the data back but any more help would be appreciated.Don't try things at random, it's all very logic :)
    SQL> select x.*
      2  from xmltable(
      3         '/RESULTS/ROW'
      4         passing xmltype(bfilename('TEST_DIR', 'E_table_export_CES.xml'), nls_charset_id('AL32UTF8'))
      5         columns
      6           "ID"          varchar2(200) path 'COLUMN[@NAME="ID"]'
      7         , "BRANCH_NAME" varchar2(25)  path 'COLUMN[@NAME="BRANCH_NAME"]'
      8       ) x ;
    ID                                                                               BRANCH_NAME
    12688f8ac8aa6310VgnVCM10000078ccc70a____                                         Brooklyn
    The main XQuery extracts each ROW as a sequence, then each item of this sequence is passed to the COLUMNS clause to be broken as separate relational column(s), according to the specified PATH expression.
    For instance, the PATH 'COLUMN[@NAME="ID"]' means : extract the COLUMN child node (of ROW) whose NAME attribute value is 'ID', and since we specify a scalar datatype for the projection, the actual value - in this case the text() node - of the COLUMN element is returned.

  • 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

  • Issue with DMEE file header

    hi experts,
    i would to seek your advice on below issue.
    i have created a DMEE file for customer direct debit, however the file still not correct and not accepted from the bank format.
    expected file is like this:
    H,,,
    D,WINDOWS DELIGHT,50820031230,210003,2052.24,KONE ELVTRS,50655,XYZ,
    D,WINDOWS DELIGHT,50820031230,210003,2052.24,KONE ELVTRS,50655,XYZ,
    D,WOODSIDE VILLAGE M/M,50170105842,210001,5297.63,KONE ELVTRS,51001,XYZ,
    D,WOODSIDE VILLAGE M/M,50170105842,210001,5297.63,KONE ELVTRS,51001,XYZ,
    D,WERLEX PROPERTIES,62008355001,210003,1536.33,KONE ELVTRS,50655,XYZ,
    D,WERLEX PROPERTIES,62008355001,210003,1536.33,KONE ELVTRS,50655,XYZ,
    but i could get from my DMEE setting is like this:
    H,,,
    D,WINDOWS DELIGHT,50820031230,210003,2052.24,KONE ELVTRS,50655,XYZ,
    D,WINDOWS DELIGHT,50820031230,210003,2052.24,KONE ELVTRS,50655,XYZ,
    H,,
    D,WOODSIDE VILLAGE M/M,50170105842,210001,5297.63,KONE ELVTRS,51001,XYZ,
    D,WOODSIDE VILLAGE M/M,50170105842,210001,5297.63,KONE ELVTRS,51001,XYZ,
    H,,
    D,WERLEX PROPERTIES,62008355001,210003,1536.33,KONE ELVTRS,50655,XYZ,
    D,WERLEX PROPERTIES,62008355001,210003,1536.33,KONE ELVTRS,50655,XYZ,
    i dont know what should i do to remove the 2nd and 3rd 'H' from the file.
    kindly advice.
    thanks
    eelin

    Hi,
    Kindly check at DMEE Properties under "Level" Tab:
        Repetition Factor for Level for Node of ( H,,,) change to 99.  Just try and error basis it going to solve your problem.
    Regards,
    Venkat

  • XML file header Section

    Hi XI  Experts ,
    Scenario : RFC (SAP ) - >XI -> HTTPS connection to a  EXternal Server .
    Csutomer wants the   : The XML version and character set should be described as: version 1.0, character set GBK.
    Sample: <?xml version="1.0" encoding="GBK"?>
    BUt the usual  xml format  generated is : <?xml version="1.0" encoding="UTF-8"?>
    How do we cahnge the xml standard format to : <?xml version="1.0" encoding="GBK " in XI ?
    Kindly suggest .
    Thank you ,
    Varalakshmi

    Hi,
    You can use SOAP adapter with do not use SOAP envelope option.
    And in Receiver adapter use standard module XMLAnnomizer Bean to chenge the encoding
    refer
    anonymizer.encoding
    To use a code page other than UTF-8, enter it.  The parameter is optional.
    For example, enter ISO-8859-1.
    http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm
    /people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

  • How to parse xml file to read the tags

    Hi All,
    I am having a requirement to read the tags from the xml file(xml parsing).
    The main issue is *xml file is stored in the table with xml type column* (not placed directly in the server) and we have to read the tags from that xml file.
    Please help me to achieve it.
    Regards,
    Akshata
    Edited by: Akshata on Mar 21, 2013 3:44 AM

    Hi,
    Akshata wrote:
    The main issue is xml file is stored in the table clob/blob type column (not placed directly in the server) and we have to read the tags from that xml file.How is that an issue? On the contrary, it's better when the data already resides in the database, though it should be in an XMLType column to leverage the full capacity of the Oracle parser.
    What's the datatype of the column exactly? CLOB or BLOB?
    Either way you'll have to convert in to XMLType datatype using the XMLType constructor.
    Did you go through the countless examples on this forum? Examples with XMLTable should be helpful.
    Post some sample data and database version if you need additional guidance.
    Thanks.

  • XML File Mapping Syntax

    Xcelsius 2008
    I have an XML file sitting in the same dir as the .xlf file.  Path to the XML is:
    servername\d$\Xcelsius\XML\PatSat4.xml
    Entry in Data Manager as  both a hard-coded path above and pointing to a cell containing the path.
    Preview SWF functions as expected, editing the XML will refresh with the refresh button.
    Exporting to a standalone SWF file sitting in the same dir fails with Error # 2032 meaning it doesn't see the XML file.
    Tried several combinations of  forward vs back-slash.
    Preceding with file://, file:
    , file:
    without success.
    Using only filename PatSat4.xml doesn't work.
    Thing is: works in preview mode, not as export.
    Anybody know either the proper syntax or the trick?
    TIA

    This is an ADOBE issue based on their security methodology/policy.  Similar to the issue when xml files are coming from a server/across domains.
    You may find more info on error messages at
    http://livedocs.adobe.com/flex/3/html/help.html?content=rsl_10.html
    To resolve the issue, go to
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
    and flag the folders (or parent folders) holding the xml files as "trusted".  You will need to do this for every (physical) machine you or your customers are working with. The xml files need not be in the same folder as the xlf or swf file.
    Hope this helps

  • IsSchemaValid does chang the xml-encoding header from UTF-8 to WINDOWS-1252

    I found the following effect:
    isSchemaValid does changing the encoding - entry of the xml-file-header
    generating xml-file by using DBMS_XMLGEN :
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    with the header of the file is
    <?xml version="1.0" encoding="UTF-8"?>
    change the xmldoc to a xmlType
    and validate it against the schema
    xmldoc_xmlType:=(xmltype(xmldoc)) ;
    xmldoc_xmlType.isSchemaValid ( bSchemalocation)
    after this the header of the file is
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    my DB:
    R11_2_0_2 / Windows 64
    the same in
    R11_2_0_1 / Windows 32
    select name, value from v$parameter where upper(name) like '%NLS%'
    nls_calendar     
    nls_comp          BINARY
    nls_currency     
    nls_date_format     
    nls_date_language     
    nls_dual_currency     
    nls_iso_currency     
    nls_language          AMERICAN
    nls_length_semantics     BYTE
    nls_nchar_conv_excp     FALSE
    nls_numeric_characters     
    nls_sort     
    nls_territory          AMERICA
    nls_time_format     
    nls_timestamp_format     
    nls_timestamp_tz_format     
    nls_time_tz_format     
    register my schema by:
    dbms_xmlschema.registerSchema(
    schemaurl => vschemaurl,
    schemadoc => xsd_file,
    local      => FALSE,      
    gentypes      => TRUE,      
    genbean      => FALSE,      
    gentables      => TRUE,      
    force      => FALSE,
    owner      => dbuser
    ,CSID      => nls_charset_id('AL32UTF8')
    How can I let or change back the xml-encoding entry to UTF-8 ?
    regards

    Your solution should not be relied upon...
    C:\Temp>sqlplus /nolog @t1 %CD%
    SQL*Plus: Release 11.2.0.2.0 Production on Fri Mar 4 09:41:32 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    SQL> spool testcase.log
    SQL> --
    SQL> connect sys/oracle as sysdba
    Connected.
    SQL> --
    SQL> set define on
    SQL> set timing on
    SQL> --
    SQL> def XMLDIR = &1
    SQL> --
    SQL> def USERNAME = XDBTEST
    SQL> --
    SQL> def PASSWORD = &USERNAME
    SQL> --
    SQL> def USER_TABLESPACE = USERS
    SQL> --
    SQL> def TEMP_TABLESPACE = TEMP
    SQL> --
    SQL> drop user &USERNAME cascade
      2  /
    old   1: drop user &USERNAME cascade
    new   1: drop user XDBTEST cascade
    User dropped.
    Elapsed: 00:00:00.24
    SQL> grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
      2  /
    old   1: grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
    new   1: grant create any directory, drop any directory, connect, resource, alter session, create view to XDBTEST identified by XDBTEST
    Grant succeeded.
    Elapsed: 00:00:00.07
    SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
      2  /
    old   1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
    new   1: alter user XDBTEST default tablespace USERS temporary tablespace TEMP
    User altered.
    Elapsed: 00:00:00.00
    SQL> set long 100000 pages 0 lines 256 trimspool on timing on
    SQL> --
    SQL> connect &USERNAME/&PASSWORD
    Connected.
    SQL> --
    SQL> create or replace directory XMLDIR as '&XMLDIR'
      2  /
    old   1: create or replace directory XMLDIR as '&XMLDIR'
    new   1: create or replace directory XMLDIR as 'C:\Temp'
    Directory created.
    Elapsed: 00:00:00.00
    SQL> create table XML_DEFAULT of XMLTYPE
      2  /
    Table created.
    Elapsed: 00:00:00.11
    SQL> create table XML_CLOB of XMLTYPE
      2  XMLTYPE store as CLOB
      3  /
    Table created.
    Elapsed: 00:00:00.01
    SQL> select *
      2    from nls_database_parameters
      3   where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET')
      4  /
    NLS_LANGUAGE                   AMERICAN
    NLS_TERRITORY                  AMERICA
    NLS_CHARACTERSET               AL32UTF8
    Elapsed: 00:00:00.02
    SQL> declare
      2    XML_DEFAULT XMLType := xmltype('<?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>') ;
      3    XML_CLOB    XMLType := xmltype('<?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>') ;
      4  begin
      5    delete XML_DEFAULT;
      6    delete XML_CLOB;
      7    insert into XML_DEFAULT values (XML_DEFAULT);
      8    dbms_xslprocessor.clob2file( XML_DEFAULT.getclobval() , 'XMLDIR','XML_DEFAULT.xml');
      9    IF  XML_DEFAULT.isSchemaValid ( 'SCHEMALOCATION_DOES_NO_MATTER_FOR_TEST_CASE.XSD', 'SCHEMA_NO_MATTER') = 1 THEN  null; ELSE  null; END IF;
    10    commit;
    11    dbms_xslprocessor.clob2file( XML_DEFAULT.getclobval() , 'XMLDIR','XML_DEFAULT_IS_VALID.xml',nls_charset_id('WE8MSWIN1252'));
    12    dbms_xslprocessor.clob2file( XML_DEFAULT.getclobval() , 'XMLDIR','XML_DEFAULT_WIN1252.xml');
    13    insert into XML_CLOB values (XML_CLOB);
    14    dbms_xslprocessor.clob2file( XML_CLOB.getclobval() , 'XMLDIR','XML_CLOB.xml');
    15    commit;
    16  end ;
    17  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.27
    SQL> --
    SQL> host type XML_DEFAULT.xml
    <?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>
    SQL> --
    SQL> host type XML_DEFAULT_IS_VALID.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <TEST>SELECT</TEST>
    SQL> --
    SQL> host type XML_DEFAULT_WIN1252.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <TEST>SELECT</TEST>
    SQL> --
    SQL> host type XML_CLOB.xml
    <?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>
    SQL> --
    SQL>First, the character set changes because isSchemaValid() causes the document to be parsed and converted to the internal database character set, as does storing it in a table.
    It appear that your solution works in SQL because the semantics of SQL are such that it causes a 'copy' of the XMLType to take place before running the isSchemaValid() processing, were we to optimize away that copy as a result of a patch or performance optimization project then you solution would break...
    If you want the output in a particular character set you should force that using XMLSerialize or getBlobVal(charsetid). Unfortunately we don't have a convience method for writing BLOBS on DBMS_XSLPROCESSOR...

  • XML files imported into SPRC are not properly loading associated data into SPRC

    Hi EHS Gurus,
    My Issue is - XML files imported into SPRC are not properly loading associated data into SPRC .
    When am uploading the XML files manually its working fine in /TDAG/CPM00.
    The same when we are uploading the XML files thru basis program IPC (XML) Documents into SAP , its not working .In XMl file it showing its complaint the same time compliance workbench complaint statues it showing empty .
    for you reference pls see the attached screenshot .
    Pls can you help me on this .
    Regards,
    Suresh.

    Hi EHS Gurus,
    My Issue is - XML files imported into SPRC are not properly loading associated data into SPRC .
    When am uploading the XML files manually its working fine in /TDAG/CPM00.
    The same when we are uploading the XML files thru basis program IPC (XML) Documents into SAP , its not working .In XMl file it showing its complaint the same time compliance workbench complaint statues it showing empty .
    for you reference pls see the attached screenshot .
    Pls can you help me on this .
    Regards,
    Suresh.

  • Oracle UCM fails to check in text/xml files

    We have an Oracle UCM server that is failing to check in xml files over a certain size - I haven't narrowed down the size limit yet, but a <100kb file will work 100% of the time, while 300+ Kb xml files fail almost all the time, though there has been some success. Image files and zip file succeed on new check ins 100% of the time as well. We have tried with the SOAP API and the UCM new check in form - in both cases we get an empty repsonse from the server. In firefox we get the "The connection was reset" page. I'm at a loss as to explain why, but I have almost no experience with Oracle UCM. This particular server has been running for over a year happily accepting xml files of all sizes, then one day just stopped - as far as I am aware, nobody changed any
    settings/upgraded anything/changed network topology.
    When I look in the server output, I don't really see any indication of failure or find any mention of the file name or content title like I do when a file successfully checks in.
    I have already asked the DBA to drop and rebuild the database index, started the Collection rebuild cycle (it finished successfully) and turned on the webless file store option on the defaultfilestore provider.
    UCS Version : 10.1.3.3.3 (080807) (Build:7.2.2.188)
    Database : Microsoft SQL Server 09.00.4035 currently using DATABASE.METADATA though I think it was at one point using Full text search, but the database was not.
    Java Version:1.6.0
    Please ask if there is any other information you need, but I do not have physical access to the machine, and I may not be able to reveal certain info due to privacy/security concerns.

    Hello,
    I think you should open an SR with support to help out. Be that as it may, here's some observations/suggestions...
    * You are running a 4-year old content server. There have been numerous fixes since then. Your system may have grown to a point where it's hit one of the older issues.
    * Is it possible the XML encoding may have changed? i.e. that whatever generates the XML files is now generating them slightly differently and therefore the encoding is different so check-in doesn't follow the same rules? I'd look at the first line of older files versus the new files which fail. If there's a difference, refer to KM note 978689.1 in our knowledge base.
    * You say there doesn't appear to be anything in the logs, so let's increase them:
    - Login to UCM as Administrator. Go to Administration->System Audit Information. Switch on the Full Verbose Tracing checkbox. In the Active Sections field, put in:
    systemdatabase - this will show you what queries and inserts are made to the database and should show whether there's a problem at that level.
    requestaudit - this shows you the requests as they come in, as well as a roundup of all requests every 2 minutes. If you see large amounts of time being taken on requests, your server could be creaking because of resources.
    publish - tells you about publishing related issues, most XML file check-ins are related to this.
    - Try to check in a file which should fail.
    - Switch off verbose logging (see above) to reduce overhead.
    If the OS is Windows then the <install>/config.cfg file needs to have UseRedirectedOutput=true in order to generate a log file for this tracing. On Windows the file is the <install>/bin/IdcServerNT.log file. (if the above config is set)
    On *nix it is in the <install>/etc/log file (notice that there is no file extension on the file)
    If none of the logs helps you, an SR is probably in order.
    Regards,
    Frank.

  • Trouble loading an xml file - claims not to be terminated correctly

    I'm trying to load some data in an xml file to create a tree view.  Before that I created this code with hardcoded xml definition which works fine and creates my treeview:
    <?xml version="1.0" encoding="utf-8"?>
    <csxs:CSExtension xmlns:fx="http://ns.adobe.com/mxml/2009"
                                              xmlns:s="library://ns.adobe.com/flex/spark"
                                              xmlns:csxs="com.adobe.csxs.core.*"
                                              xmlns:mx="library://ns.adobe.com/flex/mx"
                                              applicationComplete="appComplete()">
              <fx:Script>
                        <![CDATA[
                                  import com.adobe.csxs.core.CSInterface;
                                  [Bindable]
                                  private var hostName:String = HostObject.mainExtension;
                                  public function appComplete():void{
                                            CSInterface.instance.autoThemeColorChange = true;
                                  import mx.collections.ICollectionView;
                                  import mx.events.ListEvent;
                                  private function tree_itemClick(evt:ListEvent):void {
                                            var item:Object = Tree(evt.currentTarget).selectedItem;
                                            if (tree.dataDescriptor.isBranch(item)) {
                                                      tree.expandItem(item, !tree.isItemOpen(item), true);
                                  private function tree_labelFunc(item:XML):String {
                                            var children:ICollectionView;
                                            var suffix:String = "";
                                            if (tree.dataDescriptor.isBranch(item)) {
                                                      children = tree.dataDescriptor.getChildren(item);
                                                      suffix = " (" + children.length + ")";
                                            return item[tree.labelField] + suffix;
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <fx:XML id="myXml">
                                  <root>
                                            <folder label="One">
                                                      <folder label="One.A">
                                                                <item label="One.A.1" />
                                                                <item label="One.A.2" />
                                                                <item label="One.A.3" />
                                                                <item label="One.A.4" />
                                                                <item label="One.A.5" />
                                                      </folder>
                                                      <item label="One.1" />
                                                      <item label="One.2" />
                                            </folder>
                                            <folder label="Two">
                                                      <item label="Two.1" />
                                                      <folder label="Two.A">
                                                                <item label="Two.A.1" />
                                                                <item label="Two.A.2" />
                                                      </folder>
                                            </folder>
                                  </root>
                        </fx:XML>
          </fx:Declarations>
              <mx:Tree id="tree"
                                   dataProvider="{myXml}"
                                   showRoot="false"
                                   labelField="@label"
                                   labelFunction="tree_labelFunc"
                                   width="300"
                                   rowCount="6"
                                   itemClick="tree_itemClick(event);" />
    </csxs:CSExtension>
    So that works.  Now I've created an xml file to replace the hardcoded xml.  The file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
              <folder label="One">
                        <folder label="One.A">
                                  <item label="1One.A.1" />
                                  <item label="1One.A.2" />
                                  <item label="1One.A.3" />
                                  <item label="1One.A.4" />
                                  <item label="1One.A.5" />
                        </folder>
                        <item label="1One.1" />
                        <item label="1One.2" />
              </folder>
              <folder label="Two">
                        <item label="Two.1" />
                        <folder label="Two.A">
                                  <item label="2Two.A.1" />
                                  <item label="2Two.A.2" />
                        </folder>
              </folder>
    </root>
    And I've replaced the xml creation in the code with:
    <fx:XML id="myXml" source="/Users/rob/Desktop/myXml.xml" />
    However when I try to run this it fails, giving me an error:
    Main Thread (Suspended: TypeError: Error #1085: The element type "root" must be terminated by the matching end-tag "</root>".)
    But my xml file IS terminated correctly.  Any ideas?
    Running Adobe Extension Builder 2.1 on Mac Snowleopard.

    Well I've sorted this one.  For the record if anyone else a similar issue:
    My xml file was missing a carriage return after the </root>.  Seems to be needed.
    The xml file is cached.  Changing the file and re-running the extension is not enough.  I had alter the path, and then alter it back again. This forced the re-caching of the file and allowed my changes to be picked up.
    Hope that was of use to somebody.

  • Regarding XML file miss information

    Dear Expert,
    I am facing issue in XML file ,issue details as follows ,
    1) IDOC(outbound) generated successfully with all required information .
    2) In PI, schema used to convert IDOC data to XML , in graphical mapping functions are used to check the condition and convert the data accordingly.
    2) In PI Enterprise Servise builder and integration builder, message mapping for IDOC is correct
    It convert source data to destination data using customize function which convert idoc data into XML file . But here some data are missing for only those fields have customize function are used for conversion.
    3) When XML file generated on FTP server successfully but in that some fields are showing blank data for those fields have used functions.
    Regards,

    2) In PI Enterprise Servise builder and integration builder, message mapping for IDOC is correct
    It convert source data to destination data using customize function which convert idoc data into XML file . But here some data are missing for only those fields have customize function are used for conversion.
    >>
    Points to a mapping issue. troubleshoot your mapping first in ESR and check if there is a proper result.
    in case the results are coming correctly but only when u do and end to end test with the same data the result is different, it should be a cache issue. Try to refresh the cache and try again.

  • Load and Read XML file size more than 4GB

    Hi All
    My environment is Oracle 10.2.0.4 on Solaris and I have processes to work with XML file as below detail by PL/SQL
    1. I read XML file over HTTP port into XMLTYPE column in table.
    2. I read value no.1 from table and extract to insert into another table
    On test db, everything is work but I got below error when I use production XML file
         ORA-31186: Document contains too many nodes
    Current XML size about 100MB but the procedure must support XML file size more than 4GB in the future.
    Belows are some part of my code for your info.
    1. Read XML by line into variable and insert into table
    LOOP
    UTL_HTTP.read_text(http_resp, v_resptext, 32767);
    DBMS_LOB.writeappend (v_clob, LENGTH(v_resptext), v_resptext);
        END LOOP;
        INSERT INTO XMLTAB VALUES (XMLTYPE(v_clob));
    2. Read cell value from XML column and extract to insert into another table
    DECLARE
    CURSOR c_xml IS
    (SELECT  trim(y.cvalue)
    FROM XMLTAB xt,
    XMLTable('/Table/Rows/Cells/Cell' PASSING xt.XMLDoc
    COLUMNS
    cvalue
    VARCHAR(50)
    PATH '/') y;
        BEGIN
    OPEN c_xml;
    FETCH c_xml INTO v_TempValue;
    <Generate insert statement into another table>
    EXIT WHEN c_xml%NOTFOUND;
    CLOSE c_xml;
        END
    And one more problem is performance issue when XML file is big, first step to load XML content to XMLTYPE column slowly.
    Could you please suggest any solution to read large XML file and improve performance?
    Thank you in advance.
    Hiko      

    See Mark Drake's (Product Manager Oracle XMLDB, Oracle US) response in this old post: ORA-31167: 64k size limit for XML node
    The "in a future release" reference, means that this boundary 64K / node issue, was lifted in 11g and onwards...
    So first of all, if not only due to performance improvements, I would strongly suggest to upgrade to a database version which is supported by Oracle, see My Oracle Support... In short Oracle 10.2.x was in extended support up to summer 2013, if I am not mistaken and is currently not supported anymore...
    If you are able to able to upgrade, please use the much, much more performing XMLType Securefile Binary XML storage option, instead of the XMLType (Basicfile) CLOB storage option.
    HTH

Maybe you are looking for

  • DNG files created with LR4 do not show thumbnails

    Hi,  When using LR3 to create DNG files from my RAW files, those files would show me thumbnails of my image in Windows Explorer.  I am running Windows/7 (64) and have installed a CODEC from "Fast Picture Viewer" that allows thumbnails from RAW & DNG

  • How to extract the percentage of service received in SES (ML81N).

    Dear Experts, I am in need to extract the percentage of service received in SES (ML81N). I used  eslh and esll but there I am getting total quantity was in PO. For example, in PO service quantity is 1 was received three partial quantity ( .4, .3 and

  • How can I get a 320kbps mp3 using "share to iTunes" without normalizing in Logic Pro X?

    After importing and editing an mp3 file in Logic Pro X, I want to simply "share to iTunes" and get a 320kbps mp3 without normalization but I can't figure out how to do this without normalizing.  With Garageband, it's simple; but with Logic Pro X, I c

  • Retreiving music from an iPod

    I recently got rid of an old computer that I was using my iPod with, and I want to take all of my songs from iPod and put them on my new one, rather than ripping all of my CDs over again, and having to pay for all of my downloads again, but I know if

  • USB port not being shown

    I picked up a Toshiba Satellite 325 CDS at a garage sale and plan to use it for Ham radio and electronic hobbyist pursuits. I'm running Windows 98SE. Everything works well except the USB 2.0 port, which is not being recognized in the Windows Explorer