He had to create to my XML file in the XSL file

Hello world

This is the first time that I post my question here in the XML section, in fact I have a XML file as
<root_node>
    <node_1>
        <element>abc</element>
    </node_1>
</root_node>
Now when I retrieve data from this XML file so I need to get the root node in the Dept and 1 node as DeptRow and item as an identifier.
While she will look like when I will actually try recover data
<Dept>
    <DeptRow>
        <Id>abc</Id>
    </DeptRow>
</Dept>
So for this I need to use Transform method in java and generate an XSL file that can convert data according to my needs without modifying the original file.

then may - does anyone know what content must exist in the XSL file.

your help would be appreciated too

Thank you
FIZZZ...

See a tutorial XSLT.
http://XML.sys-con.com/node/48763

Tags: Oracle Development

Similar Questions

  • How to create a sidecar.xml file?

    Hello - I used generator sidecar very rad Johannes and instructions from adobe on how to download the file, but can't seem to make it work. I have a feeling that it's because they both start with a hypothesis:

    "Use a text editor or an XML Editor to create a file sidecar.xml..." »

    "Writing in a sidecar.xml file.

    How to create the file sidecar.xml of origin, in which paste the metadata generated by Johannes tool?

    http://projects.nordsueddesign.de/sidecarxml/#

    http://help.Adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60606c7754128c7a9c00e-7F ff.html

    You use the web interface of the xmlsidecar generator made by Johannes Henseler and push the button it "generate". Copy paste in a plain text file and then replace tex extension txt to xml format. This is how you do a sidecar.xml the easy way.

    Subsequently, yo have to import "multiple files" (or "multiple files"... my DPS is a Spanish) Folio Builder.

    If the folder revolve correctly, folio Builder will start to swallow the sidecar data and download articles.

    This time, while posting, my pc did this with a hundred articles. As happy and busy as a Beaver in heat

    Gustavo (detachment of Madrid)

  • Creating Oracle's XML files in a directory

    Hi all

    I was going through the concepts Oracle XMLDB and discovered that we can create an XML file using the instructions normal select.

    Now, I create an Oracle Directory that points to the remote Unix computer.

    I want to know if we can create this XML file in the directory that points to the remote Unix directory.

    I don't want to use here the concepts of coil or UTL_FILE.


    Receive your answer on that.

    Thank you
    Madhu K.

    I'm not sure of your condition. However, here are a few example file writing Oracle's XML to disk.

    SQL> drop table test_clob;
    
    Table dropped.
    
    SQL> CREATE TABLE test_clob (id INTEGER,clob_col CLOB);
    
    Table created.
    SQL> ed
    Wrote file afiedt.buf
    
      1  INSERT INTO test_clob VALUES(1,'
      2  
      3  
      4  AAA
      5  godknows
      6  xyz
      7  
      8  
      9  BBB
     10  something
     11  zbc
     12  
     13  
     14  CCCC
     15  whoknows
     16  mon
     17  
     18* ')
    SQL> / 
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> DECLARE
      2   v_xml                 XMLTYPE ;
      3    v_doc                 XMLDOM.DOMDocument;
      4    v_dir                 VARCHAR2(2000);
      5    v_file                VARCHAR2(2000);
      6  BEGIN
      7    v_dir := 'TEST_DIR';
      8    v_file := 'emp.xml'; -- name of the output file
      9    SELECT xmltype(clob_col)
     10    INTO v_xml
     11    FROM test_clob
     12    WHERE id=1;
     13    v_doc := DBMS_XMLDOM.NEWDOMDOCUMENT(v_xml);
     14    DBMS_XMLDOM.WRITETOFILE(v_doc, v_dir||'\'||v_file, 'UTF-8');
     15    DBMS_XMLDOM.FREEDOCUMENT(v_doc);
     16  END;
     17  / 
    
    PL/SQL procedure successfully completed.
    
    SQL>
    

    - and the generated file:

    C:\>type emp.xml
    
    
      
        AAA
        godknows
        xyz
      
      
        BBB
        something
        zbc
      
      
        CCCC
        whoknows
        mon
      
    
    
    C:\>
    

    Another way:

    ---------------------------------------------------------
    SQL> DECLARE
      2    v_clob   CLOB := EMPTY_CLOB;
      3    v_amount INTEGER;
      4    /*** Curtesy to odie_63 ***/
      5    CURSOR cur_crl IS
      6      SELECT xmltype(response_file, nls_charset_id('CHAR_CS')).getclobval() rfile
      7               FROM clarity_response_log;
      8   /***************/
      9  BEGIN
     10    dbms_lob.createtemporary(v_clob, TRUE);
     11    FOR i IN cur_crl LOOP
     12      v_amount := DBMS_LOB.GETLENGTH(i.rfile);
     13      Dbms_LOB.WRITEAPPEND(v_clob, v_amount, i.rfile);
     14      v_amount := DBMS_LOB.GETLENGTH(CHR(10));
     15      Dbms_LOB.WRITEAPPEND(v_clob, v_amount, CHR(10)); --This is for Line break.
     16    END LOOP;
     17
     18    DBMS_XSLPROCESSOR.CLOB2FILE(cl      => v_clob,
     19                                flocation => 'TEST_DIR',
     20                                fname     => 'response.xml',
     21                                csid      => 0);
     22  END;
     23  / 
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • Cannot display the page XML cannot display the XML input using the XSL stylesheet

    Hi gurus of the Oracle,.

    I got this error... .once I submitted the demand shows warning... I opened exit it shows error below... I do not understand how to fix this error... Please help me... This is the CODE of PROCEDURE STORED PL/SQ L...

    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Fix the error and then click the Refresh button, or try again later.


    --------------------------------------------------------------------------------

    A semi colon was expected. Error during processing of the resources ' http://orappsus64.tsindia.in:8009/OA_CGI/FNDWRR.exe?temp_id...

    COGNOS Quintiles/IT/J & J < CP_PROJECT > < / CP_PROJECT >
    ----------------------------^
    n-left: 1em; "text-indent:-2em" > < GL_MAIN_PERIOD > Jun-12 < / GL_MAIN_PERIOD >
    < TOTAL_REVENUE > 4026.14 < / TOTAL_REVENUE >
    < GL_PERIOD > Jun-12 < / GL_PERIOD >
    < / G_TOTAL_REVENUE_CAT >

    -------------------------------------------------------

    THIS IS MY LOG FILE
    ----------------------------------------------------------
    [01/10/12 10:44:26] [main] From service GSF with simultaneous process id is 157635.
    [01/10/12 10:44:26] [main] Initialization parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads = 5
    [01/10/12 10:44:26] [Thread-22] Wire service commissioning.
    [01/10/12 10:44:26] [Thread 23] Wire service commissioning.
    [01/10/12 10:52:33] [OPPServiceThread1] Post-processing application 1296337.
    [01/10/12 10:52:33] [157635:RT1296337] The execution of the actions of post-processing for request 1296337.
    [01/10/12 10:52:34] [157635:RT1296337] From XML Publisher postprocessing action.
    [01/10/12 10:52:34] [157635:RT1296337]
    Model code: XXTGSCPR004
    Model app: PA
    Language: en
    Territory: U.S.
    Output type: EXCEL
    [100112_105234216] [] [EXCEPTION] [DEBUG] - set preferences PreferenceStore-
    [100112_105234216] [] [EXCEPTION] [DEBUG] - environment variables stored in EnvironmentStore-
    [100112_105234216] [[EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.] LOW]:-[1]
    [100112_105234216] [] [EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]: [0]
    [100112_105234216] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]: [300]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [NLS_CHARACTERSET]: [US7ASCII]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [RESP_APPL_ID]:-[1]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [NLS_LANGUAGE]: [AMERICAN]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]: [1]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]: [2]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]: [.,]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [APPS_JDBC_URL]: [jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS_LIST = (LOAD_BALANCE = YES) (FAILOVER = YES) (ADDRESS = (PROTOCOL = tcp)(HOST=orappsus64.tsindia.in) (PORT = 1530))) (CONNECT_DATA = (SID = clone)))]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [RESP_ID]:-[1]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]: [500]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]: [false]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [USER_ID]:-[1]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_TERRITORY]: [AMERICA]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]: [false]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]: [true]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]: [DD-MON-RR]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]: [5]
    [100112_105234218] [[EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.] HIGH]:-[1]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_SORT]: [BINARY]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]: [AMERICAN]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [LOGIN_ID]:-[1]
    [100112_105234218] [] [EXCEPTION] [DEBUG] - properties stored in the Java System Properties-
    [100112_105234219] [] [EXCEPTION] [DEBUG] [APPLTMP]: [AP1/oracle/PROD01/inst/apps/clone_orappsus64/appltmp]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.runtime.name]: [Java (TM) SE Runtime Environment]
    [100112_105234219] [EXCEPTION] [DEBUG] [sun.boot.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386]]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.vm.version]: [11: 0 - b15]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [OVERRIDE_DBC]: [true]
    [100112_105234219] [EXCEPTION] [DEBUG] [dbcfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.vm.vendor]: [Sun Microsystems Inc..]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.vendor.url]: [http://java.sun.com/]
    [100112_105234219] [[EXCEPTION] [DEBUG] [path.separator]]: [[:]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [APPLCSF]: [AP1/oracle/PROD01/inst/apps/clone_orappsus64/papers/appl/conc]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.vm.name]: [the server VM Java]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [file.encoding.pkg]: [sun.io]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [sun.java.launcher]: [SUN_STANDARD]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [user.country]: [US]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [sun.os.patch.level]: [unknown]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.vm.specification.name]: [Java Virtual Machine specifications]
    [100112_105234220] [EXCEPTION] [DEBUG] [user.dir]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log]]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.runtime.version]: [1.6.0_10 - b33]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [CLIENT_PROCESSID]: [25943]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.awt.graphicsenv]: [sun.awt.X11GraphicsEnvironment]
    [100112_105234220] [EXCEPTION] [DEBUG] [java.endorsed.dirs]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [os.arch]: [i386]
    [100112_105234221] [EXCEPTION] [DEBUG] [JTFDBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [java.io.tmpdir]: [tmp]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [line.separator]:]
    ]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [java.vm.specification.vendor]: [Sun Microsystems Inc..]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [os.name]: [Linux]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]: [1]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [CPID]: [157635]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [sun.jnu.encoding]: [UTF-8]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]: [stderr: off]
    [100112_105234221] [][EXCEPTION] [DEBUG] [java.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386/server:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/.. /lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib32:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib:/AP1/oracle/PROD01/apps/apps_st/appl/cz/12.0.0/bin:/AP1/oracle/PROD01/apps/apps_st/appl/iby/12.0.0/bin:/AP1/oracle/PROD01/apps/ apps_st/appl/PON/12.0.0/bin:/ap1/Oracle/PROD01/apps/apps_st/appl/SHT/12.0.0/lib:/usr/java/packages/lib/i386:/lib:/usr/lib]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.specification.name]: [Java platform API specification]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.class.version]: [50.0]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [sun.management.compiler]: [HotSpot Tiered compilers]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [queue_appl_id]: [0]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [os.version]: [2.6.18 - 128.el5]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]: [true]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [user.home]: [home/applmgr01]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [user.timezone]: [Asia/Kolkata]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.awt.printerjob]: [sun.print.PSPrinterJob]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [file.encoding]: [UTF-8]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.specification.version]: [1.6]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [CACHEMODE]: [PUBLISHED]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [conc_queue_id]: [6269]
    [100112_105234222] [][EXCEPTION] [DEBUG] [java.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/apps_st/comn/java/lib/appsborg2.zip:/AP1/oracle/PROD01/apps/apps_st/comn/java/classes]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [user.name]: [applmgr01]
    [100112_105234222] [EXCEPTION] [DEBUG] [DBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.vm.specification.version]: [1.0]
    [100112_105234222] [EXCEPTION] [DEBUG] [java.home]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre]]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [sun.arch.data.model]: [32]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [user.language]: [in]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.specification.vendor]: [Sun Microsystems Inc..]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [mode java.vm.info]: [mixed]
    [100112_105234223] [EXCEPTION] [DEBUG] [logfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log/FNDOPP157635.txt]]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.version]: [1.6.0_10]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [JAVA. EXT. DIRS]:[AP1/ORACLE/PROD01/APPS/TECH_ST/10.1.3/APPSUTIL/JDK/JRE/LIB/EXT:/USR/JAVA/PACKAGES/LIB/EXT]
    [100112_105234223] [][EXCEPTION] [DEBUG] [sun.boot.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/resources.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/sunrsasign.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jsse.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jce.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/AP1/oracle/PROD01/apps/tech_ St/10.1.3/appsutil/JDK/JRE/classes]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.vendor]: [Sun Microsystems Inc..]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]: [2]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [file.separator]:]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.vendor.url.bug]: [http://java.sun.com/cgi-bin/bugreport.cgi]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [sun.io.unicode.encoding]: [UnicodeLittle]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [sun.cpu.endian]: [little]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [APPLOUT]: [out]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [sun.cpu.isalist]:]
    [01/10/12 10:52:35] [UNEXPECTED] [157635:RT1296337] java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:285)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
    Caused by: oracle.xdo.parser.v2.XMLParseException: expected '; '.
    at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:337)
    at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:305)
    at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
    ... more than 17

    [01/10/12 10:52:35] [157635:RT1296337] Over the actions of post-processing to request 1296337.
    [GC 8059K - > 6286K (8692K), dry 0,0076290]
    [Full GC [unloading class sun.reflect.GeneratedSerializationConstructorAccessor17]]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor19]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor18]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor13]
    6286 K - > 3865 K (8692 K), dry 0,0446370]

    Please help big appriciation.

    Thank you

    Siddarth.

    OK, the solution is quite "simple" then.
    Each string that can contain XML reserved characters must be escaped before concatenating XML tags.

    I see that the code has already some replace(column_name, '&', ''), perhaps that was added in the same goal, but a bad solution.

    A better solution would be to use the SQL/XML functions, but it would mean that the refactoring cursors.
    Therefore, an intermediate solution (if you want to keep '&' characters in the output) is to escape the chain properly.

    For example, in the GET_PROJECTS cursor:

    CURSOR get_projects ( p_customer_id            IN    NUMBER
                        , p_bu_vertical            IN    VARCHAR2
                        , p_line_of_business    IN    VARCHAR2
                       -- , p_period_set_name        IN    VARCHAR2
                        , p_gl_period_from        IN    VARCHAR2
                        , p_gl_period_to        IN    VARCHAR2
                        , p_project_id_FROM        IN    NUMBER
                        , p_project_id_to        IN    NUMBER
                        , p_organization_name  IN    VARCHAR2
                        ) IS
    SELECT DISTINCT   replace(pa.name, '&','') project_name
         ,pa.project_id
         , utl_i18n.escape_reference(pa.segment1) as project_number   --< Here
         , pa.project_currency_code
         , hp.party_id
    ...
    

    This should solve the problem with the CP_PROJECT tag.
    Repeat on the other columns if necessary.

  • Creation of XML file using blackberry waterfalls

    Hi all

    I use blackberry stunts to create a xml file, which will consist of data QMessage.

    The code that I am by train is as below: -.

       foreach (const Message &message, inboxMessages) {
    
        // Creating QVariant Map for each Message object
    
        QVariantMap messageMap;
        messageMap["address"] = QVariant();
        messageMap["date"]
        messageMap["subject"] = QVariant(message.subject());
        messageMap["body"] = ...........
    
        / Adding this object to Qvariant List
        QVariantList messageList= QVariantList() << QVariant(messageMap);
    
        }  // end of for each loop
    
    QVariantMap topLevelMessageMap;
    topLevelMessageMap[".root"] = QVariant("messages");
    topLevelMessageMap["message"] = QVariant(messageList);
    QVariant myData = QVariant(topLevelMessageMap);
    
    // Retrieve the working directory, and create a temporary .xml file in that
    // location
    QDir home = QDir::home();
    QTemporaryFile file(home.absoluteFilePath("myXMLFile.xml"));
    
    // Open the file that was created
    if (file.open()) {
        // Create an XmlDataAccess object and save the data to the file
        XmlDataAccess xda;
        xda.save(myData, &file);
    

    IN the above code, I create mannualy xml tags using the QVariant class.

    However is it possible where xml schema can be used from xslt/xsd and it may be analyzed to generate xml data with data to fill the Message class in accordance with the business logic.

    Please suggest

    What would you win? in my opinion this isn't a valid usecase for xslas you must complete all the values manually in any case.
    You can use xsl with qxmlquery xmldataaccess has no support in his favor.

  • Generate a single XML file of the multiple JDBC result set

    Hello

    I need to create a single XML file of the multiple result set. The code below is to generate a XML signle leave a single result set, but suppose we have five different tables in the same database and the tables aren't relalted to the other.

    for example: select * from SAMPLE_PRODUCT
    Select * command
    Select * LOGISTICS... and many others.


    You can create multiple sets of results by top queries but how can write all values using a JDBC result set in a single xml file? Help, please.

    a signle file xml from one generator result

    import java.io.StringWriter;
    import java.sql.Connection;
    to import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;

    Import javax.xml.parsers.DocumentBuilder;
    Import javax.xml.parsers.DocumentBuilderFactory;
    Import javax.xml.transform.OutputKeys.
    Import javax.xml.transform.Transformer;
    Import javax.xml.transform.TransformerFactory;
    Import javax.xml.transform.dom.DOMSource;
    Import javax.xml.transform.stream.StreamResult;

    to import org.W3C.DOM.document;
    Import org.w3c.dom.Element;

    public class JDBCToXML {}

    Public Shared Sub main (string args []) throws Exception {}
    DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = factory.newDocumentBuilder ();
    Doc document = builder.newDocument ();
    Element results = doc.createElement ("Results");
    doc.appendChild (results);

    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager
    .getConnection("jdbc:odbc:RIS","USER","USER");

    ResultSet rs = con.createStatement () .executeQuery ("select * from SAMPLE_PRODUCT");

    ResultSetMetaData rsmd = rs.getMetaData ();
    int colCount = rsmd.getColumnCount ();

    While (RS. Next {}
    Element line = doc.createElement ("Row");
    results.appendChild (row);
    for (int i = 1; i < = colCount; i ++) {}
    String columnName = rsmd.getColumnName (i);
    Object value = rs.getObject (i);
    Element node = doc.createElement (columnName);
    node.appendChild (doc.createTextNode (value.toString (()));
    row.appendChild (node);
    }
    }
    DOMSource domSource = new DOMSource (doc);
    TransformerFactory tf = TransformerFactory.newInstance ();
    Transformer transformer = tf.newTransformer ();
    transformer.setOutputProperty (OutputKeys.OMIT_XML_DECLARATION, 'yes');
    transformer.setOutputProperty (OutputKeys.METHOD, "xml");
    transformer.setOutputProperty (OutputKeys.ENCODING, "ISO-8859-1");
    StringWriter sw = new StringWriter();
    StreamResult sr = new StreamResult (sw);
    transform. Transform (domSource, sr);

    System.out.println (SW. ToString());

    con. Close;
    RS. Close();
    }
    }

    Thank you
    Sumit

    Published by: user8687839 on April 4, 2012 23:04

    Published by: user8687839 on April 4, 2012 23:09

    As EJP says, you really want to get the data in a single request, if possible (and I don't see why that shouldn't be the case).
    In fact, you really want to get this query to return the data as close the format you need as you can.

    If you did this on Oracle, for example, I'd get Oracle to produce XML that you can then turn (assuming that you could not itself produce the XML you want directly).
    In your case, using some db (access?), and then just get the line structure such as the conversion to XML involves the least amount of faffing about.

    Rethink the SQL and the rest should be easy.

  • Names of dynamic XML files in ODI

    Hi all

    Is there a way can we call the XML names dynamically. ?

    Here's the scenario,
    I have several XML files of the same structure to load into an Oracle table.

    I first created a root XML and gave the exact path and file name for the inversion of the XML model for the first time. The JDBC url was,
    JDBC:SNPs:XML? f = / xml/file / #XML_TEST. FILE_TEST.XML & s = XML_TEST & dod = true & ro = true

    After he hit, I changed the root XML JDBC url
    JDBC:SNPs:XML?f=/XML/file/#XML_TEST.var_FILE_NAME.XML & s = XML_TEST & dod = true & ro = true

    I created a variable * #XML_TEST.var_FILE_NAME* to get all the names of XML file.

    After that I tried to see the data from data warehouses are under previously reverse the XML model, but became the following error:
    java.sql.SQLException: while generating the DTD of the XML, an exception org.xml.sax.SAXParseException is produced by saying: element the Document root is missing.

    Do I need to change anything in the XML model or data warehouses?

    Best regards,
    VERIFIED BY VISA

    Since you are using the Variable, when you right-click and view its lack of required passage of the file, as the variable value is not determined, to do this, you need to refresh or set the variable and call the interface or other objects of ODI and loop continue to read XML files one by one and that should work data store.

  • Xml file for reading in the clob in the staging table column

    Hello

    I am trying to query the intermediate table with the database adapter that has the column type CLOB containing the XML file. How to extract the XML of CLOB and map the fields to the another final scheme variable.

    Thank you

    Published by: chaitu123 on Sep 20, 2009 08:16

    (1) when you create DBAdapter on a table that has the clob column watch closely the xsd created for the DBAdapter cloumn clob element must be a String data type

    (2) create xsd for Xml files and create the variable of the xsd element

    (3) use ora:parseEscapedXML("yourDBAdapterclobElement") for XmlFileVarilable

    Krishna

  • Cannot display the page XML cannot display the input XML using the stylesheet XSL, how to fix?

    How can I fix this error code:

    The XML page cannot be displayed

    Cannot view XML input using XSL style sheet. Fix the error and then click the Refresh button, or try again later.

    System error:-2146697211. Error during processing of resources "file:///C:/Documents and Settings/a/desktop/SMART.xslt.

    The operating system is Windows XP Home Edition.  I use browsers IE 8, Safari and Mozilla Firefox.
    I'd never see this error until I installed HDDScan (http://hddscan.com/), a diagnostic utility, to check my hard drive.   The test is a S.M.A.R.T. analysis and produces this error message when you use this software.
    A web site indicates that installing Microsoft. NET Framework can solve this problem.  I already have this class in Add Remove Programs: Microsoft .NET Framework 1.1, Microsoft .NET Framework 2.0 Service Pack 2, Microsoft. NET Framework 3.0 Service Pack 2, Microsoft .NET Framework 3.5 SP1, Microsoft. NET Framework 4 Client Profile.
    Is the problem, a missing software program or a corrupted file?  What is Microsoft. NET Framework?  I use selective with most of the disabled items in the services (except hide all Microsoft) and start more disabled under Startup.  Is there something that needs to be checked to activate a service or start to correct this error message?
    How to solve system 2146697211 errors: cannot display page XML cannot display the XML input using the XSL stylesheet?

    Hello

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. Please post your question in the MSDN forum. You can follow the link for your question.

    http://social.msdn.Microsoft.com/forums/en-us/iewebdevelopment/threads

    Hope the helps of information.

  • Create an xml file using the .xsd file

    Hi guys,.

    Version of DB: Oracle 11g

    I was wondering if I had any package that can create a xml file based on a (built-in) .xsd file. I searched but did not find any resource on the internet specific to my problem. Let's say I have an .xsd file. It is possible to load a schema and generate the XML that conform to the .xsd file using sql? If so, I want to store in a CLOB variable.

    Please point me to the right direction.

    Thank you.

    Hello

    No, there is no such functionality yet.

    To build the XML "manually", according to the XSD, for example using SQL/XML functions (XMLElement, XMLAttributes, and XMLAgg etc.).

  • How to open an XML file in Adobe Reader on a form created in LiveCycle ES2

    I need help to conversion or reading an XML file, I had sent me a form I created in Adobe LiveCycle ES2 without using Office Suite complete Adobe (I think that if I have any other programs, I wouldn't have to have additional permissions to see what I could create, don't you think?).  I'm looking to display the form in Reader or Acrobat or even in LiveCycle itself, and the course of my research I've just been hitting brick walls.  Any help out there?

    If it is Acrobat X or more later, click on tools and go to the forms section. Perhaps more Options - form data management - Import.

  • It created history list.xml InCopy files

    We have successfully used an InDesign to InCopy workflow here but have had some mysterious problems happen today. An external editor (new InCopy user) has somehow created these files in records that she worked on "history list.xml". And now, she can not see records of the story for the rest of the documents, these 05-08, that she does not yet noted.

    Any ideas on where his working method could go wrong? We went through the method with it and can not see the enormous problems, she has been right click on boxes to verify stories that is not how we do it, we usually do them all at once). And is anyone know if I can simply delete these xml files? The only person who can see the rest of the stories (chapters 05-08, is the designer who created the files.

    Screen shot 2012-05-14 at 12.30.05 PM.png

    Hello!

    The file history list are common... they are generated (if I remember) when a user renames a story in the assignments Panel (such as rename a layer or a paragraph style). This does not change the name of the story ARE related, it is more than a "cosmetic" function easier to locate some stories in the inside Panel ID and IC, especially when the ID is automatically generate history names when exporting.  For example, you can change name of history in the Panel of the assignment of '05-AcmeLayoutABC-oneday"to"Headline ".

    There are other non disturbing XML files that can be generated in the workflow, as if an InCopy user changes the order of the stories in the history/closet by dragging their story gray bars up and down. Basically these files keep track of these kinds of changes so that everyone working on the project see stories aesthetically is renamed in the Panel / new order of stories in the history/closet.

    Nothing wrong with a right-click to check both.

    I never heard of file history list making invisible stories, but yes, you should be able to delete them without problem. I'd probably sure that nobody checked stories from the INDD file and all the stories are updated, first and then close the INDD file, before you delete if.

    AM

  • I created a new library of more new playlists but cannot find the Library.xml file

    Hello

    I'm going to re - build my iTunes files from scratch, a kind of decennial event 'spring clean '. I have created a new library by using the command, click on application startup, and then began to rebuild new reading lists in the application. I can see the folder newly created the library that contains the new "iTunes Library.itl" file BUT I don't see that the iTunes Music Library.xml file. " There certainly must be one to save the data of the playlist, and probably "Get Info" should reflect today date' today... I don't see older versions.

    Although everything seems to work perfectly I don't want to have to re - visit the construction of Playlists from scratch for the next ten years! Can anyone suggest what happened to the .xml file?

    Thanks and greetings

    You can create an .xml on iTunes/file/library/Export library file and gives you the opportunity to put the Library.xml file in your iTunes Media folder - or anywhere you like.

    If you need to rebuild your playlists, you can go to iTunes, file, library, import playlist and select the .xml file.

    Normally, you do not see the .xml file in your iTunes folder.

  • The attached VI works when I run it initially to create the XML file, but by pressing once the XML file is created, it is not up-to-date. What I am doing wrong?

    The attached VI works when I run it initially to create the XML file, but when I change the data and run once the XML file is created, it is not updated with new data. What I am doing wrong?

    Thank you.

    It sounds like the logic that has been written in VI

    Internal decision of true / false:

    (file exists: false) write in the file XML, unflatten for display

    (file exists: true) read the XML file, unflatten for display

    At no time when the file exists (true case) is the XML file updated...

  • Can I automate creating a cluster in LabView using the structure of data created in a generated automatically. CSV, C header or XML file?

    Can I automate creating a cluster in LabView using the data structure created in an auto generated. CSV, C header or XML file?  I am trying to take the data structure defined in one or more of these files listed and have LabView automatically create a cluster with structure types and the same data.  (Ideally, I would like to do it with a C header file only.)  Basically, I'm trying to avoid having to create the cluster by hand, as the number of cluster elements could be very large. I looked in EasyXML and contacted the rep for the add-on.  Unfortunately, this feature was not created yet.  Did anyone done something like this before? Thanks in advance for the help.


Maybe you are looking for

  • unknown: printer model number missing tag

    I am trying to install a printer driver on my new computer, but it lacks the tag model number of my printer. The first time I plugged the two automatic download installed for model "hp LaserJet 1300 PCL 5. The icon does not resemble my printer. The d

  • Are there problems or restrictions with Xbox in the former CIS countries?

    Are there problems or restrictions with Xbox in the former CIS countries?

  • Command line of WinRAR with system Exec.vi

    I'm trying to code a program that will RAR a a folder that contains many subfolders with files in them.  WinRAR allows for codes of the command line to send to the WinRAR control via the command prompt (I have it works well).  What I want to do, is t

  • Creation of recovery disks - problems

    Hi all I wonder if anyone can help me? I recently bought a used HP Pavilion DV6 (DV6-2110ea - product number: VY095EA) laptop and I have problems with the recovery system. When I bought it, I managed to recover the system to set up the laptop back to

  • MOVIE MAKER WILL STOP RECORDING

    Everything is fine until I will review what I have recorded and before I put it in the time line, the film is cut short, but never to the same length.I play with all the settings without success. Is there a solution?  Thank you