XML cannot fully get all metadata with "getItemRequest"

Hi All,
My client is using GroupWise 7.0.3.
We want to get the dropdown list custom field data of document, but the XML file cannot fully record all corresponding custom field data by using "getItemRequest".
For example:
GroupWise Client - Document 1 :
Dropdown list custom field 1: aaa
Sub dropdown list custom field 1-1 of custom field 1: aab
Sub dropdown list custom field 1-2 of custom field 1: aac
Dropdown list custom field 2: bbb
Sub dropdown list custom field 2-1 of custom field 2: bbc
Sub dropdown list custom field 2-2 of custom field 2: bbd
Sub dropdown list custom field 2-3 of custom field 2: (Empty data)
XML recording - Document 1:
<custom type="String">
<field>custom field 1</field>
<value>aaa</value>
</custom>
<custom type="String">
<field>custom field 1-1</field>
<value>aab</value>
</custom>
<custom type="String">
<field>custom field 2-1</field>
<value>bbc</value>
</custom>
<custom type="Numeric">
<field>custom field 2-3</field>
<value>0</value>
</custom>
In my program, i just call "getItemRequest" and export the response to XML
Code:
WebReference.getItemRequest req = new WebReference.getItemRequest();
WebReference.getItemResponse resp;
string outPath = @"c:\GW\"
string FileName = filename.toString();
req.id = doc.ID;
req.view = "View";
resp = ws.getItemRequest(req);
if (0 == resp.status.code)
if (null != resp.item)
ObjectToXml(resp, outPath + FileName + ".xml");
Am i missing something or step?
Or what i need to do?
Could anyone to give me some suggestion?
Thank you very much.
Jimmy

Hi Preston,
But client doesn't update GW, therefore we will find another ways.
However, thank you for your advice.
Jimmy
Originally Posted by Preston Stephenson
Sorry, there is no support for 7.0.x.
The only place you will get support (with some exceptions) is GW 2012.
(There will be some changes made to 8.0.x, but this would not qualify.)
You can try GW 2012.
There is little support for Document Management in the SOAP API.
When you try GW 2012 and you still have a problem, let me know.
Preston
>>>
Hi All,
My client is using GroupWise 7.0.3.
We want to get the dropdown list custom field data of document, but the
XML file cannot fully record all corresponding custom field data by
using "getItemRequest".
For example:
GroupWise Client - Document 1 :
Dropdown list custom field 1: aaa
Sub dropdown list custom field 1-1 of custom field 1: aab
Sub dropdown list custom field 1-2 of custom field 1: aac
Dropdown list custom field 2: bbb
Sub dropdown list custom field 2-1 of custom field 2: bbc
Sub dropdown list custom field 2-2 of custom field 2: bbd
Sub dropdown list custom field 2-3 of custom field 2: (Empty data)
XML recording - Document 1:
<custom type="String">
<field>custom field 1</field>
<value>aaa</value>
</custom>
<custom type="String">
<field>custom field 1-1</field>
<value>aab</value>
</custom>
<custom type="String">
<field>custom field 2-1</field>
<value>bbc</value>
</custom>
<custom type="Numeric">
<field>custom field 2-3</field>
<value>0</value>
</custom>
In my program, i just call "getItemRequest" and export the response to
XML
Code:
WebReference.getItemRequest req = new WebReference.getItemRequest();
WebReference.getItemResponse resp;
string outPath = @"c:\GW\"
string FileName = filename.toString();
req.id = doc.ID;
req.view = "View";
resp = ws.getItemRequest(req);
if (0 == resp.status.code)
if (null != resp.item)
ObjectToXml(resp, outPath + FileName + ".xml");
Am i missing something or step?
Or what i need to do?
Could anyone to give me some suggestion?
Thank you very much.
Jimmy
jimmyng25
jimmyng25's Profile: View Profile: jimmyng25 - Novell Forums
View this thread: XML cannot fully get all metadata with "getItemRequest"

Similar Messages

  • Poweshell script to parse a XML document to get all Leaf level nodes with Node names in CSV

    Hi Experts,
    I want to write a Powershell script to parse a XML document to get all Leaf level nodes with Node names in CSV
    <?xml version="1.0" encoding="UTF-8"?>
    <CATALOG>
       <CD>
          <TITLE>Empire Burlesque</TITLE>
          <ARTIST>Bob Dylan</ARTIST>
          <COUNTRY>USA</COUNTRY>
          <COMPANY>Columbia</COMPANY>
          <PRICE>10.90</PRICE>
          <YEAR>1985</YEAR>
       </CD>
    </CATALOG>
    Need to display this as
    CD_Tiltle, CD_ARTIST, CD_COUNTRY, CD_COMPANY, CD_PRICE, CD_YEAR
    Empire Burlesque, Bob Dylan,USA,Columbia,10.90,1985
    and so on..
    I do not want to hard code the tag names in the script.
    current example is 2 level hierarchy XML can be many level till 10 max I assume
    in that case the csv file field name will be like P1_P2_P3_NodeName as so on..
    Thanks in advance
    Prajesh

    Thankfully, I have writtenscript for ths same $node_name="";
    $node_value="";
    $reader = [system.Xml.XmlReader]::Create($xmlfile)
    while ($reader.Read())
    while ($reader.Read())
    if ($reader.IsStartElement())
    $node_name += "," + $reader.Name.ToString();
    if ($reader.Read())
    $node_value += "," + $reader.Value.Trim();
    Thanks and Regards, Prajesh Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

  • Parse XML: how to get all the sub nodes of an element

    Hello, I am using org.w3c.dom to parse an XML file. I want to get all the information under an elements, including all the sub nodes and sub sub nodes, maybe output as a String or String[ ]. How should I do it with org.w3c.dom?
    e.g. I want to get all the text within<datafile></datafile>:
    <datafile>
    blablabla
    <id> bla <description>bla</description></id>
    </datafile>
    I write:
    Node element = InterfaceDOM.getElementsByTagName("datafile");
    how can I return all the sub content within this element?
    Thanks a lot!

    http://www.developerfusion.co.uk/show/2064/

  • Getting all metadata (custom & OOTB) for a content

    Hi All,
    I need to get all the metadata values for a content item in the content server. I tried using DOC_INFO_BY_NAME service and got the result set and I 'm able to retrieve the values by specifying metadata as dataObject.get("dSecutiryGroup");
    No i want to know if there exists any service which can fetch an object ,which can be iterated and we can get all the metadata and its value.
    Thanks.

    See the prototypes of the relevant class (interface)'s methods
    public interface DataResultSet
        // Methods
        boolean hasField(java.lang.String p1) { }
        oracle.stellent.ridc.model.DataResultSet.Field getField(java.lang.String p1) { }
        oracle.stellent.ridc.model.DataResultSet.Field getField(int p1) { }
        java.util.List<oracle.stellent.ridc.model.DataResultSet.Field> getFields() { }
        void setFields(java.util.List p1) { }
        void addField(oracle.stellent.ridc.model.DataResultSet.Field p1, java.lang.String p2) { }
        void removeField(java.lang.String p1) { }
        void addRow(oracle.stellent.ridc.model.DataObject p1) { }
        void addRow(java.util.List p1) { }
        void insertRow(oracle.stellent.ridc.model.DataObject p1, int p2) { }
        void insertRow(java.util.List p1, int p2) { }
        void removeRow(int p1) { }
        java.util.List<oracle.stellent.ridc.model.DataObject> getRows() { }
    } From this, you can use getFields() or getField(int p1) and then use oracle.stellent.ridc.model.DataResultSet.Field's attributes.

  • I cannot even get onto internet with Firefox 4. Just an opening page, stuck there. FF4 has messed up my whole system.

    The only way I can get to internet is through IE 64bits.

    You cannot boot an iBook from an external USB drive--only a firewire drive. Actually, the drive is just a drive--it is the enclosure that determines USB vs. FireWire. If you could find an appropriate firewire enclosure, you could remove the drive from the USB enclosure and place it in a firewire enclosure and then be able to boot from that. Or you could just purchase an external firewire drive if those are available where you are.
    FireWire external drives are quite useful. One option would be to mount the external drive on the good iBook, format it properly for OS X with Disk Utility, and then use a program like Super Duper to make an exact clone of your internal hard drive. This is a popular way of backing up your stuff. You can boot from either the internal or the external. This means that if your internal hard drive were to die, you would have all your stuff on the external, and could run off of that. Since you are already using the USB for backup, it would probably be best to acquire a new firewire drive for troubleshooting and testing if you decide to go this route, since you really don't want to lose your existing backup.
    If you did have a bootable clone, you could see if the sick iBook would boot from it or not. However, it may be more productive to pursue your other thread about the boot problem. I see that Richard has joined the thread as I had hoped he would. He actually works on iBooks and is very knowledgeable.
    Also, if you do get the second ibook working and want to install OS9, you might want to post a question in the "Mac OS X v 10.3 Panther and earlier" forum. I'm not up on this myself, but I believe there is something about installing OS 9 drivers while formating or something like that. I believe the smart guys on that forum could give you some guidance so that you can avoid the problems you encountered earlier.
    Good luck!

  • Not getting all objects with Universe connection

    I am using CR 2008 SP2 and I am trying to create my first report using a Universe as the connection.  I click on Blank Report and it opens the Database Expert.  I then open Universes under Create New Connection and the Universe that I want to connect to is there but when I double click on it to create my query I am not seeing all of my Dimensions and Measures.  This is a small Universe with three classes.  The first class has 6 dimensions in it.  The second class has two dimensions in it of which these are date dimensions and then my third dimension is my Measures dimension that has 4 measures.
    I only see 5 of my 6 dimensions from the first class.  I see both of my date dimensions from my date class but I only see one of my measures from my measure class.  When I create a new WEBI report connecting to this universe i get everything as expected.
    Any ideas?

    Hi Ron,
    Since you are using WebI Rich Client of Edge version I assume you are not using a CMS (you are not required to login when you start WRC). Is this correct ?  if so then you might need to make sure your WRC hits the appropriate folder of universes. This can be configured from menu Tools -> Options -> General tab,  where you can define a default folder for universes. Make sure you point to the folder where your latest version of universes are (locally or on a remote machine). Your WRC will always load the version of universe that is stored in that folder.
    Hope this helps
    Abdellatif Astito
    SAP Business Objects

  • How get the metadata with intermedia?

    Hi all,
    In my application I record Microsoft Word documents into a blob column, but before record this file I need to verify the version of Microsoft Word who created this file.
    Anyone can help me with this?
    Tks,
    Everson

    interMedia can extract metadata from supported Image, Audio and Video files, but not from text documents such as Microsoft Word documents. See the Oracle Multimedia Reference (version 11g) or Oracle interMedia Reference (version 10g) for a list of supported formats.

  • Get file metadata with Reader API

    Hi
    It is possible to retrieve the metadata of a file with the Reader API? How?
    Thanks

    My project was generated by the wizard, but when try to use the PDDocGetXAPMetadata function the project does not compile with this error: "'PDDocGetXAPMetadataSELPROTO' : undeclared identifier".
    Any ideas?

  • Cannot sign - get and error with "Sign with Certificate"

    I am trying to sign a document using "Sign with Certificate".  I have created an electronic signature.  I click the button that says "sign with certificate".  I then drag and draw the signature box.  The pop up the appears with a place to "save" the signed document.  I navigate to the proper folder and then I name the document.  When I click OK, I get and error that reads "there was an error when attempting to commit this signature.  the document was not saved.  the file may be read-only, or another user may have it open.  Please save this document with a different name or in a different folder."  I then tried to re-name the original document.  No luck.  I then printed the original document to a new pdf and tried again, no luck.  I tried to save it to a different folder, no luck.  I tried to save it with a different name, nl luck.  I restarted the computer and tried again, no luck. what should i do?

    No.  I am solo and doing this on my stand alone PC, I do not have any of those platforms that you mentioned.  BTW, because of another technical glitch, I only recently – within the last month  - re-installed Adobe on my local machine
    jcc
    John C Carrozzella, MD
    Phone: (813) 659-2897
    Fax:      (888) 552-7536
    Email:    <mailto:[email protected]> [email protected]
    Web:  <http://www.hormonesandwellness.com/> www.HormonesAndWellness.com

  • How to get all folders with Name and ID in Shared Document.

    I tried this snippet and it is returning only Name not ID of the folders, Any help where am i going wrong?
            $.ajax({
      url: "/<sitename>/_api/web/GetFolderByServerRelativeUrl('Shared Document')/folders?$select=Name,ID",
      method: "GET",
      headers: { "accept": "application/json; odata=verbose" },
      success: function(data){
      console.log(JSON.stringify(data));
      error: function(data){console.log(JSON.stringify(data));}

    What kind of folder and which ID?
    Assuming you are wanting the folder objects created from the New Folder button in the ribbon, try this search by Content Type:
    https://yourdomain.sharepoint.com/_api/web/lists/getbytitle('Documents')/items?$filter=startswith(ContentTypeId,'0x0120')&$select=Title,ID
    Note that several IDs are returned; the ID (GUID) of the list item and the list's ID column (1,2,3, ....)
    Your example returned an ID property, but it was a URL.
    Mike Smith <a href="http://TechTrainingNotes.blogspot.com">TechTrainingNotes.blogspot.com</a>

  • OMF, XML, and project management all failing with exports.

    I'm having trouble pinning down what exactly is going on but I'm unable to export any of these. OMF takes much longer than normal and ends with a very long export log. When I use try creating a new project via project management, the export claims to have failed.

    Ok ... totally PC here and not the most experienced person around by a few thousand or so ... but I'll make a stab.
    First, is the footage and export locations on "internal" drives (connected directly to your mobo w/high-speed connections) or is one or the other remote/network or otherwise a slower connection?
    Second ... Plural Eyes modified footage on the Mac has resulted in quite a few threads around here ... there've been some hiccups with that combo'd with PrPro. So ... there's something to consider. You might see if some footage you've got that isn't Plural-Eyed has the same issues. If not ... well ... there's the problem.
    Neil

  • How to get InCallQuality message with Lync SDN 2.1

    Hi all,
    We are working on the Lync SDN 2.1 for the new feature of In-call Quality Reporting but have not been able to get the <InCallQuality> message yet. Following is what we have done so far:
    Update the Lync SDN dialog listener and SDN manager to 2.1.1
    installed latest preview Lync client – Skype for Business
    manually configuring the Lync client with a configuration file – following the instruction of
    https://msdn.microsoft.com/en-us/library/office/dn785224.aspx (We have tried to configuration file name with “ocapi_test.config” and “ocapi_test.config.xml”)
    We can get all other call reporting messages from the SDN manager, for example <Start>, <End>, <QualityUpdate> etc, but the <InCallQuality> message.
    Anyone have be able to get the <InCallQuality> message with SDN 2.1 successfully? It is greatly appreciated if you could point out what we have missed out.

    Hi,
    thanks for the quick response. Seems that my extension project in Jdev 10g was messed up by putting the new sqldevloper.jar in the class path. I've migrated to Jdev11g and the missing class is found.
    Where I'm lost right now is the way to get a connection from the pool. Most of the classes that I used for that (oracle.jdeveloper.cm.dt.ConnectionNode, oracle.jdeveloper.cm.dt.DatabaseConnectionNode;)
    are not longer existing and it looks like there is a new way to achieve this in Jdev11g.
    Is there a documentation available somewhere, where the "new" strategy is explained?
    Best reagards,
    Ingo

  • How do I get all TIF files to automatically open into Photoshop?

    When I use Internet Explorer, I can set my computer so that all TIF files on a manuscript-editing website automatically open into Photoshop. This doesn't work with Mozilla, and I am always asked to select a program to open the file. Can I use Firefox, and still get all files with a TIF extension to open into Photoshop when I click on them? Thanks!

    To change the program that .indd files default to when opened in OSX, right click on the .indd file > Open With > Other.
    Then navigate to the version of InDesign that you want to open them with (I have CS6 installed but its the same for CS5). Make sure you have "Always Open With" selected.

  • Query to get the records with same last name

    I need to write a single sql query to get all records with duplicate last_name's. For example, if tab1 has 4 records:
    10     Amit     Kumar
    20     Kishore          Kumar
    30     Sachin     Gupta
    40     Peter     Gabriel
    then the query should return
    10     Amit     Kumar
    20     Kishore     Kumar
    id, name,L_name being the 3 columns in table
    Apprecite you help.
    Thank you
    Mary

    SQL> create table mytable (id,name,l_name)
      2  as
      3  select 10, 'Amit', 'Kumar' from dual union all
      4  select 20, 'Kishore', 'Kumar' from dual union all
      5  select 30, 'Sachin', 'Gupta' from dual union all
      6  select 40, 'Peter', 'Gabriel' from dual
      7  /
    Table created.
    SQL> select id
      2       , name
      3       , l_name
      4    from ( select t.*
      5                , count(*) over (partition by l_name) cnt
      6             from mytable t
      7         )
      8   where cnt > 1
      9  /
                                        ID NAME    L_NAME
                                        10 Amit    Kumar
                                        20 Kishore Kumar
    2 rows selected.Regards,
    Rob.

  • How to get the metadata (in xml format) of all the fileds in SQl query ?

    Good day ,
    I am using the dbms_xmlgen.getXMLfunction to get the result of any query in xml format.
    With this XML I also want the metadata information about all the fields used in the query (passed to getXML function). Is it possible and how can I achieve this.
    I tried to Google it but couldn't find any solution , it's easy to do it in java where I can get the resultset meta data from the resultset but I have to do it in Oracle function since I want the result in xml format and want to use the oracle XML API.
    You may think why I need metadata , the reason is the application will later use this information to sort the data contained in these fields according to their data type provided to.
    Regards
    Sajjad Ahmed Paracha

    Hi,
    Please always say which version of Oracle you're using (SELECT * FROM v$version).
    With this XML I also want the metadata information about all the fields used in the query (passed to getXML function). Is it possible and how can I achieve this.It is possible but with a bit of effort.
    I would use DBMS_SQL utility to parse the query, extract each column's description and then build a METADATA element with the required information.
    Here's an example (11g) :
    DECLARE
      v_query      varchar2(30) := 'select * from scott.emp';
      v_cur        integer;
      v_desc_tab   dbms_sql.desc_tab;
      v_col_cnt    number;
      v_col_lst    varchar2(4000);
      v_xml_query  varchar2(32767);
      xml_metadata_coll xmlsequencetype := xmlsequencetype();
      xml_metadata      xmltype;
      res          clob;
    BEGIN
      v_cur := dbms_sql.open_cursor;
      dbms_sql.parse(v_cur, v_query, dbms_sql.native);
      dbms_sql.describe_columns(v_cur, v_col_cnt, v_desc_tab);
      dbms_sql.close_cursor(v_cur);
      for i in 1 .. v_col_cnt loop
        if i > 1 then
          v_col_lst := v_col_lst || ', ';
        end if;
        v_col_lst := v_col_lst || v_desc_tab(i).col_name;
        xml_metadata_coll.extend;
        select xmlelement("COLUMN"
               , xmlattributes(v_desc_tab(i).col_name as "name")
               , xmlforest(
                   case v_desc_tab(i).col_type
                     when 1   then 'VARCHAR2'
                     when 2   then 'NUMBER'
                     when 12  then 'DATE'
                     when 180 then 'TIMESTAMP'
                     else 'UNKNOWN'
                   end as "DATATYPE"
                 , v_desc_tab(i).col_max_len as "MAX_LENGTH"
                 , v_desc_tab(i).col_precision as "PRECISION"
                 , v_desc_tab(i).col_scale as "SCALE"
        into xml_metadata_coll(i)
        from dual;
      end loop;
      v_xml_query :=
    'SELECT XMLSerialize(document
             XMLElement("ROOT"
             , :1
             , XMLElement("ROWSET"
               , XMLAgg(
                   XMLElement("ROW", XMLForest(' || v_col_lst || '))
             ) as clob indent
    FROM ( ' || v_query || ')';
      select xmlelement("METADATA", xmlagg(column_value))
      into xml_metadata
      from table(xml_metadata_coll)
      execute immediate v_xml_query into res using xml_metadata;
      dbms_output.put_line(res);
    END;
    /Ouput :
    <ROOT>
      <METADATA>
        <COLUMN name="EMPNO">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>4</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="ENAME">
          <DATATYPE>VARCHAR2</DATATYPE>
          <MAX_LENGTH>10</MAX_LENGTH>
          <PRECISION>0</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="JOB">
          <DATATYPE>VARCHAR2</DATATYPE>
          <MAX_LENGTH>9</MAX_LENGTH>
          <PRECISION>0</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="MGR">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>4</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="HIREDATE">
          <DATATYPE>DATE</DATATYPE>
          <MAX_LENGTH>7</MAX_LENGTH>
          <PRECISION>0</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="SAL">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>7</PRECISION>
          <SCALE>2</SCALE>
        </COLUMN>
        <COLUMN name="COMM">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>7</PRECISION>
          <SCALE>2</SCALE>
        </COLUMN>
        <COLUMN name="DEPTNO">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>2</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
      </METADATA>
      <ROWSET>
        <ROW>
          <EMPNO>7369</EMPNO>
          <ENAME>SMITH</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7902</MGR>
          <HIREDATE>1980-12-17</HIREDATE>
          <SAL>800</SAL>
          <DEPTNO>20</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7499</EMPNO>
          <ENAME>ALLEN</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-02-20</HIREDATE>
          <SAL>1600</SAL>
          <COMM>300</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7521</EMPNO>
          <ENAME>WARD</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-02-22</HIREDATE>
          <SAL>1250</SAL>
          <COMM>500</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7566</EMPNO>
          <ENAME>JONES</ENAME>
          <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>1981-04-02</HIREDATE>
          <SAL>2975</SAL>
          <DEPTNO>20</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7654</EMPNO>
          <ENAME>MARTIN</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-09-28</HIREDATE>
          <SAL>1250</SAL>
          <COMM>1400</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7698</EMPNO>
          <ENAME>BLAKE</ENAME>
          <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>1981-05-01</HIREDATE>
          <SAL>2850</SAL>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7782</EMPNO>
          <ENAME>CLARK</ENAME>
          <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>1981-06-09</HIREDATE>
          <SAL>2450</SAL>
          <DEPTNO>10</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7839</EMPNO>
          <ENAME>KING</ENAME>
          <JOB>PRESIDENT</JOB>
          <HIREDATE>1981-11-17</HIREDATE>
          <SAL>5000</SAL>
          <DEPTNO>10</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7844</EMPNO>
          <ENAME>TURNER</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-09-08</HIREDATE>
          <SAL>1500</SAL>
          <COMM>0</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7900</EMPNO>
          <ENAME>JAMES</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-12-03</HIREDATE>
          <SAL>950</SAL>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7902</EMPNO>
          <ENAME>FORD</ENAME>
          <JOB>ANALYST</JOB>
          <MGR>7566</MGR>
          <HIREDATE>1981-12-03</HIREDATE>
          <SAL>3000</SAL>
          <DEPTNO>20</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7934</EMPNO>
          <ENAME>MILLER</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7782</MGR>
          <HIREDATE>1982-01-23</HIREDATE>
          <SAL>1300</SAL>
          <DEPTNO>10</DEPTNO>
        </ROW>
      </ROWSET>
    </ROOT>A couple of comments :
    <li> I handle only four datatypes here (VARCHAR2, NUMBER, DATE, TIMESTAMP). Of course you can add more.
    The list of Oracle Type Number is available here : http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements001.htm#i54330
    Starting with 11g (not sure which release), DBMS_SQL package also declares these numbers through named constants.
    <li> I don't use DBMS_XMLGEN in this example. Instead I rebuild the query using SQL/XML functions and the list of columns that's just been described.

Maybe you are looking for

  • My pc cannot install drivers for my iphone 5c

    okay, so my first iphone was an iphone 4, and when i connected it to the computer, it could sync to itunes and also start autoplay to transfer photos and videos to pc. i gave that phone to my mother and got an iphone 5c, remembering to back it up usi

  • Reminders - how can I change the year that a task is due?

    If I want to put a due date on a task, I click on it then switch "Remind Me On A Day" to On. It then sets the reminder to today's day, and the next hour. If I want to set that date into the future, I tap on it and see four spinning "wheels" from whic

  • Variant config billing error

    Experts! I am very new in SD variant config. I managed to setup and get the pricing matrix working. But I am stuck with generating invoice. When I try to generate invoice, error message "000010 The item is not relevant for billing" I have done the fo

  • Loading data into infocube in bi 7.0 from flat file.

    Hello  All, I need the complete procedure for loading data into the infocube from flat file in bi 7.0 i.e.using transformation,DTP etc. Please help me with some gud documents.

  • HT3823 I can't see content from iTunes Extra

    I recently purchased the movie "Ted" from my Apple TV, and then I downloaded to my computer so I could watch the iTunes Extra content, but any of the features will play, just the movie and scene selection. really don't know why