Generate database schema in XML from database structure

hi
I want to generate the entire database schema in XML from database structure. (Same feature is provided by Altova XMLSpy).
It would be great if there was some API that does the process of parsing the database structure and generating the XML automatically. A similiar feature is provided by Apache DdlUtils' API, but a stable version is not yet available...
Please help!
Thanks in advance.

Nikhil,
There is a wealth of information available on the Internet regarding the XML capabilities of the Oracle database.
Have you done an Internet search for "SQL XML Oracle"?
Good Luck,
Avi.

Similar Messages

  • Generating XML from database

    I'm a total newbie in XML DB and need advice on generating XML from database.
    The situation is the following: there is a legacy web application which uses an XML document as a configuration file. This document conforms to some well-defined schema. For instance:
    <config>
         <title value="TITLE" />
         <subtitle value="SUBTITLE" />
         <style url="default.css" />
         <widgets>
              <widget id="1" opened="true" />
              <widget id="2" opened="false" />
         </widgets>
    </config>
    It contains portions of static data which are common for all users as well as dynamic personal data.
    Dynamic data comes from two sources:
    1) security considerations (for instance, not all widgets are available for some users) - thus the "master" configuration content must be filtered, but not otherwise modified;
    2) user preferences (for instance, user can set widget2 to be opened by default) - thus values of some attributes must be different for each user. When the user saves her preferences, the entire document with new values is posted back to server.
    We want to try to store user preferences, apply security and generate personalized configuration documents using XML DB.
    So we need advice on storage models and generation procedures - which should be more efficient and easy to support or extend.
    Please note, that there is no requirement to actually store data as XML.
    Thanks in advance!
    P.S.: Sorry for the incomplete initial post.
    Edited by: WxD on 27.09.2010 11:45

    Hi,
    See this link for more details
    http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10790/xdb13gen.htm

  • How to populate Adobe LiveCycle Designer generated  PDF Forms with data from Database in Windows app

    Hi
    I have a PDF template designed in Adobe LiveCycle Designer. This template has form fields which needs to be filled with data programmatically. I am using windows application in C#.Net 2005 in which I want to retrieve data from database and merge this data into PDF form in respective fields.
    How this can be achieved?
    I searched a lot & I found that we can process the XDP file generated from PDF to acheive this. I created the XDP file out of the PDF template created in designer. But I don't know how to merge data from database into that XDP file in respective fields and again convert this XDP file back to PDF programmatically. Can anybody help me ? This is urgent.
    Thanks in advance.
    Sambhaji

    Please ignore the above code.<br />The following one is correct one.<br />using System;<br />using System.Data;<br />using System.Configuration;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Web.UI.WebControls.WebParts;<br />using System.Web.UI.HtmlControls;<br />using System.Text;<br />public partial class _Default : System.Web.UI.Page <br />{<br />    protected void Page_Load(object sender, EventArgs e)<br />    {<br />        Response.ContentType = "application/vnd.adobe.xdp+xml";<br />        StringBuilder responseString = new StringBuilder();<br />        responseString.Append("<?xml version='1.0' encoding='UTF-8'?>");<br />        responseString.Append("<?xfa generator='AdobeLiveCycleDesigner_V8.0' APIVersion='2.5.6290.0'?>");<br />        responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>");<br />        responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>");<br />        responseString.Append("<xfa:data>");<br /><br />        responseString.Append("<form1>");<br />        responseString.Append("<TextField1>Homer</TextField1>");<br />        responseString.Append("<TextField2>Simpson</TextField2>");<br />        responseString.Append("<field name ='DropDownList1'>");<br />        responseString.Append("<items save='1'>");<br />        responseString.Append("<text>1</text>");<br />        responseString.Append("<text>2</text>");<br />        responseString.Append("<text>3</text>");<br />        responseString.Append("</items>");<br />        responseString.Append("</field>");<br /><br />        responseString.Append("</form1>");<br /><br />        responseString.Append("</xfa:data>");<br />        responseString.Append("</xfa:datasets>");<br />        responseString.Append("<pdf  href='C:\\Test.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />");<br />        responseString.Append("</xdp:xdp>");<br /><br />        Response.Write(responseString);<br />        Response.Flush();<br />        Response.End();<br />    }<br />}

  • Can I get the oracle database schema in xml like the original ones

    Working with Migration Workbench I've found that uses an XML
    with the schema of the original database. I'm asking if I can
    get the equivalent XML for the oracle model.
    I need a quickly way of get in XML the structure (not data) of
    my oracle databases.
    Any idea?

    Ok, it is unclear on what is happening here.
    Are you saying that when the webclient gets the data that it is not honoring the quote characters? Or the processing of the data buffer is causing issues?
    This is what I see the of your example text which is trying to be parse out:
    <a onmouseover="EnterContent('ToolTip','תווית על בגד: &rsquo;&rsquo;תן לאישה לכבס. זה תפקידה&rsquo;&rsquo;','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();">";
    It appears to me that the  escapes `&rsquo;` does not have matching `&ldquo;` anywhere within the tooltip. So it appears that the page properly places left quotes in when processing the page, but the raw html has broken text.
    Hence a garbage in, garbage out situation.
    William Wegerson (www.OmegaCoder.Com)

  • Help required in writing And Reading Xml From Database

    Hi
    i m new to java.
    i m facing problem while writing Xml file from Mysql Database in java i m using the WebRowSet
    and also for Reading WebRowSet
    after reading the Xml i have to save this in Database
    (required source code)
    is there any one to help me in this way
    regards
    aamir

    shadab_think_globally wrote:
    {noformat}*hi everybody,
    please send me a ajax with jsp application
    suppose i enter a word in text area ajax will populate/suggest all string from database ,who started
    from that entering character(s).like a google string search.
    please send full source code
    *{noformat}how about you do it yourself?

  • Write n then read xml from database to create graph in an applet

    Hi mates
    I have one problem I want show a trend(graph) from sql database which is having the records of about 8600 in a day. And i want to show a graph for a day
    but sometimes it gives a problem like out-of-memory, so can anyone tell me how i can get read of it.
    and other this can i use xml for this means first write a data in xml format from database then read it at sametime and show graph in applet
    can anytell me how to do it
    any suggesion is appreciable
    thanx

    Here's are two example for what you are looking for
    Re: Load xml data in Oracle table
    Re: insert .xml file into xmltype table?
    First you need to create a DIRECTORY object.  That is how Oracle works and it expects a DIRECTORY object instead of a physical path when performing operations that read/write from disk.  The directory path provided to the CREATE DIRECTORY command must be a directory that the machine Oracle DB resides on can see.
    Then you can go either of two routes.  You can INSERT that XML directly into a table, as shown in the second link I provided or you can read it into PL/SQL as the first link shows.  Then in either case, you can use SQL to parse the XML for you.
    Depending upon your needs, you may get better performance if you insert the XML into a table as the second link shows, assuming the XMLType column is stored as SECUREFILE BINARY XML.

  • Generating XML from Database using XSQL

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

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

  • Bursting XML from Database

    Hi,
    i am a newbie at BI Publisher.
    My question: We are getting a xml-file out of a clob-field from a database and generate a report. but in the xml file are more costumers and we want to split the report by the customer. Is it possible?
    Greetz

    Yes, use the bursting in BIP.
    To test it out,
    load the xml into demo files location.
    and try creating report based on that xml. and select the bursting option, you will see all the nodes from xml over there.
    select customer element as the split by.
    create template as need and specify the location the files to be created.
    the xml will be split based on the bursting split by and output will be having files for customer

  • Xml from database

    Hi,
    I am new to XML, XSL etc. So, pardon my question if it seems
    too basic.
    I wish to read from an Oracle 8.x database and construct an
    html page using XML, XSL etc.
    1. How can I do that using using OAS 4.x, pl/sql or Java ?
    2. Is there any tutorial or documentation to get started ?
    I would appreciate any pointers.
    regards,
    null

    If you have access to Oracle 8i (8.1.5) you can download the XML
    SQL Utility and the XSQL Servlet to do what you want. If HTML
    is your end format you should also check out WebDB.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    lakshmi narayan (guest) wrote:
    : Hi,
    : I am new to XML, XSL etc. So, pardon my question if it seems
    : too basic.
    : I wish to read from an Oracle 8.x database and construct an
    : html page using XML, XSL etc.
    : 1. How can I do that using using OAS 4.x, pl/sql or Java ?
    : 2. Is there any tutorial or documentation to get started ?
    : I would appreciate any pointers.
    : regards,
    null

  • Generate schema-base XML from XML fragments

    I have a defined .xsd file and an incoming xml file that I am inspecting in a BEFORE INSERT trigger. I registered the xml schema to create a single column table of xmltype. The incoming xml consists of a root node and two data nodes. There are 3 elements on the first data node that need to have their value updated before the xml doc is inserted into the xmltype Oracle table.
    I was trying to find a way to use updateXML(), but that seems to work only for an existing row in the table. I then turned my attention to createXML(). I grabbed the root node and two data nodes and built 3 different clob's. One of the clob's contains an updated data node. Then I am doing the following:
    :new.sys_nc_rowinfo$ := createXML(clob1||clob2||clob3, registeredURL);
    registeredURL contains the URL that was registed in the schema. While it seems that the signature of the createXML() function is correct (I get no compile errors), the results are not valid per the schema. Is there a way in PL/SQL to do what I am trying to do? Seems like a pretty simple concept.

    Nikhil,
    There is a wealth of information available on the Internet regarding the XML capabilities of the Oracle database.
    Have you done an Internet search for "SQL XML Oracle"?
    Good Luck,
    Avi.

  • Installing Peoplesoft Database schema into an *existing* database ?

    Are there explicit restrictions against installing a Peoplesoft schema (SYSADM) into an existing database where other application schemas are already present ?
    If it is permissible, are there real-world experiences with such an implementation ?
    What are the pros and cons ?
    So far my experience has been 1 Peoplesoft Schema in a "Peoplesoft-Only" database.
    Hemant K Chitale

    Hi Hemant,
    Having more than one Peoplesoft application in one database is really painful.
    First, on security and setting level, have multiple symbolic id (SYSADM1, SYSADM2...) implies different symbolicid for all the users.
    Then, you may have some troubles to tune the database if appl and usage are differents between each other. Without saying about tables/tablespaces...
    It is so much easier, scalable and reliable to have one-to-one relationship between appl and database that I do not see anything good to get all-in-one.
    I worked on such config few years ago (FSCM and HRMS in one database), after few months of production, the maintenance was really became a nightmare, a project has been made to cut it in pieces.
    It has been strongly recommanded by Peoplesoft to avoid multiple appl in one database for years.
    Now I'm re-reading your post, you may ask about an other appl (other than PS) within a PS appl into one db... never done such thing, but again, each appl have their own usage and specificities. It could be even worse since each appl ignore the other one, I would tend to avoid that.
    Nicolas.

  • Generate a runtime req xml from a jsp and then use existing idc webservice

    Hi,
    I need to write a jsp that will generate a runtime SOAP request xml intaking the paramters that I had put into the jsp and thereby take the response from the response xml , extract that and show that in a result.jsp
    I will be grateful if anybody can help to do this as I am not sure how I can generate the runtime xml and thereby use the existing Idc webservices.Please help!

    Hey,
    Did you get info or solution?

  • Problem in displaying XML document from database

    Hi I am getting only record in printing xml file which takes from data base.
    Here is my programme.
    Document doc;
    ����public void processTable(Connection con, String tableName)
    ����{
    ��������try
    ��������{
    ������������this.iColumnCount=0;
    ������������HashMap hm = new HashMap();
    ������������//XML related Interfaces
    ������������DocumentBuilderFactory dbf;
    ������������DocumentBuilder db;
    ������������Element rootElement = null;
    Element colData = null;
    ������������Element relElement = null;
    �����
    ������������//Database relevent Interface
    ������������ResultSet rslt = null;
    ������������DatabaseMetaData dmd = null;
    ������������ResultSetMetaData rsmd= null;
    ������������//Initilize the Factory Classes
    ������������dbf = DocumentBuilderFactory.newInstance();
    ������������db = dbf.newDocumentBuilder();
    ������������doc = db.newDocument();
    ������������//Assign the root elements to document
    ������������rootElement = doc.createElement("entity");
    colData = getColMetaData(tableName);
    ������������rootElement.appendChild(colData);
    ������������doc.appendChild(rootElement);
    ������������TransformerFactory tFactory = TransformerFactory.newInstance();
    ����������������Transformer transformer = tFactory.newTransformer();
    ����������������transformer.transform(new DOMSource(doc),
    ��������������������new StreamResult(new FileOutputStream(tableName+".xml")));
    ��������} catch (Exception sqle)
    ��������{
    ����������������e.printStackTrace();
    ��������}
    ����}
    ����/**
    �����* Method getColMetaData.
    �����* @param tableName
    �����* @return Element
    �����*/
    ����private Element getColMetaData(String tableName)
    ����{
    ��������try{
    ������������ResultSet rslt = null;
    ������������ResultSetMetaData rsmd = null;
    ������������DataTypeMap dtp = new DataTypeMap();
    ������������HashMap hm = new HashMap();
    ������������hm = dtp.DataTypes();
    ������������Connection con = db.createConnection();
    ������������Statement stmt = con.createStatement();
    ������������String sQuery = "select * from " +tableName;
    ������������rslt = stmt.executeQuery(sQuery);
    ������������rsmd = rslt.getMetaData();
    ������������Element rooElement = null;
    ������������//Element currentElement =null;
    ������������iColumnCount = rsmd.getColumnCount();
    ����������������Element currentElement = null;//doc.createElement("field");
    // rootElement = doc.createElement("column");
    ����������������for (int i = 1; i <= iColumnCount; i++)
    ��������������������{
    currentElement = doc.createElement("field");
    ������������������������currentElement.setAttribute("DBFieldName",rsmd.getColumnName(i));
    ������������������������currentElement.setAttribute("FieldName",rsmd.getColumnLabel(i));
    ������������������������
    ��������������������}
    ��������������return currentElement;
    ��������catch(Exception ee){
    ������������logger.info(ee.getMessage());
    ��������}
    ��������return null;
    ����}
    Here 'return currentElement;' return the collection of elements.But when I print
    document it is giving only last element.I am not getting how only one record is printing even it has more records
    please help me in this regards.
    here the out put:
    <?xml version="1.0" encoding="UTF-8"?>
    <entity>
    ��<field DBFieldName="X_TYPE" FieldName="X_TYPE"/>
    </entity>
    -krish
    [email protected]

    Problem in displaying the XML Data from database
    Hi I have requirement of generating the XML from database.I could able to acheive partially.
    I am giving the problem below.
    public void processTable()
    Element rootElement = doc.createElement("entity");
    Element colData= getColMetaData(tableName);
    rootElement.appendChild(colData);
    doc.appendChild(rootElement);
    //print the document
    /*getColData method as follows*/
    private Element getColMetaData(String tableName)
    try{
    ResultSet rslt = null;
    ResultSetMetaData rsmd = null
    Connection con = db.createConnection();
    Statement stmt = con.createStatement();
    String sQuery = "select * from " +tableName;
    rslt = stmt.executeQuery(sQuery);
    rsmd = rslt.getMetaData();
    iColumnCount = rsmd.getColumnCount();
    Element currentElement = doc.createElement("field");
    for (int i = 1; i <= iColumnCount; i++)
    currentElement.setAttribute("FieldName",rsmd.getColumnName(i));
    currentElement.setAttribute("Position", parseString(i));
    rootElement.appendChild(currentElement);
    return currentElement;
    catch(Exception ee){
    logger.info(ee.getMessage());
    return null;
    /* End of Method*/
    Here when I printing the document it is giving out put like :
    <entity >
    <field FieldName="X_ID" Position="1"/>
    </entity>
    The is displaying only one field information even though table contains more then one column.If we maintain all the aboue code in single method it is working fine.I want to decouple the like above.Bcz I may have more then one set of elements like this.
    Please help in this regards,
    -Krish
    [email protected]

  • Enterprise SecMgr: Can't add Database Schema Mapping to OracleDefaultDomain

    Hello,
    I'm trying to configure Enterprise Users (using a shared schema) and within EntSecMgr, I select...
    Realms / MyID realm / Enterprise Domains / OracleDefaultDomain / Enterprise Roles / OracleDefaultDomain / Database Schema Mapping
    and from there, I try to add the Directory Entry and schema. I don't get any errors when I click "OK", but the Database Schema mapping does not "take".
    I notice the little icon next to OracleDefaultDomain (in ESM) has a "lock", so perhaps it's read-only? How can I change that, or where should I be assigning the Database Schema mapping, if not in the OracleDefaultDomain?

    I never did figure out why I can't add the Database Schema Mapping to the OracleDefaultDomain, but I used ESM to add the schema mapping directly to the database itself, and now my Enterprise Users can login.

  • How can let oc4j use my database schema file?

    I wrote a mysql.xml in config\database-schemas.
    But when I deploy a ejb application, It reported:
    2005-2-20 4:11:03 com.evermind.server.Application getDatabaseSchema
    Warning: Exception occurred getting database schema. Exception: java.sql.
    SQLException: Can't call commit when autocommit=true
    2005-2-20 4:11:04 com.evermind.server.Application getDatabaseSchema
    Warning: Warning: Exception occurred getting database schema. Exception: java.sql.
    SQLException: Can't call commit when autocommit=true
    05/02/20 04:11:05 Auto-deploying - compiling and loading...
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    05/02/20 04:11:22
    Auto-creating table: create table Student_ejb1_ejb1 (id BIGINT not null primary
    key, name SET(255) null)
    05/02/20 04:11:22 Error creating table: You have an error in your SQL syntax; ch
    eck the manual that corresponds to your MySQL server version for the right syntax....
    Do I need write schema property in data-sources.xml?

    To the data-sources.xml configuration file add a datasource element for MySQL. In the schema attribute set the schema file to database-schemas/mysql.xml.
    <data-source
        class="com.mysql.jdbc.jdbc2.optional.MysqlDatasource"
        name="OracleDS”
        schema="database-schemas/mysql.xml"
        location="jdbc/mySQLCoreDS"
        xa-location="jdbc/xa/mySQLXADS"
        ejb-location="jdbc/mySQLDS"
        connection-driver="com.mysql.jdbc.Driver"
        username=""
        password="”
        url="jdbc:mysql://localhost/test"
        />   

Maybe you are looking for

  • ITunes keeps crashing on my iPod touch

    It seems to have started after I updated the software on the iPod touch.

  • Unable to upload Files to child site collection using REST

    Dear All, I referred this article http://www.shillier.com/archive/2013/03/26/uploading-files-in-sharepoint-2013-using-csom-and-rest.aspx for uploading documents to SP Document Library and it works fine for any document library under the root site col

  • [Solved]Catalyst14.1 and X server1.15, X crashed when playing video

    Last upgrade to catalyst 14.1-1 and xorg-server 1.15.0 When playing local video,the X server crashed.Nothing's wrong unless playing local video,Watching online video and ingame video ,as well as playing video in Vmware has nothing wrong.I've tried vl

  • The Tools to develop JSP

    I want to develop a new JSP website. I have select Macromedia Dreamweaver MX 2004 as the tools to develip my website. webserver is Apache HTTP Server Application server is Apache Tomcat v5. Database will be Microsoft SQL Server I will download J2EE 1

  • Browsing album covers in iTunes 7.6

    Why all of a sudden when I click on the third icon about VIEW - does it tell me in large print: __*iTunes is unable to browse album covers on this computer*.__ It's not a new computer ..... nothing has changed lately - it just all of a sudden will no