Generate Valid XML from pl/sql

Hi,
A new-bee here. I want to know how to generate a valid xml document. I have a schema which by the way includes two other schemas. This is the code I am using but I don't know how to make sure that I insert the child nodes in the right sequence. Any sample code that you guys can provide would be greatly appreciated.
FUNCTION GenerateOrderXML(
          o_ErrorCode     OUT     NUMBER,
          o_ErrorText     OUT     VARCHAR2,
          i_AccountID     IN     document.documentid%TYPE,
          i_OrderName IN VARCHAR2) RETURN XMLType
IS
     v_Doc     XMLDOM.DOMDocument;
     v_MainNode     XMLDOM.DOMNode;
     v_RootElmt     XMLDOM.DOMElement;
     v_RootNode     XMLDOM.DOMNode;
     v_TmpCLOB     CLOB := ' ';
CURSOR CURSOR_SERVOBJ
          IS
          SELECT XMLTAG, XMLVALUE FROM SERVICEOBJECT
               WHERE SERVICEOBJECT.ID < 500
               ORDER BY SEQUENCE;
-- Create xml root element
     v_Doc := XMLDOM.newDOMDocument;
     v_MainNode := XMLDOM.makeNode(v_Doc);
     v_RootElmt := XMLDOM.createElement(v_Doc, 'OrderRequest');
     v_RootNode := XMLDOM.appendChild(v_MainNode, XMLDOM.makeNode(v_RootElmt));
     -- Add OrderName, OrderType
     AddChild(v_Doc, v_RootNode, 'orderName', i_OrderName);
     AddChild(v_Doc, v_RootNode, 'orderType', 'NA');
     -- Add all attributes
     FOR v_NameValue IN CURSOR_SERVOBJ
     LOOP
          AddChild(v_Doc, v_RootNode, v_NameValue.XMLTAG, v_NameValue.XMLVALUE);
     END LOOP;
     --     XMLDOM.writeToBuffer(v_Doc, v_Buffer);
     XMLDOM.writeToClob(v_Doc, v_TmpCLOB);
     o_ErrorCode := 0;
     RETURN XMLType.createXML(v_TmpClob);
END;

The r was a typo. The messge is correct.
Here is another problem I am having. I can't import a schema that includes another schema. When I try to register the third schema I get the following error. The first two register without any errors and when I run this
select schema_url from user_xml_schemas;
I see
http://www.bbc.com/XMLSchema/sfi.xsd
http://www.bbc.com/XMLSchema/ProductModel.xsd
So why is my third schema not importing? Can you point me to any good documentation/tutorials on XML DB.
Note: Thank you for your help so far.
ERROR at line 1:
ORA-31000: Resource 'ProductModel.xsd' is not an XDB schema document
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 131
ORA-06512: at line 6
1st Schema Heading
<xsd:schema xmlns="http://www.bbc.com/XMLSchema/bfi.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bbc.com/XMLSchema/bfi.xsd" elementFormDefault="qualified">
2nd Schema Heading
<xsd:schema xmlns="http://www.bbc.com/XMLSchema/ProductModel.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bbc.com/XMLSchema/ProductModel.xsd" elementFormDefault="qualified">
3rd Schema Heading
<xsd:schema xmlns="http://www.bbc.com/XMLSchema/ResourceOrder.xsd" xmlns:qb="http://www.bbc.com/XMLSchema/ProductModel.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bbc.com/XMLSchema/ResourceOrder.xsd" elementFormDefault="qualified">
<xsd:import namespace="http://www.bbc.com/XMLSchema/ProductModel.xsd" schemaLocation="ProductModel.xsd"/>

Similar Messages

  • Generating an xml from a pl/sql procedure

    Hi Friends,
    I have come up with a requirement to generate an xml from a pl/sql procedure.
    I did some R & D and also got some sample procedures but could not understand the datatypes being used.
    The procedure declares variables like this:
    doc                  xmldom.DOMDocument;
    mainNode         xmldom.DOMNode;
    headerElem      xmldom.DOMElement; Pls could anyone tell what do these xmldom.DOMDocument, xmldom.DOMNode and xmldom.DOMElement mean?
    Later in the procedure, these variables are assigned values like
    doc      := xmldom.newDOMDocument;
    mainNode := xmldom.makenode(doc); This went a bouncer on me.
    Pls help.
    Thanks in advance ...!

    You can check this one -- Learned this from michael.
    satyaki>
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    satyaki>
    satyaki>
    satyaki>with person_h
      2  as
      3    (
      4      select 1 id, 'M' gender, 'W' race, '170' weight from dual union all
      5      select 1, 'M', 'W', '170' from dual union all
      6      select 1, 'M', 'W', '180' from dual union all
      7      select 1, 'M', NULL, '175' from dual union all
      8      select 1, NULL, 'W', NULL from dual
      9    )
    10    select xmlelement("Person",(
    11                                 select xmlagg(xmlelement("Sex", gender))
    12                                 from (
    13                                        select distinct gender
    14                                        from person_h
    15                                        where id = 1
    16                                        and gender is not null
    17                                      ) pg
    18                                ),
    19                                (
    20                                  select xmlagg(xmlforest(race as "Race"))
    21                                  from (
    22                                         select distinct race
    23                                         from person_h
    24                                         where id = 1
    25                                       ) pg
    26                                ),
    27                                (
    28                                  select xmlagg(xmlforest(weight as "Weight"))
    29                                  from (
    30                                         select distinct weight
    31                                         from person_h
    32                                         where id = 1
    33                                       ) pg
    34                                 )
    35                     ).getstringval() Res
    36    from dual;
    RES
    <Person><Sex>M</Sex><Race>W</Race><Weight>170</Weight><Weight>175</Weight><Weight>180</Weight></Person>
    satyaki>Regards.
    Satyaki De.

  • Creating hierarchical XML from MS SQL

    Hello,
    I am trying to create a hierarchical XML from MS SQL database. I have got a SQL running:
    select distinct
    1 as Tag,
    NULL as Parent,
    X_SEQ_NUM as [Invoice!1!Invoice_Num!element],
    COALESCE(INV.ADJUSTMENT_AMT,0) as [Invoice!1!Adjusted_Total!element],
    Null as [Item!2!CostedAccrual!element],
    Null as [Item!2!QuotAcc!element],
    Null as [Item!2!Prod_Name!element]
    from S_INVOICE INV
    inner join S_INVOICE_ITEM ITEM on (ITEM.INVOICE_ID = INV.ROW_ID)
    inner join S_PROD_INT PROD on (PROD.ROW_ID = ITEM.PROD_ID)
    where
    INV.X_TAX_POINT_DT between '2010-02-01' and '2010-02-15'
    and (PROD.X_FREIGHT_FLG = 'Y' or PROD.X_INT_PROD_FLAG = 'Y')
    and X_SEQ_NUM = '1066505'
    UNION ALL
    select distinct
    2 as Tag,
    1 as Parent,
    INV.X_SEQ_NUM ,
    COALESCE(INV.ADJUSTMENT_AMT,0),
         COALESCE(ITEM.X_UNIT_PRI,0) as CostedAccrual, --costed accrual
         COALESCE(ITEM.X_QUOTED_AMT,0)/ITEM.X_EXCHANGE_RATE as QuotAcc,
         PROD.NAME as Prod_Name
    from S_INVOICE INV
    inner join S_INVOICE_ITEM ITEM on (ITEM.INVOICE_ID = INV.ROW_ID)
    inner join S_PROD_INT PROD on (PROD.ROW_ID = ITEM.PROD_ID)
    where
    INV.X_TAX_POINT_DT between '2010-02-01' and '2010-02-15'
    and (PROD.X_FREIGHT_FLG = 'Y' or PROD.X_INT_PROD_FLAG = 'Y')
    and X_SEQ_NUM = '1066505'
    ORDER by 3, 7
    for XML EXPLICIT
    ( we are on a siebel created db)
    and I get the following
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ROWSET>
    - <ROW>
    - <XML_F52E2B61-18A1-11d1-B105-00805F49916B>
    - <Invoice>
    <Invoice_Num>1066505</Invoice_Num>
    <Adjusted_Total>220.0000000</Adjusted_Total>
    - <Item>
    <CostedAccrual>200.0000000</CostedAccrual>
    <QuotAcc>0.00000000000000000000000</QuotAcc>
    <Prod_Name>Third Party Services</Prod_Name>
    </Item>
    </Invoice>
    </XML_F52E2B61-18A1-11d1-B105-00805F49916B>
    </ROW>
    </ROWSET>
    (Apologies for the lack of outlining)
    My question is about the the line "XML_F52E...." as it isn't right and I'm not sure how to proceed.
    Any thoughts?
    Thank you in advance.
    Richard

    Hi Richard,
    Not sure, if i got it correctly.
    You are talking abt the element name ?
    then, always give meaningful short name to columns in the query.

  • Generating Text files from PL/SQL

    To generate Text files from PL/SQL on SERVER, i can use UTL_FILE
    package, but how do i create text files on client ( i.e., on the
    C: drive ) by executing anonymous PL/SQL blocks.
    Thanks in advance.

    You can use DBMS_OUTPUT to display stuff to the screen and the
    SQL*Plus SPOOL command to write screen output to a file on your
    local drive.
    magic!
    APC

  • Unable to generate the XML file through SQL script. getting error PLS-00306

    I am fetching the data from cursor and generating the xml output I am getting the below error.
    When I have checked the cursor query it is fetching the data in to single column.
    Input truncated to 1 characters
    Enter value for 7: EXEC FND_CONC_STAT.COLLECT;
    DBMS_LOB.append (tmp_file, r.core_xml);
    ERROR at line 95:
    ORA-06550: line 95, column 7:
    PLS-00306: wrong number or types of arguments in call to 'APPEND'
    ORA-06550: line 95, column 7:
    PL/SQL: Statement ignored

    Hi Alex,
    thanks for the responce..
    i have fixed the issue
    i have used XMLAttributes to get the value
    SELECT XMLELEMENT (
    NAME "TranACK",
    XMLAttributes ('1' as "TranNum",
    (select distinct to_char(SYSDATE,'yyyy-mm-dd')
    from DUAL) as "PrcDate"),
    XMLFOREST (
    a.PAYMENT_ID AS "PmtID"),
    XMLFOREST (
    a.ACK_TRANSACTION_RECEIVER AS "Name1"),
    XMLFOREST (
    to_char(a.VALUE_DATE,'yyyy-mm-dd') as "ValueDate" ),
    XMLFOREST (
    a.PAYMENT_AMOUNT AS "CurAmt"),
    XMLFOREST (
    a.CURRENCY_CODE AS "CurCode")
    ).getclobval ()
    AS line_xml
    FROM XXWAP_PAYMENT_LINE_TBL a
    where a.PAYMENT_BATCH_ID=P_batch_id;

  • How to generate nested xml from a resultset

    there is a table which contains two field:key and fatherkey.
    like this:
    key fatherkey
    node1 root
    node2 node1
    node3 node2
    a tree can be builded from the table by recursion of key and fatherkey.
    now I want to use this table to generate a xml buffer.
    like this:
    <nodes>
    <node>
    <key>node1</key>
    <fkey>root</fkey>
    <node>
    <key>node2</key>
    <fkey>node1</fkey>
    <node>
    <key>node3</key>
    <fkey>node2</fkey>
    </node>
    </node>
    </node>
    </nodes>
    if oracle special sql --"Connect by" can be used ,it is so easy.
    but I can only use ansi sql.
    how to generate the xml?

    hehe, I solved it by JDom!
    source code is :
    public StringBuffer loadInitResource()
    Vector theOrphans = new Vector();
    StringBuffer theInitRes = new StringBuffer();
    Element root = new Element("NODES");
    String xsql = "SELECT KEY,FATHERKEY FROM TABLE1";
    ResultSete m_rs = stmt.executeQuery(xsql);
    try{
    while(m_rs.next())
    Element theNode = new Element("NODE");
    Element theFLD = new Element("ID");
    theFLD.addContent(m_rs.getString(1));
    theNode.addContent(theFLD);
    theFLD = new Element("SID");
    theFLD.addContent(m_rs.getString(2));
    theNode.addContent(theFLD);
    if("Root".equals(theNode.getChildText("SID").trim()))
    root.addContent(theNode);
    else if(x_setFatherRes(theNode, root))
    System.out.println("find");
    else
    theOrphans.addElement(theNode);
    Element theNode;
    int nIndex;
    boolean isDo = false;
    while(theOrphans.size()>0)
    System.out.println("find the orphan!");
    isDo = false;
    for(nIndex = 0;nIndex < theOrphans.size();nIndex++)
    theNode = (Element) theOrphans.get(nIndex);
    if(x_setFatherRes(theNode, root))
    theOrphans.remove(nIndex);
    isDo = true;
    System.out.println("found the orphan!");
    break;
    if(!isDo)
    System.out.println("some nodes could not be loaded!");
    break;
    //OutputStream out=new FileOutputStream("e:/XMLFile.xml");
    Document doc = new Document(root);
    XMLOutputter outputter = new XMLOutputter();
    outputter.setEncoding("GB2312");
    //outputter.output(doc,out);
    theInitRes = new StringBuffer(outputter.outputString(doc));
    catch(Exception e)
    m_error += e.toString() ;
    return theInitRes;
    private boolean x_setFatherRes(Element theSon,Element theFather)
    boolean isOK = false;
    String sFatherSID = theFather.getChildText("ID");
    if(sFatherSID != null)
    if(theSon.getChildText("SID").equals(sFatherSID.trim()))
    theFather.addContent(theSon);
    isOK = true;
    if(isOK)
    return isOK;
    Iterator iterator = theFather.getChildren().iterator();
    while(iterator.hasNext())
    Element theFather2 = (Element) iterator.next();
    isOK = x_setFatherRes(theSon,theFather2);
    if(isOK)
    break;
    return isOK;
    enjoy it!

  • Generating next number from the SQL database using java

    Hi friends, I have a problem and need your help. I am working on a project about submitting claims form through the adobe PDF file and SQL database. I have problem working on a web service (written in java) that will generate the next Invoice Number from the SQL Database table. The field type for the column is text(var char). *Example: I first need to get into the table and search for the last Invoice number in the table and if the last invoice number in the table from the database is 3, i would want to generate the next number which is 4 and filled it up in the PDF file through web service that i am implementing. Can you all provide me some guidelines on how to implement this method in my web service?
    Thanks a lot. I need it by today. Hope someone can reply this as soon as possible.
    Lim89
    Edited by: LIM89 on Apr 2, 2008 7:10 PM

    far simpler to use a sequence generator, which most databases support.
    Suggested method to get the max value in the column is NOT secure, unless you lock the entire table for update before you do so, which is a severe performance penalty.

  • CFPDFFORM fails to generate valid XML

    I've been trying to figure out exactly why this tag has been consistently failing on one of my two production boxes for 3 weeks, with very limited success.
    On system one, it works fine, and generates the following for a standard PDF:
    <?xml version="1.0" encoding="UTF-8"?>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
         <fields>
              <field name="HIGH SCHOOL DIPLOMA"/>
              ...fields deleted for brevity...
              <field name="Print"/>
         </fields>
         <ids original="6F185C876244254CBA5693F8CDC7D0AA" modified="25576F3D95DBC54B87BDFC8CCAAE408D"/>
    </xfdf>
    On system two, however, the XML generated looks a little different:
    <?xml version="1.0" encoding="UTF-8"?>
    <xfdf xml:xml:space="preserve">
         <fields>
              <field name="HIGH SCHOOL DIPLOMA"/>
              ...fields deleted for brevity...
              <field name="Print"/>
         </fields>
         <ids original="6F185C876244254CBA5693F8CDC7D0AA" modified="25576F3D95DBC54B87BDFC8CCAAE408D"/>
    </xfdf>
    This happens for every single pdf file we have tried.
    Here's the code to generate the xml:
    <cfpdfform action="read" XMLdata="tempvar" source="/.../cool.pdf">
    </cfpdfform>
    <cfdump var="#tempvar#">
    We are running in JBOSS EWP 5.2 as an expanded CF10 cfusion.war on patch level 11 with Java 1.7.0_21 on a RHEL 5.9
    I have reinstalled Java, Jboss, and cold fusion from scratch, and even as a last ditch effort copied the whole tree from box one to box two to try to resolve the issue, all to no effect.  I'm looking for direction on how we can proceed and which jar we have to look into to resolve the issue, or what system level utility can be used to further diagnose the problem.
    We do have a couple work arounds, but none of them without significant level of effort, and time required to move to the new toolset in our existing code.

    The r was a typo. The messge is correct.
    Here is another problem I am having. I can't import a schema that includes another schema. When I try to register the third schema I get the following error. The first two register without any errors and when I run this
    select schema_url from user_xml_schemas;
    I see
    http://www.bbc.com/XMLSchema/sfi.xsd
    http://www.bbc.com/XMLSchema/ProductModel.xsd
    So why is my third schema not importing? Can you point me to any good documentation/tutorials on XML DB.
    Note: Thank you for your help so far.
    ERROR at line 1:
    ORA-31000: Resource 'ProductModel.xsd' is not an XDB schema document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 131
    ORA-06512: at line 6
    1st Schema Heading
    <xsd:schema xmlns="http://www.bbc.com/XMLSchema/bfi.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bbc.com/XMLSchema/bfi.xsd" elementFormDefault="qualified">
    2nd Schema Heading
    <xsd:schema xmlns="http://www.bbc.com/XMLSchema/ProductModel.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bbc.com/XMLSchema/ProductModel.xsd" elementFormDefault="qualified">
    3rd Schema Heading
    <xsd:schema xmlns="http://www.bbc.com/XMLSchema/ResourceOrder.xsd" xmlns:qb="http://www.bbc.com/XMLSchema/ProductModel.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bbc.com/XMLSchema/ResourceOrder.xsd" elementFormDefault="qualified">
    <xsd:import namespace="http://www.bbc.com/XMLSchema/ProductModel.xsd" schemaLocation="ProductModel.xsd"/>

  • Generating PDF file from PL/SQL

    Hello,
    I'm new using XML DB. I have XML data and a stylesheet stored into the database but i don't know how to generate PDF files.
    I' ve already tried to load Apache FOP into the DB and that's work very well. Is there any other solution using only Oracle's PL/SQL environment ???
    Thanks for your help.
    Lionel from Switzerland.

    can you provide the steps that you used to load fop into the database?
    which db version, and which fop version? When I tried to follow the cmsxdb load into a 10g instance I had numerous resolution errors.
    please help

  • Why not all jars picked up by ojdeloy and how to generate build.xml from command line and not JDEV GUI - quick question

    Hi All
    We have 11.1.1.7 ojdeploy to compile our app.
    We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
    eg:
      <path id="classpath">
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
    </path>
    Log Output -
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
    [ora:ojdeploy] -g
      [ora:ojdeploy] -Xlint:all
      [ora:ojdeploy] -Xlint:-cast
    [ora:ojdeploy] -Xlint:-empty
      [ora:ojdeploy] -Xlint:-fallthrough
      [ora:ojdeploy] -Xlint:-path
      [ora:ojdeploy] -Xlint:-serial
      [ora:ojdeploy] -Xlint:-unchecked
      [ora:ojdeploy] -source 1.6
      [ora:ojdeploy] -target 1.6
      [ora:ojdeploy] -verbose
      [ora:ojdeploy] -encoding Cp1252
      [ora:ojdeploy] -classpath
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
      [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
    1- Is it because it depends on how jpr or jws are configured ?
    2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?

    The first  warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
    The second warning is about you not installing acpid.
    The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
    And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
    When I do lspci -v I get:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at d0f0 [size=8]
    Memory at c0000000 (32-bit, prefetchable) [size=256M]
    Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
    Last edited by gog (2009-10-15 23:59:49)

  • JPA - generate orm.xml from existing JPA annotations

    Hi,
    Is there any tool which can be used to generate the orm.xml file from existing JPA java annotated source files?
    Thank you,
    Virgil

    Yes. Map some of the classes with JPA annotations or orm.xml, for the other leave them unmapped, and don't list them in your persistence.xml. Then in a SessionCustomizer you can load your native EclipseLink project.xml file using the XMLProjectReader, and then manually add the descriptors from the Project to the JPA EclipseLink Session using DatabaseSession.addDescriptors(Project).

  • Generating SSP checksum from PL/SQL?

    Hi,
    If you use SSP and need to call a page from a PL/SQL based page is there an API that can be used to generate a checksum for the URL?
    Regards Pete

    Check -
    SSP checksum in Javascript envoked URL
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

  • Validating XML with PL/SQL parser

    How can i validate a xml that is on a buffer with the grammar
    stored in a BLOB column of o table? I'm using PL/SQL parser and
    i can parse it correctly but i don't know how can i validate it
    because my grammar is stored in DB.
    null

    Ana Lucia (guest) wrote:
    : How can i validate a xml that is on a buffer with the grammar
    : stored in a BLOB column of o table? I'm using PL/SQL parser
    and
    : i can parse it correctly but i don't know how can i validate
    it
    : because my grammar is stored in DB.
    You can't currently but this will be available in our next
    release.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Generate connections.xml using only sql commands

    Hello,
    I have a database, where all connection information (Hostname, User, Port, SID, etc.) are stored for several databases. Now I want to create the connections.xml which I can import to the SQL Developer. The idea is to administer the connection information in a single point. Then anyone can query and import the connections easily to the SQL Developer.
    The structure itself was easy to understand and implement using XMLELEMENT. My Problem is, how can I save the password respectively how is the password encrypted? I have found several tools that can decode the password, but I have the plaintext. I found a solution using Jython, but I want to use only SQL. There should be a suitable algorithm in the dbms_crypto package, I hope. I don´t want to use other tools or languages.
    Thanks for help,
    Frank
    Edited by: frank_nillies on 20.03.2013 04:28
    - renamed connection.xml to connections.xml

    Hello,
    I have a database, where all connection information (Hostname, User, Port, SID, etc.) are stored for several databases. Now I want to create the connections.xml which I can import to the SQL Developer. The idea is to administer the connection information in a single point. Then anyone can query and import the connections easily to the SQL Developer.
    The structure itself was easy to understand and implement using XMLELEMENT. My Problem is, how can I save the password respectively how is the password encrypted? I have found several tools that can decode the password, but I have the plaintext. I found a solution using Jython, but I want to use only SQL. There should be a suitable algorithm in the dbms_crypto package, I hope. I don´t want to use other tools or languages.
    Thanks for help,
    Frank
    Edited by: frank_nillies on 20.03.2013 04:28
    - renamed connection.xml to connections.xml

  • Generating XML from Database using XSQL

    Hi ,
    I have been using Reports as an intermidiate to generate XML (by giving concurrent program o/p type as XML). Now, i want it to be done from SQL or PL/SQL. I am able to achieve this using XSQL functions. I placed the SQL in a .sql file and registered it as a concurrent program. It was giving me XML output.
    I have two problems here.
    1. How can i know whether i have generated valid xml or not?
    2. When i am linking this concurrent program to XML Publisher, publisher is not able to read thie output from the concurrent prograam. It is erroring out. Why?
    Thanks
    sap

    Save the XML file - try to open it with IE and/or Firefox.
    If that doesn't work you know already something is wrong.
    You may try to cut&paste it into notepad and save as UTF-8.
    Then try it out with the Template Builder for Wrod.
    If you can't figure it out and run the report with a SMALL dataset six (ie. 1)
    and post it here.

Maybe you are looking for