How to use WebRowSet to convert to XML??

Dear all,
I have a ResultSet, but I how can I use WebRowSet to convert it to XML?
Greatly appreciated if anybody can giveme a clue.
Thank you
Kevin

Hi,
see http://fork.ru/tutor/developer/rowset-docs/sun/jdbc/rowset/WebRowSet.html
It's the javadoc of the Class WebRowSet
intressting method for you are :
- setXmlWriter(XmlWriter writer); / writeXml(java.io.Writer writer)
or
- writeXml(java.sql.ResultSet rs, java.io.Writer writer)
Hope that it can help you.
S�b

Similar Messages

  • How to use WebRowSet?

    Dear all,
    I have a sql ResultSet, but I how can I use WebRowSet to convert it to XML?
    Greatly appreciated if anybody can giveme a clue.
    Thank you
    Kevin

    Dear all,
    I downloaded Jdbc Rowset and configured it. But when I use WebRowSet,it give me the following errors.
    Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/sql/Row
    Set (Unsupported major.minor version 48.0)....
    Does anybodu giveme idea ?
    Thank you
    Kevin

  • How to use Xerces to validate an XML file against a DTD

    Hi, can anybody tell me how to use Xerces to validate an XML file against a DTD. its urgent. post some sample code. it would be helpful for my project. isupposed to use SAX parser(Xerces)
    Thanx in advance

    Come on, I googled "xerces validate" and the first link is the Xerces FAQ:
    http://xerces.apache.org/xerces-j/faq-general.html
    And of course "how to validate" is a Xerces FAQ. Help yourself by doing a little research instead of waiting for other people.

  • How to use XMLEncoder to save Complicated XML??

    I think I posted in an improper forum: java programming, so repost here. Please excuse me.
    Dear friends, good weekend and happy thanksgivings.
    I met a problem when I use XMLEncoder to generate a complicated XML like following:
    <?xml version="1.0"?>
    <messages>
      <note ID="501">
        <to>Tove</to>
         <DeliveryAddress>
              <Street>12345</Street>
              <City>Parsinpany</City>
              <County>ABC</County>
              <State>NJ</State>
              <Country>USA</Country>
             </DeliveryAddress>
         <ContactID>
              <CompanyID>
                   <Address>12345</Address>
                   <City>Alnomre</City>
                   <County>BBB</County>
                   <State>TX</State>
                   <Country>USA</Country>
                  </CompanyID>
              <phone>1800-1234567</phone>
              <fax>123-456-7890</fax>
             </ContactID>
        <from>Jani</from>
        <heading>Reminder</heading>
        <body>Don't forget me this weekend!</body>
      </note>
      <note ID="502">
        <to>Jani</to>
        <from>Tove</from>
        <heading>Re: Reminder</heading>
        <body>I will not!</body>
      </note>
    </messages>How to use XMLEncoder to generate abobe XML or one that has namespaces in it??
    I can use simple
    XMLEncoder o = new XMLEncoder(new BufferedOutputStream(new FileOutputStream(filename)));
                                  o.writeObject(mm.getBounds());     //get all position;
    but cannot generate above complicated XML.
    What is the right way to do it??
    any good example??
    Thanks

    My question is also how to use XMLEncoder to create attributes and and namespace, add child nodes to its parent, or remove nodes from their parent etc
    Thanks

  • How to use WebRowSet in Web Services

    Hi,
    I'm new on both Java and Web Services. Currently I am trying to use JDevelper 10g's Web Services Wizard to create a Web Service, which will be consumed by .Net clients.
    I would like to know how to pass WebRowSet back to client. Since WebRowSet is not default data type the Wizard can handle, I wish anybody can tell me if this is feasible, if so, what steps I should do to accomplish this task.
    Many thanks in advance.

    Hi, Eric,
    Thank you for your quick reply.
    The web service I am trying to develop is basically a generic Data Access Component to bridge between SQL server and a desktop .Net application. The application will have about 3000 users from WAN, therefore we want to have a server side component to handle connection pooling etc. Because of limitation of current servers, we are asked to develop a Java Web Service, instead of MS WS.
    To make the component more reusable, I am thinking to have methods like this in the service:
    RunQueryReturnRS(String Sql, WebRowSet, rs)
    RunQueryReturnInt(String Sql, int NumRecdImpacted)
    RunStoredProcedureReturnRS(….)
    RunStoredProcedureReturnInt(….)
    ……
    You see, I would like to get whole resultset back to client, including both metadata and data in a format of generic resultset. When I paged through the Sun’s document, finding WebRowSet is claimed to be seariable, and ready for Web Service. I thought if I can use WebRowSet that will save me time to write new classes to hold resultset info and pass back to client.
    Could you please tell me if it is a feasible approach?
    Thank you.
    -Qing

  • How to use XmlModify to sort the XML Data?

    Hello,
    I saw some examples explain how to use XmlModify in BDB XML package. I want to sort the XML data by several elements but my Java program could not work correctly.
    <CustomerData>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>002</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>102</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    // many nodes like transaction ...
    </CustomerData>
    My XQuery script was executed successfully in the shell. The script looks as follows:
    "for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD), xs:decimal($i//CLT_IRD_NBR) return $i".
    The Java code :
    // create XmlManager
    XmlManager manager = // ...;
    // open XmlContainer
    XmlContainer container = // ...;
    XmlQueryContext context = manager.createQueryContext(XmlQueryContext.LiveValues, XmlQueryContext.Eager);
    XmlQueryExpression expression = manager.prepare("for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD),xs:decimal($i//CLT_IRD_NBR) return $i", context);
    XmlModify modify = manager.createModify();
    XmlUpdateContext uc = manager.createUpdateContext();
    XmlDocument xmldoc = container.getDocument("sample.xml");
    XmlValue value = new XmlValue(xmldoc);
    long numMod = modify.execute(value, context, uc);
    System.out.println("Peformed " + numMod     + " modification operations");
    Could you point out the errors above or offer some suggestion?
    Thanks.

    I have other question of the sorting issue. Here are a large XML need to sort so I have to split it to multiple small XML files. After importing these files, I will use the XmlModify and XQuery to sort them. I'm not clear on the multiple XML files processing.
    1. Can the BDB XML ensure that all these XML files were sorted or how to update all documents with same logic.
    2. If I want export all these sorted documents, how can I ensure these files processed in sequence? Which document needs process first?
    The export method:
    public void export(String outputfile)throws Exception{
    final int BLOCK_SIZE = 5 * 1024 * 1024; // 5Mb
    try{
    File theFile = new File(outputfile);
    FileOutputStream fos = new FileOutputStream(theFile);
    byte[] buff= new byte[BLOCK_SIZE];                         
    XmlResults rs = container.getAllDocuments(new XmlDocumentConfig());               
    while(rs.hasNext()){
         XmlDocument xmlDoc = rs.next().asDocument();
         XmlInputStream inputStream = xmlDoc.getContentAsXmlInputStream();                    
         long read=0;
         while(true){
         read = inputStream.readBytes(buff, BLOCK_SIZE);
    fos.write(buff,0,(int)read);                    
         if(read < BLOCK_SIZE) break;
    inputStream.delete();
    xmlDoc.delete();
    rs.delete();
    //MUST CLOSE!
    fos.close();               
    catch(Exception e){
    System.err.println("Error exporting file from container " + container);
    System.err.println(" Message: " + e.getMessage());
    Thanks.

  • How to use method POST to send XML using utl_http?

    Hi,
    I am trying to work out how to use the POST method to mimic submitting data from a HTML form, using utl_http.
    I cannot use SOAP for this as the people I am sending the data to are just expecting an XML document to be sent to a standard CGI script running on their web server.
    There is a lot of documentation on how to submit data using the POST method (using Utl_Http.Write_Text etc), but I cannot find anything that tells me how to submit form variables.
    The examples on OTN say this:
    "Alternatively use method => 'POST' and Utl_Http.Write_Text to
    build an arbitrarily long message"
    but don't tell me how to actually place the data into the required input parameters of the CGI program I am hitting.
    I need to hit a URL such as
    www.asite.com/cgiprogram
    and pass in a parameter, eg
    in_param="test+data"
    I am currently doing this as a GET, which works, but the XML document I am passing in could potentially be bigger than the GET method will allow.
    Any help would be greatly appreciated.
    Thanks,
    Leon.

    Please try the PL/SQl forum

  • How to use JSTL varriable in to XML

    1. how to use JSTL varriable into Xml Tag.
    for example :
    java value I am passing to XML.
    <eztag:companytag pgm_sname="<%= strpgm_name%>" dbase="<%= strd%>"
    dbpass="<%= strp%>" dburl="<%= stru%>" session="<%= session%>" />
    After modified in JSTL
    <eztag:companytag pgm_sname="${pgm_name}" dbase="${strd}"
    dbpass="${strp}" dburl="${stru}" session="${session}" />
    but its Not working. How to use this
    2.How to use ArrayLIst in JSTL
    For example
    IN Java scriplet code in JSP
    <%for(int i=0;i<alist.size();i++) {
    String str = String.valueOf(alist.get(i));
    String str1 = String.valueOf(alist.get(i+1));
    %>
    <TD>STR - <%=str%> </TD>
    <TD>STR1 - <%=str1%> </TD>
    <% } %>
    This code How to Use in JSTL.
    thanks in advance

    thanks for reply
    But in this article it describes how to passing the value of function.
    I need how to assign the JSTL varriable to xml tag attribute.
    for example
    In my TLD File
    <tag>
    <name>companytag</name>
    <tag-class>bas.CompanyTag</tag-class>
    <attribute>
    <name>dbase</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <type>java.lang.String</type>
    </attribute>
    <attribute>
    <name>dbpass</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <type>java.lang.String</type>
    </attribute>
    <attribute>
    <name>dburl</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <type>java.lang.String</type>
    </attribute>
    <attribute>
    <name>pgm_sname</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <type>java.lang.String</type>
    </attribute>
    <attribute>
    <name>session</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <type>java.lang.String</type>
    </attribute>
    </tag>
    Html code
    old code :
    <%@ taglib uri="/ezerptags.tld" prefix="eztag" %>
    <eztag:companytag pgm_sname="<%= strpgm_name%>" dbase="<%= strd%>"
    dbpass="<%= strp%>" dburl="<%= stru%>" session="<%= session%>" />
    After modified in JSTL
    <%@ taglib uri="/ezerptags.tld" prefix="eztag" %>
    <eztag:companytag pgm_sname="${pgm_name}" dbase="${strd}"
    dbpass="${strp}" dburl="${stru}" session="${session}" />
    but its Not working. How to use this
    the "eztag" and "companytag" are the customtag. these tages available in eztaglib.tld file. I am passing the value through XML Tag.
    Please suggest me . how to use.
    is there any article describes how to pass jstl varriable to XML Tag attribute.
    thanks in advance

  • How to use 2 vo's in xml publisher pdf genarate report from oaf--urgent

    Hi Guru's,
    i am integrating xml publisher report from oaf. I found one good artical published by prabaker in apps2fusion site and i implemented the same. But it is used onley one view object to generate pdf. But in my case i want to use 4 view objects to generate report as pdf. So, kindly suggest me how to resolve this issue.
    below i mentioned the site name whihc i follwed to implement my requirement.
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework.
    pls help me as i am not getting , how to solve this issue.
    Thanks in advance.
    Keerthana

    Hi,
    When we develop simple XML report also we used to get single data source either generated either from RDF or PL/SQL, in OAF XML data is coming from VO and XML Publisher API’s will process that data.
    This approach works fine if you are having one VO, but if you are having two VOs then it is not possible (As per my understanding and comparing this scenario with simple XML publisher report).
    I also faced same problem few months back, on my form I was having two VOs one for header and other for Lines and I have generate Report to show the data for both Headers and Lines. In my case I created a separate VO that was containing both Header and Line details and I was passing header Id to query that. I used query this VO only when someone clicks on “Print” button and it worked fine for me.
    Regards,
    Mahesh B.

  • How to use java to create an XML document from an SQL database?

    Hi,
    I'm a complete novice at XML and have only recently started programming in Java.
    I'm currently trying to develop a package in Java 1.1.8 which requires a set of very specifically formatted XML documents. These documents would need to be updated regularly by people with no knowledge of Java and I would like to make it as simple as possible.
    Since the data will already be in an SQL database, I thought it might be possible to generate the XML documents from the data using a small Java application, but I'm not too sure how to go about this or if this is even possible! Any help or pointers in the right direction would be very much appreciated.
    Louise

    Do you have the option of upgrading to a newer version of the JDK?
    JAXB does what you are wanting very easily. Also there are tools if you don't want to write your own. JAXB is available as early release on Sun's site as is the newest JDK. Otherwise, you have to design a factory and interface that will do this for you (which is what JAXB basically is in a very simplified view).

  • How to use automator to convert text to audio file

    I have a MS Word file which I would like to convert to an audio file using the text to audio file script available in automator. Forgive my ignorance but I am having difficulty in finding how to do this.
    Can anyone give me a step by step approach.
    Thanks
    Alain

    One way:
    1. Get Selected Finder Items
    2. Open Finder Items
    --Open with: TextEdit
    3. Get Contents of TextEdit Document
    4. Text to Audio File

  • How to use requestScope in faces-config.xml file?

    a managed-bean need get value from request as its property
    so i configure the manged-bean as below:(use requestScope object)
    <managed-bean>
    <description>this is for item test bean.</description>
    <managed-bean-name> item </managed-bean-name>
    <managed-bean-class> test.Item </managed-bean-class>
    <managed-bean-scope> request </managed-bean-scope>
    <managed-property>
    <property-name>id</property-name>
    <value-ref>requestScope.id</value-ref>
    </managed-property>
    </managed-bean>
    but it didnot work.
    after i restart tomcat with above configure file, it report
    HTTP Status 404 error.
    and seemed that the context donot start...
    if i change the line
    <value-ref>requestScope.id</value-ref>
    to:
    <value>7</value>
    then everything will be OK...but this isnot fit my require.
    any body can help me?
    I use JSF 1.0 beta.

    Rather than starting a new thread, I thought I'd just add on to this one, since it already lays the grounds for my question. I'm using the
    I noticed that my setId() method is being called once during the ApplyRequestValuesPhase, and then again in the UpdateModelValuesPhase. The first time, it sets the ID to null, despite the fact that I'm posting an id to the page. When it comes around the second time, it sets the id properly, and the data is loaded from the database and everything works great. If I'm not posting anything to the page, it is only hit once and the value is null.
    Normally I wouldn't fuss over such small things like this, but there's a bit of a probelm. I have a few buttons which are rendered based on this id. If the id is zero (i.e. null or empty string is passed into the setId() method), I want the add button to appear, else I want the update/delete/cancel buttons to appear. If any of these buttons are false after the ApplyRequestValuesPhase, the button's action will not be executed. In other words, when I'm editing an entry and I press the update button the life cycle goes a little like this...
    Object constructed
    ApplyRequestValuesPhase calls setId(null),add button to be rendered, update/delete/cancel to not be rendered
    // the call to save() is not queued up! (save() is the method associated with the action of my update button)
    UpdateModelValuesPhase calls setId("34"), data loaded from database, add button is not to be rendered, update/delete/cancel are to be rendered
    Since save() is never called, it renders the data loaded from the database, and the update/delete/cancel buttons are shown. So, from the user's perspective... nothing happened other than a page refresh. A.k.a. the update button is broken!
    I can, of course, choose to not update the boolean flags which determine if the buttons are rendered or not when setId() is called with a null. Since the default is to render everything (which was a decision specifically to avoid the buttons not being rendered in the early stages of the JSF life cycle, and the action not being executed). That works when I post an id to the page because it's called a second time and the correct buttons are rendered. The problem is when no parameters are given... it isn't called a second time, so it renders all buttons when I only want it to render the add button.
    So how can I get the values to post during the ApplyRequestValuesPhase? I thought that would be how it would work, but apparently not. Anyone know why it explicitly sets the id to null the first time aroud?
    Here's all you should need...
        <managed-bean>
            <managed-bean-name>dropdownEntry</managed-bean-name>
            <managed-bean-class>org.dc949.bugTrack.DropdownEntry</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
            <managed-property>
                <property-name>id</property-name>
                <value>#{param.id}</value>
            </managed-property>
        </managed-bean>
        public void setId(String id) {
            try {
                this.id = Long.parseLong(id);
                load();  // loads data from DB
            } catch(Exception e) {
                if(id != null && !id.equals(""))
                    log.warn("Unable to convert id from String to long ("+id+")", e);
            if(id != null) {  // this was my solution while I was frusterated that my save method wasn't being called
                if(this.getIdAsLong() == 0) {
                    this.showAdd = true;
                    this.showUpdate = false;
                    this.showDelete = false;
                } else {
                    this.showAdd = false;
                    this.showUpdate = true;
                    this.showDelete = true;
                        <t:div>
                            <h:commandButton id="add" value="Add dropdown entry"
                                             rendered="#{dropdownEntry.showAddButton}"
                                             action="#{dropdownEntry.save}" />
                            <h:commandButton id="update" value="Update dropdown entry"
                                             rendered="#{dropdownEntry.showUpdateButton}"
                                             action="#{dropdownEntry.save}" />
                            <h:commandButton id="delete" value="Delete dropdown entry"
                                             rendered="#{dropdownEntry.showDeleteButton}"
                                             action="#{dropdownEntry.deleteDropdownEntry}" />
                            <h:commandButton id="cancel" value="Cancel"
                                             rendered="#{dropdownEntry.showUpdateButton}"
                                             action="#{dropdownEntry.reset}" immediate="true" />
                        </t:div>I could, and probably will get rid of the showDeleteButton flag and isShowDeleteButton() method and make it like the cancel button since these update/delete/cancel will always be shown/hidden together.
    Edit: Now I feel like a fool. A little clean and build, and it's working perfectly. If any one of the above people read this, I thank you for your help from years past. <img class="emoticon" src="images/emoticons/happy.gif" border="0" alt="" />
    Edited by: AdamNichols on Apr 18, 2008 9:57 PM

  • How to use the 'next' softkey in XML Directory - SPA504G

    I have the basic XML Directory stuff working (CiscoIPPhoneDirectory) on the SPA504G. However I realise I can only display 32 entries and I note that there is a "next" softkey enabled, however it seems to not do anything. How can I link this button press to fetching a new url with the next page of 32 results - I am ok dealing with the server side of this.
    Looking at the xsi_dev_guide (which I am not sure is applicable to the SPA504G), talks about adding a Refresh HTTP Header, however it is a bit vague and whenever I add it to the HTTP response, the spa504 barfs (invalid response).
    Do I need to program the next softkey to send a URL or something?

    Do I need to program the next softkey to send a URL or something?
    Yes, definitely. The "Next" soft key is not magic key of any kind. It just standard "request a page from HTTP server" key. It should issue a HTTP request for next page.  Like "Prev" key is asking for previous page content.
    So you need something like:
    <SoftKeyItem>
    <Name>Next</Name>
    <URL>https://.../Cisco/Directory.php?page=2</URL>
    <Position>3</Position>
    </SoftKeyItem>
    Note that you should NOT claim Next key on last page. Phone will choke on empty CiscoIPPhoneDirectory (e.g. no entry). For same reason you should not declare Prev key on first page.
    Looking at the xsi_dev_guide (which I am not sure is applicable to the SPA504G), talks about adding a Refresh HTTP Header, however it is a bit vague and whenever I add it to the HTTP response, the spa504 barfs (invalid response).
    Yes, xsi_dev_guide apply to SPA504G as well. Although Refresh is not claimed by a formal standard, it's de-facto standard recognized by many browsers already. Thus it's not documented in detail heres. In the context of example above you should emit ...
    Refresh: 0; url=https://.../Cisco/Directory.php?page=2
    ... header here.
    Rate useful advices. It will help others to found solutions.

  • How to use cursor function for nested xml

    Hi,
    i have a query for XMLQuery like
    select * from bills where bill_id=????
    it results in something like
    <bills>
    <bill>
    <city>london</city>
    <amount>44</amount>
    </bill>
    <bill>
    <city>london</city>
    <amount>988</amount>
    </bill>
    <bill>
    <city>new york</city> <amount>59</amount> </bill>
    </bills>
    but i want xml output to be sorted for city names adding one more level location like
    <bills>
    <location city="london">
    <bill>
    <amount>44</amount>
    </bill>
    <bill>
    <amount>988</amount> </bill>
    </location>
    <location city="new york">
    <bill>
    <amount>59</amount> </bill>
    </location>
    </bills>
    it should be possible to iterate through the same table to gather informaton with the help of cursor function, but never used CURSOR before.
    any idea?

    sreese wrote:
    p_desig works as a comma delimited string without the NVL function, that's not the issue.
    It IS the issue .. you need to provide  a SAMPLE so we can see what you're doing ..
    How are you "passing it in" ?
    option A:
    procedure ( in_var  in  VARCHAR2 )
    AS
    and nvl(sn.c_attribute1,'x@#$%') in nvl(in_var,'x@#$%')
    option B:
    and nvl(sn.c_attribute1,'x@#$%') in nvl(&1,'x@#$%')
    .. or some other method?

  • How to use oracle TRIM functionality in XML messages

    When i am selecting data from XML message as per below query, it is returing values correctly.
    SELECT extractValue(x.column_value, '/DETAILS/EMPID') as emp_id,
    extractValue(x.column_value, '/DETAILS/NAME') as emp_name,
    extractValue(x.column_value, '/DETAILS/SALARY') as emp_sal
    FROM TABLE(
    XMLSequence(
    Extract( xmltype('<DETAILS><EMPID>2482</EMPID><NAME>SMITH</NAME><SALARY>4854</SALARY><LOC>CHENNAI</LOC></DETAILS>'),'/DETAILS'))) x;
    But when i am selecting data by using below query some additional spaces also coming with column values
    SELECT extractValue(x.column_value, '/DETAILS/EMPID') as emp_id,
    extractValue(x.column_value, '/DETAILS/NAME') as emp_name,
    extractValue(x.column_value, '/DETAILS/SALARY') as emp_sal
    FROM TABLE(
    XMLSequence(
    Extract( xmltype('<DETAILS>
                   <EMPID>
                             2482
                             </EMPID>
                             <NAME>
                             SMITH
                             </NAME>
                             <SALARY>
                             4854
                             </SALARY>
                             <LOC>
                             CHENNAI
                             </LOC>
                             </DETAILS>'),'/DETAILS'))) x;
    Please suggest how to remove additional spaces by using second query.
    Thanks
    Vikrant Jain.

    It appears that the ability to use XPath functions in the PATH expression doesn't work prior to 11g :
    Connecté à :
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> var xmldoc varchar2(4000)
    SQL> begin :xmldoc := '<DETAILS>
      2  <EMPID>
      3  2482
      4  </EMPID>
      5  <NAME>
      6  SMITH
      7  </NAME>
      8  <SALARY>
      9  4854
    10  </SALARY>
    11  <LOC>
    12  CHENNAI
    13  </LOC>
    14  </DETAILS>';
    15  end;
    16  /
    Procédure PL/SQL terminée avec succès.
    SQL> SELECT emp_id, emp_name, emp_sal
      2    FROM XMLTable('/DETAILS'
      3                  PASSING XMLTYPE(:xmldoc)
      4                  COLUMNS
      5                  emp_id     NUMBER        PATH 'normalize-space(EMPID)',
      6                  emp_name   VARCHAR2(20)  PATH 'NAME',
      7                  emp_sal    VARCHAR2(20)  PATH 'SALARY');
    SELECT emp_id, emp_name, emp_sal
    ERREUR à la ligne 1 :
    ORA-31011: Echec d'analyse XML
    ORA-19202: Une erreur s'est produite lors du traitement la fonction XML (
    LPX-00601: Invalid token in: '/*/normalize-space(EMPID)')Using it in XQuery will work though :
    SQL> SELECT *
      2  FROM XMLTable(
      3   'for $i in /DETAILS
      4    return element r
      5    {
      6     for $j in $i/*
      7     return element {local-name($j)} {normalize-space($j)}
      8    }'
      9   PASSING XMLTYPE(:xmldoc)
    10   COLUMNS
    11     emp_id     NUMBER        PATH 'EMPID',
    12     emp_name   VARCHAR2(20)  PATH 'NAME',
    13     emp_sal    NUMBER        PATH 'SALARY'
    14  );
        EMP_ID EMP_NAME                EMP_SAL
          2482 SMITH                      4854

Maybe you are looking for

  • Layout in selection screen of Bex report

    Hi Gurus, I have a report which is needed by many users. Now each user has a different way to use the report like SE wise,material wise,payer wise , each with selected key figures. Now i have one solution that to create a seperate view for each user,

  • Jaxp fails to unmarshall xml document if it contaions the "&" character

    Hi,      We are using JAXB in our applications and have recently experienced a problem with parsing of xml document ( when calling unmarshall method of jaxb ). The problem occurs when the xml element contains the character & in it f.eks. "Hennes & Ma

  • More Flash Video controller skins

    I use DW CS3. I'm a very basic-level user doing business sites/pages and need to get things moving fast. I'm not much into HTML coding. I love the fact that when I have a page in DW it's simple to choose "Insert - Media - Flash Video..." and I get th

  • Does MFSA 2011-48 apply to Firefox 3.6.23? In other words, is 3.6.23 vulnerable to these?

    MFSA 2011-48 is listed as being applicable to all versions. However, the 3.6 advisory page does not list it. I am confused about its applicability? If I upgrade to 3.6.24, am I addressing all known vulnerabilities for version 3.6?

  • I don't have my Ichat and AIM configured right?

    I set up an Ichat account. Created an AIM account but need help on how to have everything set because when I sign on my buddy doesn't come up and wen I get it up it isn't my AIM list. I would like Ichat to open and my buddie list to appear when I cli