Schema or XML

Hi All,
I have used both XML Schema and XML data connections in forms.
I have few questions,
1) How do I know when to use Schema or XML?
2) When both the options are available, which one to use Schema or XML?
3) Also, how do i preserve data binding across all the environments say DEV,UAT etc?
4) We have embed XML schema option available when you select Schema data connnetion, What is the purpose of that?
5) Is there any way in Workbench so that I can check whether the XML is conforming to the schema I have used in the form?
Thanks in advance.

No I guess that is not supported.
rahul

Similar Messages

  • How to get IDOC schema in XML

    Please tell me how to get an Idoc schema into XML from SAP.
    I want all the details of an Idoc, i.e Segments and fields in one file.
    Quick response will be appriciated.
    Thanks
    Kiran

    WE60 enter the IDoc type then menu path Documentation->XML Schema. This may depend on what version of SAP you are on.

  • Inserting a row in a schema-based xml type column

    i have problems while inserting a row in a schema-based xml type column
    it reports an error(schema and elemnt do not match)
    although they are matching if anyone can try it
    and if it worked plz send me the example

    SQL> DESC XML_TAB;
    Name Null? Type
    XML XMLTYPE
    SQL> INSERT INTO XML_TAB
    2 VALUES
    3 (xmltype('<request>
    4 <filter>(extshortname=bhagat)</filter>
    5 <attributes>dn</attributes>
    6 <context/>
    7 <scope>subtree</scope>
    8 </request>'));
    1 row created.
    If your problem persists,post ur lines of code..
    Good luck!!!
    Bhagat

  • What is the best way to create a database schema from XML

    What is the best way to create a database schema from XML?
    i have  a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
    There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
    Taking my C# further

    Hi Saythj,
    When mentioning "a database schema from XML", do you mean the
    XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
    Create an XML Schema Collection basing on your complex XML, you can find
    many generating tools online to do that.
    Create a Table with the above created schema typed XML column as below.
    CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
    Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Delete schema based xml fails

    I am attempting to delete xml files through the following command:
    delete from
    (select 1 from resource_view
    where UNDER_PATH(res, '/home/user1/forms', 1) = 1
    order by depth(1) desc);
    /home/user1/forms contains over 200,000 schema-based xml documents that I wish to drop. The schema-based documents previously were loaded properly and showed 0kb size. Their contents are accessible from views and can be used in sql statements.
    The command has been running over 24 hours with the server's cpu maxed at 100%. The server is Windows Server 2003 and the database is 9.2.0.4. There are no relevant invalid objects in the database.
    Could the command be failing (or simply taking a really, really long time) because I should not have loaded all the forms into a single folder? I have been able to run the above command on folders with 5 or ten xml documents in them.

    Hi people,
    Our results (YMMV - and if it does then tell us how) made us VERY reluctant to drop structures that weren't empty - period.
    Try it for yourselves but our experience was basically any live dropping of XML schema structures has a fairly good chance of being incomplete or not allowing the same schema to be reconstituted in a lights-out environment... (ie. didn't completely remove types / tables from dictionary so we got "<name> already exists" errors on schema re-registration, requiring an instance restart - but with no guarantees ).
    BTW : DELETE FROM gives MASSIVE amounts of redo ...and takes MASSIVE amounts of time with the hierarchy triggers enabled [I suspect the moderately evil UNDER_PATH operator is hidden in the delete hierarchy trigger] (hence the copy out stuff to be kept - then TRUNCATE option).
    And with schema mapped hierarchy enabled structures - dropping the tables left dangling pointers from the resource entry to the now non-existent schema table structures. These dangling pointers destroyed access to that set of resources (and any resources PAST evaluation of those rows in RESOURCE_VIEW [a previous rant of mine on "exception objects" explains why]. (Until a dbms_xdb.deleteresource( <path>, dbms_xdb.*force) was used on each resource).
    So to update or extend our hierarchy enabled schema our recipe became :
    Disable receiver processes
    Disable hierarchy triggers
    for r in
    ( select *
    from resource_view r
    where r.any_path like || '<app_root>/%'
    order by instr( r.any_path, '.' ) desc
    -- hack to delete files before folders
    loop
    dbms_xdb.deleteresource(
    r.any_path,
    dbms_xdb.delete_resource
    end loop;
    Delete the rows from the xml type tables. (TRUNCATE each table from bottom up).
    Drop the schema with dbms_xmlschema.delete_invalidate;
    Drop all xml related user types and tables (by naming convention in our XML Schema xdb:SQLType* / xdb:SQLName* attributes).
    Register new schema and transform / insert stored XML values into tables again.
    NOTE : In our case we copy those rows / resources we need to keep to other CLOB based structures first and reconstitute them after the schema is back - thankfully our profile allows this.
    Hope this helps,
    Lachlan

  • Loading Oracle Schema into XML Schema format

    Hello,
    I'd like to load the Oracle schema information (tables/views, columns, and constraints) into XML Schema format, then read in the XML Schema information to instantiate objects which will be used to build adhoc/dynamic queries. I have the dynamic query part working, but it was not clear to me how to convert the Oracle schema to XML Schema then XML Schema to custom objects. Does anyone have experience with this or ideas as to how to go about this?
    Thanks,

    Use the Oracle WebRowSet. The WebRowSet interface extends the RowSet interface and is the XML document representation of a RowSet object. A WebRowSet object represents a set of fetched database table rows, including the database metadata, which may be modified without being connected to the database.
    http://www.oracle.com/technology/sample_code/tutorials/jdbc10g/webrowset/files/WebRowset.pdf
    Refer chapter 10.
    http://www.packtpub.com/j2ee-development-with-oracle-jdeveloper-jdbc-4.0/book
    Ouput including medata as XML document:
    http://www.java2s.com/Code/Java/Database-SQL-JDBC/OutputWebRowSetinXML.htm

  • 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.

  • Schema based xml db

    how to create schema based xml database..i have tried but showing errors
    how to register the xml schema......

    LOL - "being the ACE" - hereby some of the things you could do
    an example
    clear screen
    -- Drop user TEST if it exists - Cleaning Up First
    conn / as sysdba
    set echo on
    set termout on
    set feed on
    drop user test cascade;
    purge dba_recyclebin;
    create user test identified by test;
    grant xdbadmin, dba to test;
    connect test/test
    set echo on
    set termout on
    set feed on
    var schemaPath varchar2(256)
    var schemaURL  varchar2(256)
    pause
    clear screen
    begin
      :schemaURL := 'http://www.myserver.com/root.xsd';
      :schemaPath := '/public/root.xsd';
    end;
    -- Create an XML Schema root.xsd in directory /public/
    declare
      res boolean;
      xmlSchema xmlType := xmlType(
    '<?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:xdb="http://xmlns.oracle.com/xdb"
                xmlns="http://www.myserver.com/root.xsd" targetNamespace="http://www.myserver.com/root.xsd"
                elementFormDefault="qualified"
                attributeFormDefault="unqualified"
                xdb:storeVarrayAsTable="true">
    <xs:element name="ROOT" xdb:defaultTable="ROOT_TABLE" xdb:maintainDOM="false">
      <xs:annotation>
       <xs:documentation>Example XML Schema</xs:documentation>
      </xs:annotation>
      <xs:complexType xdb:maintainDOM="false">
       <xs:sequence>
        <xs:element name="ID" type="xs:integer" xdb:SQLName="ID"/>
        <xs:element ref="INFO" xdb:SQLInline="false" />
       </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="INFO" xdb:SQLName="INFO_TYPE">
      <xs:complexType xdb:maintainDOM="false">
       <xs:sequence>
        <xs:element name="INFO_ID" type="xs:integer" xdb:SQLName="TYPE_INFO_ID"/>
        <xs:element name="INFO_CONTENT"
                    xdb:SQLName="TYPE_INFO_CONTENT" type="xs:string"/>
       </xs:sequence>
      </xs:complexType>
    </xs:element>
    </xs:schema>');
    begin
    if (dbms_xdb.existsResource(:schemaPath)) then
        dbms_xdb.deleteResource(:schemaPath);
    end if;
    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    end;
    pause
    clear screen
    -- Selecting repository files and folders via XDBUriType
    select xdbURIType ('/public/root.xsd').getClob()
    from   dual;
    pause
    clear screen
    begin
      :schemaURL := 'http://www.myserver.com/root.xml';
      :schemaPath := '/public/root.xml';
    end;
    -- Create an XML Document root.xml in directory /public/
    declare
      res boolean;
      xmlSchema xmlType := xmlType(
    '<?xml version="1.0" encoding="UTF-8"?>
    <ROOT xmlns="http://www.myserver.com/root.xsd">
    <ID>0</ID>
    <INFO>
       <INFO_ID>0</INFO_ID>
       <INFO_CONTENT>Text</INFO_CONTENT>
    </INFO>
    </ROOT>');
    begin
    if (dbms_xdb.existsResource(:schemaPath)) then
        dbms_xdb.deleteResource(:schemaPath);
    end if;
    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    end;
    pause
    clear screen
    -- Selecting repository files and folders via XDBUriType
    select xdbURIType ('/public/root.xml').getClob()
    from   dual;
    pause
    clear screen
    -- Delete an XML schema in the registry if it exists
    call DBMS_XMLSCHEMA.deleteSchema('http://www.myserver.com/root.xsd', 4);
    commit;
    select * from tab;
    alter session set events='31098 trace name context forever';
    BEGIN
    DBMS_XMLSCHEMA.registerSchema
    (SCHEMAURL => 'http://www.myserver.com/root.xsd',
      SCHEMADOC => xdbURIType('/public/root.xsd').getClob(),
      LOCAL     => FALSE, -- local
      GENTYPES  => TRUE,  -- generate object types
      GENBEAN   => FALSE, -- no java beans
      GENTABLES => TRUE,  -- generate object tables
      OWNER     => USER
    END;
    commit;
    select * from tab;
    pause
    clear screen
    -- Insert some data with XDBURIType
    DECLARE
       XMLData xmlType := xmlType(xdbURIType ('/public/root.xml').getClob());
    BEGIN
      for i in 1..10
      loop
          insert into ROOT_TABLE
          VALUES
          (XMLData);
      end loop;
    END;
    commit;
    -- randomize the data a little
    update ROOT_TABLE
    set object_value = updateXML(object_value,
                                '/ROOT/ID/text()',
                                substr(round(dbms_random.value*100),0,2)
    update ROOT_TABLE
    set object_value = updateXML(object_value,
                                '/ROOT/INFO/INFO_ID/text()',
                                substr(round(dbms_random.value*100),0,2)
    commit;
    pause
    clear screen
    -- End Result
    select count(*) from root_table;
    select * from root_table where rownum < 5;

  • Access - can't export schema to xml

    omwb 10.1.0.4
    windows 2000 work station.
    can't export schema to xml.
    waited for an hour and the omwb2000.mde just hung there with no response.
    while with 10.1.0.2 it only takes several seconds

    hi hilary,
    I've noticed that another instance of access was up.
    But it's not minimized.
    And I've also noticed that omwb created three temp tables in the source mdb.
    ( all starting with '_'. can't remember the names. maybe acctables, acccolumns etc )
    And the source schema data was stored in the temp tables above.
    Then the access instance opening source mdb seems hanging somewhere waiting for something.
    And the omwb2000.mde seems to be waiting for the other instance to end.
    I don't know whether the source mdb has any security settings.
    ( omwb doc doesn't tell me the way to check that)
    But I did the import which omwb doc said will eliminate secure setting problem.

  • Performance on  Schema based Xml and No Schema based XML

    Hai,
    We can insert two kind of xml like schema based xml document and non schema based xml document into XMLTYPE fields.I like to know which xml document will have good performance ( fast access ) compare to another.
    Even if we have any other approach than schema.It will be great.
    We do XPath query to get the values from xml document.Is there any way to get the fields faster than the XPath.I am using Oracle 10g R2.
    I need to access much fast the xml element from the table.Please help me!.
    Thanks,
    Saravanan.P

    HHave you read the FAQ or any of the XML DB whitepapers... If not I suggest that you do so before proceeding any further or asking any more questions. If you take the time to a do a little basic research you should be able to see that you have made the worst possible decision if performance is importantto you.
    If you invested a little bit of effort before posting you would soon understand that in 10gR2 you will need to use schema based storage to get high performance, and that it doesn't matter whether you use XPath or XQuery, what matters is whether or not the XPath or XQuery operations get re-written correctly so the database can optimize them.

  • Schema.core.xml is server dependant ??

    Hello
    For building one of our server I have copied schema.core.xml from another server to local server. Now Everythign is working fine, but I cant login to Application. Wants to know schema.core.xml is server dependant or independant.
    means can we copy schema.core.xml from server to server or what it contains which is server specific.
    How to work with LDAP with weblogic like J Explorer any Tool or Options are there
    thnks in adv
    Vinod

    schema.core.xml is part of the embedded LDAP server. I am not sure why you
    are modifying it as it reflects the data used by the security providers. If
    you are going to copy it, you probably also need to copy the corresponding
    data files.
    <vinod Udapudi> wrote in message news:[email protected]..
    Hello
    For building one of our server I have copied schema.core.xml from another
    server to local server. Now Everythign is working fine, but I cant login to
    Application. Wants to know schema.core.xml is server dependant or
    independant.
    means can we copy schema.core.xml from server to server or what it contains
    which is server specific.
    thnks in adv
    Vinod

  • What is difference btw schema.core.xml and schema.user.xml in OVD

    Hi
    New to OVD, I'm looking at Oracle's OVD configuration properties Docoument
    I'm confused with list of schema files on OVD especially difference between schema.core.xml and schema.user.xml
    In the oracle document it mentioned  as below.
    Typically, the last file identified is schema.user.xml. Any and all changes to schema are applied to the schema.user.xml file to ensure standard files, such as schema.core.xml, remain unchanged between releases, but can also be virtually modified by having the changes in schema.user.xml override default-shipped schema in schema.core.xml.
    If you are installing a manufacturer supplied schema (in DSML form), identify this file in the second to last file in the list of schema files. This will protect the distributed manufacturer file from modification while allowing local customization, which is then stored in schema.user.xml.
    Based on above two paragaraphs i came to one understanding but i just want to hear from you what exactly its trying to say about those two files.
    Not sure what exactly above mean can someone explain lettle in detail

    Hi,
    The LDAP schema used by OVD is shipped as  several XML files such as schema.core.xml, schema.cosine.xml, schema.inetorperson.xml, schema.nis.xml etc. depending on in which RFC the attribute and object classes are defined.
    All changes to these schemas (if any) are always applied to schema.user.xml, so this file contains all the custom attribute types & objetclasses.
    Hope this clarifies a bit
    Sylvain
    When closing a thread as answered remember to mark the correct and helpful posts to make it easier for others to find them

  • Schema.core.xml

    Im looking for documentation on what the schema.core.xml file is used for.
    Does anyone have some links to proper documentation

    schema.core.xml is part of the embedded LDAP server. I am not sure why you
    are modifying it as it reflects the data used by the security providers. If
    you are going to copy it, you probably also need to copy the corresponding
    data files.
    <vinod Udapudi> wrote in message news:[email protected]..
    Hello
    For building one of our server I have copied schema.core.xml from another
    server to local server. Now Everythign is working fine, but I cant login to
    Application. Wants to know schema.core.xml is server dependant or
    independant.
    means can we copy schema.core.xml from server to server or what it contains
    which is server specific.
    thnks in adv
    Vinod

  • Forms pulling Multiple Records from an XML Schema and XML data files - Adobe LiveCycle Designer

    I built a form in Adobe LiveCycle with an xml schema and data file.  The problem is with how the form renders the xml data file.
    I have a statement element that consists of about 6 fields (statementID, statementName, statementAddress, statementCountry, statementZip, statementDate, etc) of data in the schema that allows for multiple iterations - so one xml data file can contain multiple statements. These fields allow for null values.
    But here's the problem:  When any of the statements - say statement 2 of 6 - has a null value in one of the fields, if the xml data file doesn't have a placeholder
    (example of placeholder:  <statementName type="String"/>   )in the xml for that field, my form pulls the field value from the NEXT statement.
    This corrupts all the rest of the statement records, as this field is shifted up for all the rest.
    I know that in the past I haven't needed a placeholder when a field was null. But I'm wondering if when the data allows for multiple records the xml data file needs to generate the placeholder.  And where is the problem? In the Schema? The xml data file? My form?  And the 64-thousand-dollar question:  How to fix it?

    If your <statement> element is the one that repeats, it should be bound to a subform with the binding string of something like $.statement[*]. Then in that subform should be your fields and they should have bindings of $.statementID, $.statementName, $.statementAddress, etc.
    Kyle

  • XML-Schema IN XML-Document OUT

    I have to develop a application that have a XML-Schema as INPUT an a XML-Document as OUTPUT. The Application must select the data from 4 SQL Tables, the selects should be dynamicly created at run time (depending at the struckters in the XML-Schema).
    I don't have any know how in XML-DB. Can you help me please.

    Covered in the standard demo
    See the use of the SQL/XML functions to create an XML view over relational data.
    Please also note the following useful examples
    XML DB basic Demo at
    http://otn.oracle.com/tech/xml/xmldb/demonstrations/xdbBasicDemo.zip
    and the instructions at

Maybe you are looking for

  • I can see my ipod nano 2nd generation under finder but not under itunes.

    I can see my ipod noano 2nd generation under finder but not under itunes. I can't upgrade the music on the ipod nano if itunes doesn't show it. How can't I fix this problem?

  • Can i open .8bf file in adobe premiere pro cs3

    Please! Can someone tells me how get Wave effect, I have Wave.8bf

  • URGENT : Error in XSU

    Hi, I am completely new to the world of Oracle, XML - XSU. Had the database (Oracle v8.1.7) installed today and had requested for XSU components to be installed.We were informed that it had been installed. We executed the PL/SQL provided in the docum

  • Problem with new version of Flash

    Hi. I need some help if possible. Please note that I am not technical so may need some coaching. I have recently updated my IE and have downloaded the latest version of Flash however I am now unable to view some media or website's. On BBC news for ex

  • TabStrip and TLayout Error

    Hi, i have a View with a TabStrip UI Element and two Tabs which hold a ViewContainerUIElement. Both Tabs are set to default true. If i start the app its empty but its working. Next Step: In the Window View i add a TLayout ViewSet into the ViewContain