How to create an xml table

hi,
how can i create a table into XML format for example from the following query
create table testing nologgging as select * from user_objects
kindly advise
tks & rdgs

Probably you need to explain better on what you actually are asking (an example would aid in understanding).
SQL> create table testing nologging as select * from user_objects ;
Table created.
SQL> select dbms_metadata.get_xml('TABLE', 'TESTING') from dual ;
DBMS_METADATA.GET_XML('TABLE','TESTING')
<?xml version="1.0"?>
<ROWSET>
<ROW>
  <TABLE_T>
   <VERS_MAJOR>1</VERS_MAJOR>
   <VERS_MINOR>0 </VERS_MINOR>
   <OBJ_NUM>45572</OBJ_NUM>
   <SCHEMA_OBJ>
    <OBJ_NUM>45572</OBJ_NUM>
    <DATAOBJ_NUM>45572</DATAOBJ_NUM>
    <OWNER_NUM>73</OWNER_NUM>
    <OWNER_NAME>KKISHORE</OWNER_NAME>
    <NAME>TESTING</NAME>
    <NAMESPACE>1</NAMESPACE>
    <TYPE_NUM>2</TYPE_NUM>
    <TYPE_NAME>TABLE</TYPE_NAME>
    <CTIME>17-NOV-2006</CTIME>
    <MTIME>17-NOV-2006</MTIME>
    <STIME>17-NOV-2006</STIME>
    <STATUS>1</STATUS>
    <FLAGS>0</FLAGS>
    <SPARE1>6</SPARE1>
    <SPARE2>1</SPARE2>
   </SCHEMA_OBJ>
   <STORAGE>
    <FILE_NUM>11</FILE_NUM>
    <BLOCK_NUM>40569</BLOCK_NUM>
    <TYPE_NUM>5</TYPE_NUM>
    <TS_NUM>12</TS_NUM>
    <BLOCKS>8</BLOCKS>
    <EXTENTS>1</EXTENTS>
    <INIEXTS>8</INIEXTS>
    <MINEXTS>1</MINEXTS>
    <MAXEXTS>2147483645</MAXEXTS>
    <EXTSIZE>128</EXTSIZE>
    <EXTPCT>0</EXTPCT>
    <USER_NUM>73</USER_NUM>
    <LISTS>1</LISTS>
    <GROUPS>1</GROUPS>
    <BITMAPRANGES>0</BITMAPRANGES>
    <CACHEHINT>0</CACHEHINT>
    <SCANHINT>0</SCANHINT>
    <HWMINCR>45572</HWMINCR>
    <FLAGS>131073</FLAGS>
   </STORAGE>
   <TS_NAME>KKISHORE</TS_NAME>
   <BLOCKSIZE>8192</BLOCKSIZE>
   <DATAOBJ_NUM>45572</DATAOBJ_NUM>
   <COLS>12</COLS>
   <PCT_FREE>10</PCT_FREE>
   <PCT_USED>40</PCT_USED>
   <INITRANS>1</INITRANS>
   <MAXTRANS>255</MAXTRANS>
   <FLAGS>33</FLAGS>
   <AUDIT_VAL>--------------------------------</AUDIT_VAL>
   <INTCOLS>12</INTCOLS>
   <KERNELCOLS>12</KERNELCOLS>
   <PROPERTY>536870912</PROPERTY>
   <TRIGFLAG>0</TRIGFLAG>
   <SPARE1>736</SPARE1>
   <SPARE6>17-NOV-2006</SPARE6>
   <COL_LIST>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>1</COL_NUM>
     <INTCOL_NUM>1</INTCOL_NUM>
     <SEGCOL_NUM>1</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>OBJECT_NAME</NAME>
     <TYPE_NUM>1</TYPE_NUM>
     <LENGTH>128</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>178</CHARSETID>
     <CHARSETFORM>1</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>128</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>2</COL_NUM>
     <INTCOL_NUM>2</INTCOL_NUM>
     <SEGCOL_NUM>2</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>SUBOBJECT_NAME</NAME>
     <TYPE_NUM>1</TYPE_NUM>
     <LENGTH>30</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>178</CHARSETID>
     <CHARSETFORM>1</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>30</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>3</COL_NUM>
     <INTCOL_NUM>3</INTCOL_NUM>
     <SEGCOL_NUM>3</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>OBJECT_ID</NAME>
     <TYPE_NUM>2</TYPE_NUM>
     <LENGTH>22</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>0</CHARSETID>
     <CHARSETFORM>0</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>0</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>4</COL_NUM>
     <INTCOL_NUM>4</INTCOL_NUM>
     <SEGCOL_NUM>4</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>DATA_OBJECT_ID</NAME>
     <TYPE_NUM>2</TYPE_NUM>
     <LENGTH>22</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>0</CHARSETID>
     <CHARSETFORM>0</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>0</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>5</COL_NUM>
     <INTCOL_NUM>5</INTCOL_NUM>
     <SEGCOL_NUM>5</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>OBJECT_TYPE</NAME>
     <TYPE_NUM>1</TYPE_NUM>
     <LENGTH>18</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>178</CHARSETID>
     <CHARSETFORM>1</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>18</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>6</COL_NUM>
     <INTCOL_NUM>6</INTCOL_NUM>
     <SEGCOL_NUM>6</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>CREATED</NAME>
     <TYPE_NUM>12</TYPE_NUM>
     <LENGTH>7</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>0</CHARSETID>
     <CHARSETFORM>0</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>0</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>7</COL_NUM>
     <INTCOL_NUM>7</INTCOL_NUM>
     <SEGCOL_NUM>7</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>LAST_DDL_TIME</NAME>
     <TYPE_NUM>12</TYPE_NUM>
     <LENGTH>7</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>0</CHARSETID>
     <CHARSETFORM>0</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>0</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>8</COL_NUM>
     <INTCOL_NUM>8</INTCOL_NUM>
     <SEGCOL_NUM>8</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>TIMESTAMP</NAME>
     <TYPE_NUM>1</TYPE_NUM>
     <LENGTH>19</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>178</CHARSETID>
     <CHARSETFORM>1</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>19</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>9</COL_NUM>
     <INTCOL_NUM>9</INTCOL_NUM>
     <SEGCOL_NUM>9</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>STATUS</NAME>
     <TYPE_NUM>1</TYPE_NUM>
     <LENGTH>7</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>178</CHARSETID>
     <CHARSETFORM>1</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>7</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>10</COL_NUM>
     <INTCOL_NUM>10</INTCOL_NUM>
     <SEGCOL_NUM>10</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>TEMPORARY</NAME>
     <TYPE_NUM>1</TYPE_NUM>
     <LENGTH>1</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>178</CHARSETID>
     <CHARSETFORM>1</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>1</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>11</COL_NUM>
     <INTCOL_NUM>11</INTCOL_NUM>
     <SEGCOL_NUM>11</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>GENERATED</NAME>
     <TYPE_NUM>1</TYPE_NUM>
     <LENGTH>1</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>178</CHARSETID>
     <CHARSETFORM>1</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>1</SPARE3>
    </COL_LIST_ITEM>
    <COL_LIST_ITEM>
     <OBJ_NUM>45572</OBJ_NUM>
     <COL_NUM>12</COL_NUM>
     <INTCOL_NUM>12</INTCOL_NUM>
     <SEGCOL_NUM>12</SEGCOL_NUM>
     <PROPERTY>14336</PROPERTY>
     <NAME>SECONDARY</NAME>
     <TYPE_NUM>1</TYPE_NUM>
     <LENGTH>1</LENGTH>
     <NOT_NULL>0</NOT_NULL>
     <CHARSETID>178</CHARSETID>
     <CHARSETFORM>1</CHARSETFORM>
     <SPARE1>0</SPARE1>
     <SPARE2>0</SPARE2>
     <SPARE3>1</SPARE3>
    </COL_LIST_ITEM>
   </COL_LIST>
   <CON0_LIST/>
   <CON1_LIST/>
   <CON2_LIST/>
  </TABLE_T>
</ROW>
</ROWSET>
1 row selected.
SQL>Message was edited by:
Kamal Kishore

Similar Messages

  • How to Create an XML using Abap Objects

    Hi there,
    who has an example how to create an XML Document from an internal table using abap objects
    e.g. Class CL_XML_DOCUMENT_BASE ?
    any feedback is welcome.
    thanks
    Johann

    Hi Johann,
    You don't need a class to do the job if you are on a 6.10 or higher system. Use command CALL TRANSFORMATION to create an XML from an internal table.
    Regards,
    John.

  • How to create the custom table?

    Hi, how to create the custom table and how to integrate the table with defferent R/3?
    my requiremnt is i have to create the two tables and those i have to integrate with the existed R/3 and using those R/3 i have to update my custom tables .....can give me some idea?
    Tks
    DPk

    how to create the custom table
    There are two approach in creating a table.
    1. Bottom-up approach
    2. Top-down approach.
    Both are valid and you can choose which approach is suitable for you. I always use the bottom-up approach. Here are the steps to create the tables with this approach.
    1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
    2. Enter the short discription of the table and enter the field of the table. If it is primary key and you have to check the box.
    3. Enter the data element and double click it, you will be asked to save and will take you to data element discription page. Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
    4. If you wanted to use the existing domain then its fine, or else, you have to create one. Enter the domain name in the data element page and double click it. Page will ask to save and jump to domain creation page.
    5. In the domain page, you have to save the information which you have already given in the data elements page and check it. Before going to data element page, you have to activate the domain.
    6. Go to data element page and save, check and activate.
    7. Go to main table page and save, check, and activate.
    8. Also, you have to save the technical settings of the table.
    The table is now ready for operation. You can use it in your program or you can use it to enter information.
    Check table: It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
    It can be created by creating the foreign key from the main table. Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
    SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.
    how to integrate the table with defferent R/3
    Transport the Table to the another server/client/qas/prd
    Kanagaraja L

  • How to Create Event polling table

    hi,
    1)How to Create Event polling table
    2) wahts RPD stands for.
    3) when we are prefer Dynamic variables.
    thanks.
    raj

    1) http://obiee101.blogspot.com/2008/07/obiee-managing-cache-emptyingpurging.html
    2) Repository Project Design ?
    - More than likely the extension RPD was not used by anything else when Siebel Analytics first started using it, no doubt the 'RP' is repository, so use 'Definition' or 'Design' as you like. Im pretty sure there is nothing in the documentation but i've not checked, maybe you could check and let us know?
    3) Dynamic variables would be something like 'CURRENT_MONTH' where the same query does not need to fire per user (ie SESSION variable) but needs to be periodically refreshed. Another use of you dynamic variable might be 'LAST_ETL_DATE' or somethng similar which might implement with your event polling table. By including the Variable within a Business Model, all cache for the Business Model is purged whenever the Variable's value changes.

  • How to create a temp table in the memory, not in disk?

    in sql server, you can create a temp table in the memory instead of disk,
    then you can do the insert, delete,update and select on it.
    after finishing, just release it.
    in Oracle,
    I am wonderfing how to create a temp table in the memory, not in disk?
    thanks,

    Thanks for rectifying me Howard.
    I just read your full article on this too and its very well explained here:
    http://www.dizwell.com/prod/node/357
    Few lines from your article
    It is true, of course, that since Version 8.0 Oracle has provided the ability to create a Keep Pool in the Buffer Cache, which certainly sounds like it can do the job... especially since that word 'keep' is used again. But a keep pool is merely a segregated part of the buffer cache, into which you direct blocks from particular tables (by creating them, or altering them, with the BUFFER POOL KEEP clause). So you can tuck the blocks from such tables out of the way, into their own part of the buffer cache... but that is not the same thing as guaranteeing they'll stay there. If you over-populate the Keep Pool, then its LRU mechanism will kick in and age its contents out just as efficiently as an unsegregated buffer cache would.
    Functionally, therefore, there can be no guarantees. The best you can do is create a sufficiently large Keep Pool, and then choose the tables that will use it with care such that they don’t swamp themselves, and start causing each other to age out back to disk.
    Thanks and Regards

  • How to create variant for table/view ?

    Hi,
    When I go through SM30, I find a radio button called variant. I don't know the effect.
    Can anyone tell me how to create variant for table / view ?
    I want to know when we need to create variant for table/view.
    Best regards,
    Chris Gu

    hi ,
    Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
    For further information about selection screens, refer to Selection Screens in the ABAP User's Guide.
    If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant
    Procedure
    To create a new variant:
           1.      On the ABAP Editor initial screen, enter the name of the program for which you want to create a variant, select Variants, and choose Change.
           2.      On the variant maintenance initial screen, enter the name of the variant to be created.
    Note the naming convention for variants (see below).
           3.      Choose Create.
    If the program has more than one selection screen, a dialog box for screen assignment appears. The dialog box does not appear if the program only has one selection screen. The selection screen appears in this case.
           4.      If there is more than one selection screen, select the screens for which you want to create the variant
    5.      Choose Continue.
    The (first) selection screen for the report appears.
    If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them and to fill the fields with values. If you keep scrolling forwards, the Continue button appears on the last selection screen.
           6.      Enter the desired selection values, including multiple selection and dynamic selection.
           7.      Choose Continue.

  • HOW TO create a temp table or a record group at run time

    i have a a tabular form and i dont want to allow the user entering duplicate
    records while he is in insert mode and the inserted records are new and not exsisting in the database.
    so i want to know how to create a temp table or a record group at run time to hold the inserted valuse and compare if they are exsiting in previous rows or no.
    please help!

    As was stated above, there are better ways to do it. But if you still wish to create a temporary block to hold the inserted records, then you can do this:
    Create a non-database block with items that have the same data types as the database table. When the user creates a new record, insert the record in the non-database block. Then, before the commit, compare the records in the non-database block with those in the database block, one at a time, item by item. If the record is not a duplicate, copy the record to the database block. Commit the records, and delete the records in the non-database block.

  • How to create an XML document from a String.

    Can anyone help,
         In the Microsoft XML Document DOM there is a load function load(string) which will create an XML document, but now we are switching to Java and I do not know how to create and XML document from a string, this string �xml document� is passed to my program from a webservice and I need to read several xml elements form it in a web server.
    This string is a well formatted XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <Countries NumberOfRecords="1" LanguageID="en-us">
         <Country>
              <CountryCode>AU</CountryCode>
              <CountryName>AUSTRALIA</CountryName>
         </Country>
    </Countries>

    Thanks PC!
    I made it work using:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    factory.setIgnoringComments(true); // We want to ignore comments
    // Now use the factory to create a DOM parser
    DocumentBuilder parser = factory.newDocumentBuilder();
    //TransformThisStringBuffer is a string buffer wich contain the 'XML document (String)'
    InputStream in = new ByteArrayInputStream(TransformThisStringBuffer.toString().getBytes());
    // Parse the InputStream and build the document
    Document document = parser.parse(in);
    But which one is faster InputSource or InputStream, were would you put the "new InputSource(new StringReader(yourString))" in the above code?

  • How to create new XML file using retreived XML content by using SAX API?

    hi all,
    * How to create new XML file using retreived XML content by using SAX ?
    * I have tried my level best, but output is coming invalid format, my code is follows,
    XMLFileParser.java class :-
    import java.io.StringReader;
    import java.io.StringWriter;
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.sax.SAXSource;
    import javax.xml.transform.sax.SAXTransformerFactory;
    import javax.xml.transform.sax.TransformerHandler;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.xml.sax.Attributes;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.XMLFilterImpl;
    public class PdfParser extends XMLFilterImpl {
        private TransformerHandler handler;
        Document meta_data;
        private StringWriter meta_data_text = new StringWriter();
        public void startDocument() throws SAXException {
        void startValidation() throws SAXException {
            StreamResult streamResult = new StreamResult(meta_data_text);
            SAXTransformerFactory factory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();
            try
                handler = factory.newTransformerHandler();
                Transformer transformer = handler.getTransformer();
                transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                handler.setResult(streamResult);
                handler.startDocument();
            catch (TransformerConfigurationException tce)
                System.out.println("Error during the parse :"+ tce.getMessageAndLocation());
            super.startDocument();
        public void startElement(String namespaceURI, String localName,
                String qualifiedName, Attributes atts) throws SAXException {
            handler.startElement(namespaceURI, localName, qualifiedName, atts);
            super.startElement(namespaceURI, localName, qualifiedName, atts);
        public void characters(char[] text, int start, int length)
                throws SAXException {
            handler.characters(text, start, length);
            super.characters(text, start, length);
        public void endElement(String namespaceURI, String localName,
                String qualifiedName) throws SAXException {
            super.endElement("", localName, qualifiedName);
            handler.endElement("", localName, qualifiedName);
        public void endDocument() throws SAXException {
        void endValidation() throws SAXException {
            handler.endDocument();
            try {
                TransformerFactory transfactory = TransformerFactory.newInstance();
                Transformer trans = transfactory.newTransformer();
                SAXSource sax_source = new SAXSource(new InputSource(new StringReader(meta_data_text.toString())));
                DOMResult dom_result = new DOMResult();
                trans.transform(sax_source, dom_result);
                meta_data = (Document) dom_result.getNode();
                System.out.println(meta_data_text);
            catch (TransformerConfigurationException tce) {
                System.out.println("Error occurs during the parse :"+ tce.getMessageAndLocation());
            catch (TransformerException te) {
                System.out.println("Error in result transformation :"+ te.getMessageAndLocation());
    } CreateXMLFile.java class :-
    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();
    Sax.endElement("", "basic-metadata", "basic-metadata");* In CreateXMLFile.java
    class, I have retreived the xml content in the meta_data object, after that i have converted into character array and this will be sends to SAX
    * In this case , the XML file created successfully but the retreived XML content added as an text in between basic-metadata Element, that is, retreived XML content
    is not an XML type text, it just an Normal text Why that ?
    * Please help me what is the problem in my code?
    Cheers,
    JavaImran

    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    </code><code>Sax.endElement("", "basic-metadata", "basic-metadata");</code>
    <code class="jive-code jive-java">Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();     
    * I HAVE CHANGED MY AS PER YOUR SUGGESTION, NOW SAME RESULT HAS COMING.
    * I AM NOT ABLE TO GET THE EXACT OUTPUT.,WHY THAT ?
    Thanks,
    JavaImran{code}

  • How to create an xml from xsd in abap

    HI Experts,
       i want to create an xml file from xsd and i want to validate an xml file against an xds.is this possible in abap.if it is possible can any one give me an sample code
    for this one.
    how to create an xml file in abap.i have seen so many blogs which parses the xml file but i didn't get blog for creating an xml file.how can we do that one.
    any suggestions will be appriciated
    thanks in advance
    With Regards
    Naidu

    HI
    GOOD
    IT IS POSSIBLE IN ABAP
    Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.
    XSD->
    XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents. in more detail.
    XDS->
    XDS can process data images from CCD-, imaging-plate, and multiwire-detectors in a variety of formats. Detector specific Input file templates greatly simplify the use of XDS; they are provided as part of the documentation.
    XDS runs under Unix or Linux on a single server or a grid of up to 99 machines of the same type managed by the MOSIX system; in addition, by using OpenMP, it can be executed in parallel on up to 32 processors at each node that share the same address space.
    http://www2.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=2926
    /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
    THANKS
    MRUTYUN

  • How to create a booking table (make online reservation)

    Hi everyone,
    I'm just wondering if any of you know how to create a booking
    table, like a booking seat for an airplane... I have to do the
    booking table as I'm doing a Japanese Restaurant website for my
    project.. At the moment, I'm using PHP, MySQL and HTML..
    Could anyone help me, please?
    Cheers,
    Nova

    You first need to check with your host to see which type of
    server side
    scripting language they support. If they support PHP, try,
    http://www.jellyform.com/
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Blog:
    http://avenuedesigners.com/blog/
    Web dev articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "mastacraft" <[email protected]> wrote in
    message
    news:f3pote$d16$[email protected]..
    > Hello,
    >
    > I need to create a booking form for a website- So wen
    they fill out form
    > for
    > bookings. Should have tab for club appearance. Magazine
    ads. Etc It needs
    > to
    > lead to this email : [email protected]
    >
    > I'm really not sure how the best way is to do this, i
    understand it's
    > probably
    > a really simple process.
    >
    > Regards,
    >

  • How to Create an XML document from XSQL servlet which follows a particular DTD struct

    how to Create an XML document from XSQL servlet which follows a particular DTD structure.Could anyone send me a sample code for this.

    You'll need to associate an XSLT transformation with your XSQL page that transforms the canonical result into your DTD-valid format.
    For example, given an XSQL page like:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="rss.xsl" ?>
    <xsql:query max-rows="3" connection="demo" xmlns:xsql="urn:oracle-xsql">
    select title,id,description,url,to_char(timestamp,'Mon DD') timestamp
    from site_entry
    order by id desc
    </xsql:query>and an "rss.xsl" stylesheet that looks like this:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes" doctype-system="rss-0.91.dtd"/>
    <xsl:template match="/">
    <xsl:for-each select="ROWSET/ROW">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    <xsl:for-each select="ITEM">
    <item>
    <title><xsl:value-of select="TITLE"/></title>
    <link><xsl:value-of select="URL"/></link>
    <description><xsl:value-of select="DESCRIPTION"/></description>
    </item>
    </xsl:for-each>
    </channel>
    </rss>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>You produce DTD-valid output against the rss-0.91.dtd DTD that looks like:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE rss SYSTEM "rss-0.91.dtd">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>

  • How to create a new table based out of old data rows

    Hi All,
    How to create a new table based out of old data rows. Also how can we find out the DBF for different users in a database?
    Saqib

    Not very clear what you need. I'll try to interpret...
    How to create a new table based out of old data rowsIf this means how to create a table from an existing one, then you can do :
    SQL> create table <new table> as select * from <old table>;
    if you need a subset of rows you can add a where clause.
    how can we find out the DBF for different users in a database?Here I need some more clarification. What do you mean exactly ?

  • How to create database and table with GUI?

    How to create database and table with GUI?
    for linux can do that?
    or have only way to create table by use sql*plus.
    everyone please help me.
    thanks

    go to www.orasoft.org
    here is a gui tool.
    null

  • How to create a dynamic table were the JTable columns keep varying

    How to create a dynamic table were the JTable columns keep varying based on the input to the jtable

    Oooh, I lied. DefaultTableModel has an API for adding and
    removing columns. I didn't know that. You should have read
    the API.
    As for preferring to extend AbstractTableModel rather than
    DefaultTableModel, I think it's more correct. DefaultTableModel
    is a simple implementation of Abstract for basic cases. It isn't
    intended to be extended. I figure most people extending
    DefaultTableModel are also extending JFrame, JPanel, and Thread
    instead of encapsulating the first two and implementing
    Runnable for the third.

Maybe you are looking for