Doubt on xml..

I am using apex.. and fetchiNG data in xml format..
Now in plsql ..There are functions ..like extract which can be used to extract the values..
But i find it difficult to understand
since i find making a function which shall use substring and instr to find the value .. .
Wait let me show you the example of xml..data
<?xml version="1.0" encoding="WINDOWS-1252"?>
<CraftyResponse>
<address_data_paf_compact>
<thoroughfare_count>1</thoroughfare_count>
<thoroughfare>
<delivery_point_count>5</delivery_point_count>
<delivery_point>
*<organisation_name>THE BAKERY</organisation_name>*
<department_name/>
<po_box_number/>
<building_number>1</building_number>
<sub_building_name/>
<building_name/>
<udprn>12345678</udprn>
</delivery_point>
<delivery_point>
*<organisation_name>FILMS R US</organisation_name>*
<department_name/>
<po_box_number/>
<building_number>3</building_number>
<sub_building_name/>
<building_name/>
<udprn>12345679</udprn>
</delivery_point>
<delivery_point>
*<organisation_name>FAMILY BUTCHER</organisation_name>*
<department_name/>
<po_box_number/>
<building_number>7</building_number>
<sub_building_name/>
<building_name/>
<udprn>12345680</udprn>
</delivery_point>
<delivery_point>
<organisation_name/>
<department_name/>
<po_box_number/>
<building_number/>
<sub_building_name/>
<building_name>BIG HOUSE</building_name>
<udprn>12345681</udprn>
</delivery_point>
<delivery_point>
<organisation_name/>
<department_name/>
<po_box_number/>
<building_number>17</building_number>
<sub_building_name/>
<building_name>LITTLE COTTAGE</building_name>
<udprn>12345682</udprn>
</delivery_point>
<dependent_thoroughfare_name/>
<dependent_thoroughfare_descriptor/>
<thoroughfare_name>HIGH</thoroughfare_name>
<thoroughfare_descriptor>STREET</thoroughfare_descriptor>
</thoroughfare>
<double_dependent_locality/>
<dependent_locality>CRAFTY VALLEY</dependent_locality>
<town>BIG CITY</town>
<postal_county>POSTAL COUNTY</postal_county>
<traditional_county>TRADITIONAL COUNTY</traditional_county>
<postcode>AA1 1AA</postcode>
</address_data_paf_compact>
</CraftyResponse>
Now how do i extract values of town, postal_country building_name,
I know we can use extract to get the result ..But how exactly to use  extract here I dotn know..
The other method is a easier method.. which involves creating your own function which uses substr ..and instr
It shal lsearch for <organisation_name> and find the orgonizatio..
I dont know which approch is betTER .. I find making my own customised function a easier and better way..
But any one has idea on extract function ..please let me know..
Any information shall be appreciated
Thanks

No Database Version specified. Anyway take a look at http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions253.htm#SQLRF06232
Maybe peeking into XML_DB Forum FAQ would give you the answer you're looking for. {forum:id=34}
Regards
Etbin

Similar Messages

  • Doubts regarding XML Form Builder

    Hi All,
          I am having some doubts regarding XML Forms (Projects) that is created using XML Form Builder. Where are exactly these projects stored. Can I edit these projects and add my own Java Functionality in these. And also the data which I fill using these project where is it stored. Suppose New Project I ve created using XML Form Builder, now I want to feed in the news. Where exactly are these news stored.
    Thanks in Advance
    Anish

    Hi Anish
    You can make the standard settings and modify the XML forms builder in line with your requirements in the options. You can set the standard paths for your project on the <b>Paths</b> tab page.
    To get a clear understanding, please go through this link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/62/ca6f365a6df84e87ba085f9b5fb350/content.htm
    Hope that was helpful
    Warm Regards
    Priya

  • Doubt in XML payload validation in PI 7.1

    Dear All,
    I understand that the PI message payload can be validated against a XSD/XML structure..
    but i do not understand its advantage as the payload will by default be validated against our source data type..
    then why do we need it to get validated against some other xml at adapter/IE level

    Dear Ravi,
    A very good question asked by you... Actually to tell there is not much of an advantage...
    What it actually does is..
    1)XML Validation allows you to check the structure of a PI message payload. The structure check is
    performed using saved data types.
    2)Syntax validation of the incoming message payload is done at the Advanced Adapter Engine and at
    the Integration Engine against their XML Schema stored in the File System.
    3)Syntax validation of outgoing message payload is done at the Integration Engine against their XML
    Schema stored in the File System.
    And regarding your question why do we need it ..." This feature is demanded by the customers. "
    Source:https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/406a97c4-748c-2a10-f2be-cb63c5b0a11f
    Rgds
    joel

  • Basic doubt about XML file generation

    Hi,
    I am new to Java. I am facing some trouble designing and implementing a particular problem involving XML files.
    Problem:
    I have an XML file which contains a set of properties and their default value. What I need to do is to read another file/stream which will have name=value strings and then, for all the names that I find there, change default value to current value. These names can appear in any order. For example,
    <name1 value=default1/>
    <name2 value=default2/>
    <name3 value=default3/>
    And I will get something like "set name3=value3 name1=value1" (This data comes to me from a stream -usb device- and not from a file). Then I should change it to
    <name1 value=value1/>
    <name2 value=default2/>
    <name3 value=value3/>
    What is the best possible way to do this in Java? This has to go into an embedded system so it will be nice if it can be done with minimum memory and less processing power.
    I am currently reading J2EEtutorial (1.4). I have not read much. But I am confused if I should be using SAX, DOM or XSLT. To speak the truth, I don't even know the difference between all those. Any help will be greatly appreciated.
    Thanks & Regards,
    Suseelan

    Use a DOM parser to parse the original XML.
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder domBuilder = domFactory.newDocumentBuilder();
    Document document = domBuilder.parse( inputStreamToFile );Then read in the contents from your USB stream into say an array or Vector. Then go through each child node in the domBuilder class, get the nodes name and see if it's in the Vector of objects from the USB stream. If it is, then replace the "Value" attribute in the dom node with what is in the Vector.
    Make sense?
    Message was edited by:
    bryano

  • A doubt in xml ..should i use extract or make my own plsql function..

    I am using apex.. and fetchiNG data in xml format..
    Now in plsql ..There are functions ..like extract which can be used to extract the values..
    But i find it difficult to understand
    since i find making a function which shall use substring and instr to find the value .. .
    Wait let me show you the example of xml..data
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <CraftyResponse>
    <address_data_paf_compact>
    <thoroughfare_count>1</thoroughfare_count>
    <thoroughfare>
    <delivery_point_count>5</delivery_point_count>
    <delivery_point>
    <organisation_name>THE BAKERY</organisation_name>
    <department_name/>
    <po_box_number/>
    <building_number>1</building_number>
    <sub_building_name/>
    <building_name/>
    <udprn>12345678</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name>FILMS R US</organisation_name>
    <department_name/>
    <po_box_number/>
    <building_number>3</building_number>
    <sub_building_name/>
    <building_name/>
    <udprn>12345679</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name>FAMILY BUTCHER</organisation_name>
    <department_name/>
    <po_box_number/>
    <building_number>7</building_number>
    <sub_building_name/>
    <building_name/>
    <udprn>12345680</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name/>
    <department_name/>
    <po_box_number/>
    <building_number/>
    <sub_building_name/>
    <building_name>BIG HOUSE</building_name>
    <udprn>12345681</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name/>
    <department_name/>
    <po_box_number/>
    <building_number>17</building_number>
    <sub_building_name/>
    <building_name>LITTLE COTTAGE</building_name>
    <udprn>12345682</udprn>
    </delivery_point>
    <dependent_thoroughfare_name/>
    <dependent_thoroughfare_descriptor/>
    <thoroughfare_name>HIGH</thoroughfare_name>
    <thoroughfare_descriptor>STREET</thoroughfare_descriptor>
    </thoroughfare>
    <double_dependent_locality/>
    <dependent_locality>CRAFTY VALLEY</dependent_locality>
    <town>BIG CITY</town>
    <postal_county>POSTAL COUNTY</postal_county>
    <traditional_county>TRADITIONAL COUNTY</traditional_county>
    <postcode>AA1 1AA</postcode>
    </address_data_paf_compact>
    </CraftyResponse>
    Now how do i extract values of town, postal_country building_name,
    I know we can use extract to get the result ..But how exactly to use extract here I dotn know..
    The other method is a easier method.. which involves creating your own function which uses substr ..and instr
    It shal lsearch for <organisation_name> and find the orgonizatio..
    I dont know which approch is betTER .. I find making my own customised function a easier and better way..
    But any one has idea on extract function ..please let me know..
    Db version is 11g
    Any information shall be appreciated
    Thanks

    Hi Thanks Marco, and odie
    Tried it.. some synatx issues..
    Was trying to understand about these functions..
    This is the structure of my table ..
    desc xml_data_tab
    Name Null Type
    XML_DATA XMLTYPE()
    This is the xml data
    <?xml version = '1.0' encoding = 'UTF-8'?><CraftyResponse>
    <address_data_paf_compact>
    <thoroughfare_count>1</thoroughfare_count>
    <thoroughfare>
    <delivery_point_count>5</delivery_point_count>
    <delivery_point>
    <organisation_name>THE BAKERY</organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number>1</building_number>
    <sub_building_name></sub_building_name>
    <building_name></building_name>
    <udprn>12345678</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name>FILMS R US</organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number>3</building_number>
    <sub_building_name></sub_building_name>
    <building_name></building_name>
    <udprn>12345679</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name>FAMILY BUTCHER</organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number>7</building_number>
    <sub_building_name></sub_building_name>
    <building_name></building_name>
    <udprn>12345680</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name></organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number></building_number>
    <sub_building_name></sub_building_name>
    <building_name>BIG HOUSE</building_name>
    <udprn>12345681</udprn>
    </delivery_point>
    <delivery_point>
    <organisation_name></organisation_name>
    <department_name></department_name>
    <po_box_number></po_box_number>
    <building_number>17</building_number>
    <sub_building_name></sub_building_name>
    <building_name>LITTLE COTTAGE</building_name>
    <udprn>12345682</udprn>
    </delivery_point>
    <dependent_thoroughfare_name></dependent_thoroughfare_name>
    <dependent_thoroughfare_descriptor></dependent_thoroughfare_descriptor>
    <thoroughfare_name>HIGH</thoroughfare_name>
    <thoroughfare_descriptor>STREET</thoroughfare_descriptor>
    </thoroughfare>
    <double_dependent_locality></double_dependent_locality>
    <dependent_locality>CRAFTY VALLEY</dependent_locality>
    <town>BIG CITY</town>
    <postal_county>POSTAL COUNTY</postal_county>
    <traditional_county>TRADITIONAL COUNTY</traditional_county>
    <postcode>AA1 1AA</postcode>
    </address_data_paf_compact>
    </CraftyResponse>
    Edited by: susf on Aug 29, 2012 7:00 PM

  • Little doubt about xml and jspx, someone would give me a explaiation please

    Hi!!
    What's the diference between a .jspx and .xml file? do they have the same porpose? can I replace a .jspx for .xml file ?
    Thanks!!!

    If you can't get AOL to talk you thru it, then it's time to stop using AOL.
    You are paying extra for a useless service. You already pay (and HAVE TO PAY) to the internet company that gives you the internet modem and conneciton to the internet, and they are be giving you 1-5 free email addresses with that account. (call them if you never set them up).
    There is no guarantee you don't have a problem with your mail setup on your computer, but this is the right time for you to set up your [email protected] accounts, download all your AOL mail including your address book (FROM AOL'S WEBISTE via Safari) to your hard drive, make sure you are using an external drive with Time Machine and doing daily if not hourly backups, and start sending emails to your friends and family and business from the new mail account(s).
    Otherwise you can call someone who saves computers and AOL accounts for a living and pay them $25- $100 hour....

  • Doubt :  Send XML Data to BW

    Hi everyone,
    I need to <u>send XML Data to BW</u> and to do so I was following the steps of the document "How to Send XML Data to BW".  OK...
    But I got stucked when I was about to reach these 2 links recommended to:
    1) An XML 3.0 parser has to be installed
        link:  <i>http://download.microsoft.com/download/xml/Install/3.0/WIN98Me/EN-US/msxml3.exe</i>
    2)Afterwards, you have to run the Xmlinst.exe Replace Mode Tool.
         link: 
    <i>http://www.msdn.microsoft.com/msdn-files/027/001/469/XmlInst.exe</i>
      It seems these two links can't be reached anymore... I don't know why.
    And I haven't found which are the correct ones.
    Could you please let me know what are the 2 files to be installed in order to continue with this issue?
    Thanks a lot for your help.
    Marcos Itri

    Thank you Raja,
    I've found the first one, which I've already installed... but I couln't find exactly the second one that refeers to Replace Mode Tool.
    I will keep looking for that, eventhough I don't know if it's necessary or not (I'm just follow the step-by-step solution on How-to).
    Thanks one more time,
    Marcos

  • Doubt in XML Forms

    Hi,
        I have created a XML form for announcements. In that I have a metadata display list(a combo box). In that list only one item can be selected at a time. Is there any way to make the meta data properties multi-select in the form?
    Thanks in advance..
    Regards,
    Pooja.

    Hi Pooja,
       Using standard configuration it's not possible.
    Patricio.

  • Can't Figure Out How To Import XML into a Table?

    HELP!
    I've been using InDesign for several years now... but everything Ive ever done has been basic one off layout concepts.
    I am working on a website for a musical theater actress and for her resume, Id like to make a PDF which lists in table format the show, theatre and role she had for each job.
    I could do this manually... but Id really like to learn how to just reuse the same XML data that I have for her website and import it into InDesign.
    I have looked at Adobe's help file, I have scoured the internet, and I still can't figure it out... I have done like the adobe support file says... and I cant seem to get the values I create in her resume xml file to show up in a table I create in InDesign.
    I even tried to simplify it for the learning process and did something as basic as an XML file that has 5 colors... couldnt even get that working.
    So could someone explain it to me like Im a 5 year old... how to take a XML file, import it, place it in a table and have the data actually show up in the table.
    thanks,
    brian

    Are you sure you want to use XML with tables for this? No doubt importing XML into tables is useful for some specialized tasks, such as importing formatting information inside the XML itself, but for most of the familiar tasks that XML excels at, tables are neither necessary nor useful.
    In my (limited) experience, if the XML elements are well-differentiated, by which I mean different types of data have their own distinctive tags, then the special powers of XML can be exploited more fully using the more familiar tagged text, nested tags etc. in ordinary text frames using paragraph breaks, tab characters, etc. to achieve a suitably "tabular" finished appearance.
    If you must import XML into tables, I recommend Adobe's own PDF "Adobe InDesign CS3 and XML: A Technical Reference" availabe here:
    http://www.adobe.com/designcenter/indesign/articles/indcs3ip_xmlrules.pdf
    It sounds very daunting -- the words "technical reference" make me shudder -- but actually it's very readable and not very technical at all. Some nice pics and everything!
    Jeremy

  • Doubt in query statement in receiver jdbc

    HI
    Again a doubt in XML format for receiver jdbc.
    I want to execute a query
    select sum(col1) sum(col2) from tablename where startdate <= tdate.
    My payload message looks like this
    <AggregateFn action="SQL_QUERY">
      <access>SELECT sum(Weight) FROM KmFuelTrace WHERE resourceno = '$resno$' AND startdate = '$sdate1$'</access>
    - <key>
      <resno compareOperation="EQ">CHILLED_02</resno>
      <sdate1 compareOperation="LT">06/08/2007</sdate1>
       </key>
      </AggregateFn>
    I am getting a error "Data type mismatch in criteria expression" .
    I have defined the datatypes correctly with DateTrans function . I think its the problem with access statement.
    How to give the selection criteria for non-text fields. (can i use same quotes and dollar combination for date field too) . Or is there any other mistake in the xml structure

    Aarthi,
    Try the following
    <AggregateFn action="SQL_QUERY">
    <access>SELECT sum(Weight) FROM KmFuelTrace WHERE resourceno = '$resno$' AND startdate = $sdate1$</access>
    - <key>
    <resno compareOperation="EQ">CHILLED_02</resno>
    <sdate1 compareOperation="LT">06/08/2007</sdate1>
    </key>
    </AggregateFn>
    Also check what us the date format that database uses and give the similar format.
    Regards,
    Sudharshan N A
    Message was edited by:
            Sudharshan Aravamudan

  • XML File Tags Validation Using Oracle.

    Dear Forum Members,
    I have a doubt regarding XML File Tags Validation.
    First I will explain My Requirement.
    1. I have to generate an XML File in a Predefined Format.
    2. User will add some data in the elements, or he may copy the same elements and change to some data like
    <Emp><Empno>10</Empno></Emp>
    The above tag will be generated by the application.
    User will copy the same and change to
    <Emp><Empno>20</Empno></Emp>.
    Now he want to Upload the Changed XML File to the Database table. This is done by parsing the XML File.
    The Creation and Parsing section is over. But before Parsing I want to check for the Validation of the XML Tag. i.e. whether the tag he has copied <Emp><Empno>10</Empno></Emp> is chaned by mistake to
    <Emp><Empno>10</Empno></Emps> or some other Mistakes.
    What I have to Do..
    Regards
    Madhu K

    I still think that my previous response is valid:
    If you e.g. include (concat) your DTD in your XML it will be validated against it!
    See e.g.:
    michaels>  select xmltype (xml_dtd || your_xml) your_validated_xml
      from (select '<SSDDATA>
                     <KEY><![CDATA[6707]]></KEY>
                     <FINISHED><![CDATA[This is a Finished data ]]></FINISHED>
                     <DEFAULT></DEFAULT>
                     <MIN></MIN>
                     <MAX></MAX>
                     <UNIT></UNIT>
                     <FORMULA></FORMULA>
                     <FORMULA></FORMULA>
                     <FORMULA-DESC></FORMULA-DESC>
                     <ADVANCED-FORMULA></ADVANCED-FORMULA>
                     <INTERNAL-ADAPT-DESC></INTERNAL-ADAPT-DESC>
                     <DATA-DESC-REPORT></DATA-DESC-REPORT>
                     <REV-DESC></REV-DESC>
                    </SSDDATA>' your_xml,
                   '<?xml version="1.0"?>
                    <!DOCTYPE SSDDATA [
                      <!ELEMENT SSDDATA (KEY,FINISHED,DEFAULT,MIN,MAX,UNIT,(FORMULA)+,FORMULA-DESC,ADVANCED-FORMULA,INTERNAL-ADAPT-DESC,DATA-DESC-REPORT,REV-DESC)>
                      <!ATTLIST SSDDATA xmlns CDATA #FIXED "">
                      <!ELEMENT KEY (#PCDATA)>
                      <!ATTLIST KEY xmlns CDATA #FIXED "">
                      <!ELEMENT FINISHED (#PCDATA)>
                      <!ATTLIST FINISHED xmlns CDATA #FIXED "">
                      <!ELEMENT DEFAULT EMPTY>
                      <!ATTLIST DEFAULT xmlns CDATA #FIXED "">
                      <!ELEMENT MIN EMPTY>
                      <!ATTLIST MIN xmlns CDATA #FIXED "">
                      <!ELEMENT MAX EMPTY>
                      <!ATTLIST MAX xmlns CDATA #FIXED "">
                      <!ELEMENT UNIT EMPTY>
                      <!ATTLIST UNIT xmlns CDATA #FIXED "">
                      <!ELEMENT FORMULA EMPTY>
                      <!ATTLIST FORMULA xmlns CDATA #FIXED "">
                      <!ELEMENT FORMULA-DESC EMPTY>
                      <!ATTLIST FORMULA-DESC xmlns CDATA #FIXED "">
                      <!ELEMENT ADVANCED-FORMULA EMPTY>
                      <!ATTLIST ADVANCED-FORMULA xmlns CDATA #FIXED "">
                      <!ELEMENT INTERNAL-ADAPT-DESC EMPTY>
                      <!ATTLIST INTERNAL-ADAPT-DESC xmlns CDATA #FIXED "">
                      <!ELEMENT DATA-DESC-REPORT EMPTY>
                      <!ATTLIST DATA-DESC-REPORT xmlns CDATA #FIXED "">
                      <!ELEMENT REV-DESC EMPTY>
                      <!ATTLIST REV-DESC xmlns CDATA #FIXED "">
                    ]>' xml_dtd
              from dual)
    YOUR_VALIDATED_XML                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
    <?xml version="1.0"?>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                    <!DOCTYPE SSDDATA [                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ELEMENT SSDDATA (KEY,FINISHED,DEFAULT,MIN,MAX,UNIT,(FORMULA)+,FORMULA-DESC,ADVANCED-FORMULA,INTERNAL-ADAPT-DESC,DATA-DESC-REPORT,REV-DESC)>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                      <!ATTLIST SSDDATA xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ELEMENT KEY (#PCDATA)>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ATTLIST KEY xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ELEMENT FINISHED (#PCDATA)>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                      <!ATTLIST FINISHED xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                      <!ELEMENT DEFAULT EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ATTLIST DEFAULT xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ELEMENT MIN EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ATTLIST MIN xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ELEMENT MAX EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ATTLIST MAX xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ELEMENT UNIT EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                      <!ATTLIST UNIT xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                      <!ELEMENT FORMULA EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ATTLIST FORMULA xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ELEMENT FORMULA-DESC EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                      <!ATTLIST FORMULA-DESC xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                      <!ELEMENT ADVANCED-FORMULA EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ATTLIST ADVANCED-FORMULA xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ELEMENT INTERNAL-ADAPT-DESC EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ATTLIST INTERNAL-ADAPT-DESC xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ELEMENT DATA-DESC-REPORT EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ATTLIST DATA-DESC-REPORT xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ELEMENT REV-DESC EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                      <!ATTLIST REV-DESC xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                    ]><SSDDATA>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                     <KEY><![CDATA[6707]]></KEY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
                     <FINISHED><![CDATA[This is a Finished data ]]></FINISHED>                                                                                                                                                                                                                                                                            

  • Is it possible to use xml publisher with xml document as data source ?

    I have an application that have to publish document from xml document that are not part a oracle 10g database but will be stored into Oracle Berkeley XML database insteed. Is it possible to use server and/or desktop to publish these documents ?
    I test the desktop edition using the source xml document but it render no data when the template is executed (vizualization)
    I installed the server edition and i'm not able to declare xml document as a data source
    So i have a doubt that xml publisher is able to publish something from a xml datasource
    Thanks

    Yes, it is possible.
    The problem should come from your template. Refer to "edit a RTF template" in the docs.
    A fact is that XML Publisher server edition is not very adapted to an XML file datasource. In order to use it, you should use an HTTP datasource, with the URL of your XML document (that you should place on a web server...). The problem is that this URL is fixed and point always on the same reference...so XML Publisher server edition is not very good for that use.
    I choose to use the XML Publisher Java API which is better for this task.

  • XML insertion/updation using merge and generate sequence number

    Hi,
    I am working on Oracle 11g.
    I have a doubt with XML load.
    I get an xml and I have to insert or update data into a table A. This I can achieve using MERGE statement.
    But there is one column in Table A, that I need to populate with a sequence number, based on the data sent in the xml.
    The xml does not send this column data.
    And I have to make sure the sequence is created based on the order in which records are present in xml.
    For example the MERGE is inserting five rows and then updating next two rows and again inserting 3 rows from xml into table A. The sequence number should be created in the same order for the column in table A.
    Also for each new xml, the sequence starts with 1 and ends with the number of records in the xml. So I cannot create a sequence and use seq.nextval.
    Please let me know, there is a way of achieveing this.
    Thank you!
    Edited by: 934451 on Aug 8, 2012 6:33 AM
    Edited by: 934451 on Aug 8, 2012 6:50 AM

    Hi,
    Following up on your previous thread : {thread:id=2403469}
    You can use the FOR ORDINALITY clause in XMLTable to generate the required sequence :
    MERGE INTO target_table t
    USING (
      SELECT x.seq_num, x.pk_id, x.col1, x.col2, ...
      FROM XMLTable(
             '/root/record'
             passing my_xml_doc
             columns seq_num FOR ORDINALITY
                   , pk_id   number       path 'ID'
                   , col1    varchar2(30) path 'COL1'
                   , col2    varchar2(30) path 'COL2'
           ) x
    ) src
    ON ( t.pk_id = src.pk_id )
    WHEN MATCHED THEN UPDATE
    SET t.seq_num = src.seq_num
       , t.col1 = src.col1
       , t.col2 = src.col2
    WHEN NOT MATCHED THEN INSERT
    (seq_num, pk_id, col1, col2, ...)
    VALUES (src.seq_num, src.pk_id, src.col1, src.col2, ...)
    ;

  • How install XML-DB components?

    Hi all,
    I am new to XML-DB. My Oracle10gR2 DB does not seem to know DBMS_XMLSCHEMA, regardless of the user account. That makes me doubt, whether XML-DB has been installed at the beginning at all. Which script do I execute in order to get XML-DB on my DB up and running?
    Thanks in advance for any helpful advice.

    Have a look at the howto's: http://www.liberidu.com/blog/?cat=17
    Your specific question is addressed here: http://www.liberidu.com/blog/?p=222 (there are more detailed post on the net though)
    There are dependancies to the Oracle JVM, so install this first and then the XMLDB functionality

  • Using & in xml element

    Hi Javaties
    I have a doubt in xml.
    Can we use & in a xml element i.e
    <root>
    <child&parent>Data</child&parent>
    <root>

    I would highly suspect that you cannot do that. But what's stopping you from trying it? You're going to feed some XML into an application to process it, right? Otherwise there's no point in creating the XML in the first place. See what happens when the app tries to process XML which looks like what you're proposing.

Maybe you are looking for

  • Tables used for Complaints & Activities

    Hello Experts , What are the database tables used for   Activities & Complaints. Points will be assigned. Thank You

  • My iPhone 4 turned off and will not come back on

    It was on this morning fully charged i put it in my purse and I pull it out and it will not come on. I've tried the reset with the home and lock button. it has no water damage and i tried plugging it up to the computer and it just keeps flashing the

  • Create sequence with var as start number

    Hi, I would like to create a squence that starts with a number, which would be the maximum number I got from DEPTNO column of TEST table +1, so I have the following pl/sql stmts: VARIABLE g_max_number NUMBER; DECLARE v_max_number NUMBER; BEGIN SELECT

  • Exchange OWA Page Blank For Random Users After Mailbox Moves

    We have three Exchange server. msexch1, msexch2, msexch3. msexch1 is currently offline. msexch1 and msexch have the CAS and MBX roles installed and are in a DAG. We moved all mailboxes from msexch1 to the other two servers. Since then we have users r

  • Schema and Forms: Ex 1 Quiz missing XML sample

    XPath question is missing this XML: <x>   <y z="abc"/> </x> Should be fixed soon.