XML schema creation

hi all,
i created a XML schema but i have some confusion in :
<Processsteps>
<ProcessStep/>
<ParallelProcessStep/>
</ProcessSteps>
in this case none(child element) is manadatory, but there should be at least 1 child element of either type.
how can i implement this problen mentioned above in Schema? can anybody send code for this problem/

Try the 'choice' option for a 'complexType'
I just recently learned how to write schemas. This tutorial is a little vague, but it gave me a good start
http://www.w3schools.com/schema/default.asp
Sorry, not giving you code, it's not that difficult.

Similar Messages

  • Xml Schema creation - enforcing one tag at root

    I have a schema such as the one below but this permits any of the global element declarations to start as the root of an xml document.
    I want just <table> to be at the root.
         <xs:element name="table">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element maxOccurs="unbounded" ref="tr"/>
                   </xs:sequence>
                   <xs:attributeGroup ref="attrs"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="tr">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element maxOccurs="unbounded" ref="td"/>
                   </xs:sequence>
                   <xs:attributeGroup ref="attrs"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="td">
              <xs:complexType mixed="true">
                   <xs:complexContent>
                        <xs:extension base="Flow">
                             <xs:attributeGroup ref="attrs"/>
                             <xs:attributeGroup ref="cellvalign"/>
                        </xs:extension>
                   </xs:complexContent>
              </xs:complexType>
         </xs:element>Must I have one global element to allow only one element as the document root?
    i.e.
         <xs:element name="table">
              <xs:complexType>
                   <xs:sequence>
                              <xs:element name="tr">
                                 <xs:complexType ref="tr.c">
                        </xs:element >
                   </xs:sequence>
                </xs:complexType>
          </xs:element>
         <xs:complexType name="tr.c">
              <xs:sequence>
                   <xs:element maxOccurs="unbounded" ref="td"/>
              </xs:sequence>
              <xs:attributeGroup ref="attrs"/>
         </xs:complexType>
         thanks

    I would rather use the flatter approach, the xhtml schema does how does it do it?
    http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd
    Maybe I should explain more....
    I wish to validate an xml document with a schema only, I pull the xml from within a propery file (Ugly I know). And keep it in memory.
    The xml has no xsi attributes such as 'schemaLocation' , I tell the paser using a property the location of the external schema.
    The outcome of validation is that the paser allows any globally declared element to be a root element when I wish just to have just one.
    I guess the question is, what within the xml document or the schema tells the parser what the root element is?
    cheers

  • Unable to create xml from xml schema

    JDeveloper 10.1.3 EA1
    I am unable to create a new xml file from an xml schema when the starting root element is a complex type (but it works with a simple type). It does not matter if the xml schema is registered within JDeveloper.
    Is this a bug or intended behaviour?
    Error message:
    ''XML Document from XML Schema creation could not be competed succesfully. Make sure the source schema is valid and that you have write permissions to the output directory."
    NB The xml schema is valid and I have write permissions on the specified directory.

    When I do not register this (or other) schema with JDeveloper, I can create an xml document from xml schema. However, when I register this schema and then try to generate an xml document (either from the registered xsd either from a filesystem xsd) with person as starting node it fails with the mentioned error. However, when I use city as starting node it is generated successfully.
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.amis.nl/demo/hrm"
    targetNamespace="http://www.amis.nl/demo/hrm"
    elementFormDefault="qualified">
    <xsd:element name="person">
    <xsd:annotation>
    <xsd:documentation>
    A sample complex element
    </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="length" type="xsd:int"/>
    <xsd:element name="weight" type="xsd:int" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="city" type="xsd:string">
    <xsd:annotation>
    <xsd:documentation>
    A sample simple element.
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    </xsd:schema>

  • How to identify and delete objects after failure of registering XML schema

    Hi,
    I have tried to register a XML schema with many global elements but failed.
    I have checked the view DBA_XML_SCHEMA and found that there is an entry for this failed XML schema and the disk spaces would not be freed after the failure of registration as well.
    I have tried DBMS_XMLSCHEMA.deleteSchema() with DELETE_CASCADE_FORCE but failed with ORA-31000: Resource is not XDB document.
    How can I identify and delete the objects for this failed XML schema and free up the disk space ?
    I would not prefer to use 'DROP USER ... CASCADE' since there are other objects owned by this user.
    Thanks in advance.

    you can get them from user_objects.
    but you have to identify them manuallly if your schema has other objects other then created by the xml schema creation process.
    Note these objects will be cases senistitive. so you should enclose them with double quotes during deletion.

  • How to handle tables data in XML schema based adobe form

    Hi all,
    I am working on the CRM business partner creation by using Interactive adobe form with following steps:
    1) Uploaded the offline Interactive adobe form  to online interactive adobe form via WebDynpro ABAP;
    2) Capture XML data into corresponding BAPI structures;
    3) Save all the changes to database via BAPI.
    The adobe form contains customer information as well as several table views which are bind with the context created in WebDynpro: Node NEW_BP_NODE cardinality 1:1 with single attributes and table type attributes (1:n): COLOUR_COMP, MEN_COMP etc.
    While converting the xml format data to SAP context format, It is fine to use following routine to find the single attribute and map to the BAPI structure to do the database update.
    NODE = DOCUMENT->FIND_FROM_NAME( NAME = 'XYZu2019).
    XYZ = NODE->GET_VALUE( ).
    Question: how to convert the xml table data to SAP context format in WebDynpro ABAP?
    The XML table data looks like below.
    <?xml version="1.0" encoding="UTF-8" ?>
    <NEW_BP_NODE>
    <COLOUR_COMP>
    <DATA>
    <ZZTFLD0W2AQW />
    <ZZTFLDRZ2AQX>000</ZZTFLDRZ2AQX>
    <ZZTFLDVD2TQW />
    <ZZTFLDQK2HQX />
    <ZZTFLDEL2XQX />
    <ZZTFLDTC2DQX>000</ZZTFLDTC2DQX>
    <ZZTFLDOR2UQX />
    </DATA>
    <DATA>
    <ZZTFLD0W2AQW />
    <ZZTFLDRZ2AQX />
    <ZZTFLDVD2TQW />
    <ZZTFLDQK2HQX />
    <ZZTFLDEL2XQX />
    <ZZTFLDTC2DQX />
    <ZZTFLDOR2UQX />
    </DATA>
    <DATA>
    <ZZTFLD0W2AQW />
    <ZZTFLDRZ2AQX />
    <ZZTFLDVD2TQW />
    <ZZTFLDQK2HQX />
    <ZZTFLDEL2XQX />
    <ZZTFLDTC2DQX />
    <ZZTFLDOR2UQX />
    </DATA>
    </COLOUR_COMP>
    <MEN_COMP>
    <DATA>
    <ZZTFLD4V2V7V />
    <ZZTFLDYD2N7W>000</ZZTFLDYD2N7W>
    <ZZTFLDX32I7W />
    <ZZTFLD2D2W7W />
    <ZZTFLDGD2A7W />
    </DATA>
    <DATA>
    <ZZTFLD4V2V7V />
    <ZZTFLDYD2N7W>000</ZZTFLDYD2N7W>
    <ZZTFLDX32I7W />
    <ZZTFLD2D2W7W />
    <ZZTFLDGD2A7W />
    </DATA>
    </MEN_COMP>
    Thanks in advance for your help.
    Michelle

    Hi,
    Just follow these steps:
    1. Create interactive form UI element in your view.
    2. Now provide Datasource and PDFSOURCE to it in form properties.
    3. Now give a template name prefix with 'Z' or 'Y'.
    4. Double click on it. It will prompt for interface name.
    5. Provide interface name prefixed with 'Z' or 'Y'.
    6. Click on Context button in the Pop up window and provide the node you have selected as DATASOURCE.
    7. Click ok and it will open the form designer.
    8. In this way you can create a XML Schema based Form.
    9. Activate the interface and design the form providing layout type and other details.
    Hope it will help.
    Regards,
    Vaibhav

  • Oracle Fusion Store Front Demo Application - Schema Creation Failed

    I have downloaded the Fusion Store Front Demo Application "FusionOrderDemo_R1PS2.zip" from http://www.oracle.com/technetwork/developer-tools/jdev/index-095536.html .
    Followed the instructions on the same page. But Schema creation is failing.
    I am not sure why it is not picking the whole path till JDeveloper i.e. looking for wlserver_10.3\server]\lib in I:\Oracle\FusionMiddleware\wlserver_10.3\server\lib ( JDeveloper not getting added to path.)
    Build.Properties file content :
    jdeveloper.home=I:/Oracle/FusionMiddleware/JDeveloper
    src.home=..//..
    # JDBC info used to create Schema
    jdbc.driver=oracle.jdbc.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@localhost
    jdbc.port=1521
    jdbc.sid=XE
    # Information about the default setup for the demo user.
    db.adminUser=system
    db.demoUser=FOD
    db.demoUser.password=fusion
    db.demoUser.tablespace=USERS
    db.demoUser.tempTablespace=TEMP
    Error :
    BUILD FAILED
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\Ant\build.xml:51: The following error occurred while executing this line:
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\build.xml:91: The following error occurred while executing this line:
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\build.xml:56: The following error occurred while executing this line:
    F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\build.xml:28: I:\Oracle\FusionMiddleware\wlserver_10.3\server\lib not found.
    Total time: 2 seconds
    Thanks,
    Rajdeep

    Thanks John.
    So jdeveloper.home is not the JDeveloper installation directory. Actually jdeveloper.home value should include jdeveloper folder along with JDeveloper Installation directory.
    Can you please look whether this run is successful. It seems like some issues with populate images or should i open a separate post for this.
    Buildfile: F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\Ant\build.xml
    populateImages:
    [java] Jan 13, 2011 12:21:21 AM oracle.as.jmx.framework.LoggerHelper log
    [java] SEVERE: Error initializing the JMX FRamework SPI "oracle.as.jmx.framework.standardmbeans.spi.JMXFrameworkProviderImpl"
    [java] java.lang.reflect.InvocationTargetException
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.initializeSPI(PortableMBeanFactory.java:1895)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.initializePlatformSPI(PortableMBeanFactory.java:1851)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.init(PortableMBeanFactory.java:1831)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.<init>(PortableMBeanFactory.java:207)
    [java]      at oracle.as.jmx.framework.PortableMBeanFactory.<init>(PortableMBeanFactory.java:215)
    [java]      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java]      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [java]      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [java]      at java.lang.Class.newInstance0(Class.java:355)
    [java]      at java.lang.Class.newInstance(Class.java:308)
    [java]      at oracle.mds.core.MDSInstance.lookupMBeanServer(MDSInstance.java:2061)
    [java]      at oracle.mds.core.MDSInstance.checkMDSDeployStatus(MDSInstance.java:950)
    [java]      at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1692)
    [java]      at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1666)
    [java]      at oracle.mds.core.MDSInstance.findAndStoreMDSInstance(MDSInstance.java:1962)
    [java]      at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:507)
    [java]      at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:470)
    [java]      at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:436)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:65)
    [java]      at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.createMDSSession(ADFContextMDSConfigHelperImpl.java:50)
    [java]      at oracle.adf.share.ADFContext.getMDSSessionAsObject(ADFContext.java:1224)
    [java]      at oracle.jbo.mom.MOMParserMDS.getMDSSession(MOMParserMDS.java:60)
    [java]      at oracle.jbo.mom.MOMParserMDS.parse(MOMParserMDS.java:189)
    [java]      at oracle.jbo.mom.MOMParserNonMDS.readAndParse(MOMParserNonMDS.java:71)
    [java]      at oracle.jbo.mom.DefinitionContextStandard.readAndParse(DefinitionContextStandard.java:237)
    [java]      at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:1447)
    [java]      at oracle.jbo.server.SessionImpl.init(SessionImpl.java:160)
    [java]      at oracle.jbo.server.ApplicationModuleHomeImpl.createSession(ApplicationModuleHomeImpl.java:106)
    [java]      at oracle.jbo.server.ApplicationModuleHomeImpl.<init>(ApplicationModuleHomeImpl.java:43)
    [java]      at oracle.jbo.server.InitialContextImpl.createJboHome(InitialContextImpl.java:52)
    [java]      at oracle.jbo.common.JboInitialContext.lookup(JboInitialContext.java:73)
    [java]      at javax.naming.InitialContext.lookup(InitialContext.java:392)
    [java]      at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:155)
    [java]      at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2767)
    [java]      at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:589)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2327)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
    [java]      at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1494)
    [java]      at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1399)
    [java]      at oracle.fodemo.share.imageloader.LoadImages.main(LoadImages.java:23)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
    [java]      at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
    [java]      at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
    [java]      at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
    [java]      at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
    [java]      at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
    [java]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java]      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [java]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [java]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java]      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [java]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java]      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    [java]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [java]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [java]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [java]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [java]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java]      at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [java]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [java]      at org.apache.tools.ant.Main.start(Main.java:179)
    [java]      at org.apache.tools.ant.Main.main(Main.java:268)
    [java] Caused by: java.lang.IllegalStateException: access denied (javax.management.MBeanTrustPermission register)
    [java]      at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.init(CoreJMXFrameworkProviderImpl.java:268)
    [java]      at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.init(CoreJMXFrameworkProviderImpl.java:137)
    [java]      at oracle.as.jmx.framework.standardmbeans.spi.JMXFrameworkProviderImpl.init(JMXFrameworkProviderImpl.java:77)
    [java]      ... 93 more
    [java] Caused by: java.security.AccessControlException: access denied (javax.management.MBeanTrustPermission register)
    [java]      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    [java]      at java.lang.SecurityManager.checkPermission(SecurityManager.java:568)
    [java]      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1824)
    [java]      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:310)
    [java]      at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
    [java]      at oracle.as.jmx.framework.config.session.ReadOnlyConfigurationMBeanServer.registerMBean(ReadOnlyConfigurationMBeanServer.java:80)
    [java]      at oracle.as.jmx.framework.config.session.ConfigurationSessionManager.registerSessionManagerMBean(ConfigurationSessionManager.java:135)
    [java]      at oracle.as.jmx.framework.config.session.ConfigurationSessionManager.<init>(ConfigurationSessionManager.java:127)
    [java]      at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.initConfigSessionInfrastructure(CoreJMXFrameworkProviderImpl.java:307)
    [java]      at oracle.as.jmx.framework.generic.spi.CoreJMXFrameworkProviderImpl.init(CoreJMXFrameworkProviderImpl.java:260)
    [java]      ... 95 more
    [java] Jan 13, 2011 12:21:23 AM oracle.jdbc.driver.OracleDriver registerMBeans
    [java] SEVERE: Error while registering Oracle JDBC Diagnosability MBean.
    [java] java.security.AccessControlException: access denied (javax.management.MBeanTrustPermission register)
    [java]      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    [java]      at java.lang.SecurityManager.checkPermission(SecurityManager.java:568)
    [java]      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1824)
    [java]      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:310)
    [java]      at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
    [java]      at oracle.as.jmx.framework.config.session.RuntimeConfigurationMBeanServer.registerMBean(RuntimeConfigurationMBeanServer.java:64)
    [java]      at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:345)
    [java]      at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:197)
    [java]      at java.security.AccessController.doPrivileged(Native Method)
    [java]      at oracle.jdbc.driver.OracleDriver.<clinit>(OracleDriver.java:193)
    [java]      at java.lang.Class.forName0(Native Method)
    [java]      at java.lang.Class.forName(Class.java:247)
    [java]      at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:34)
    [java]      at oracle.jbo.common.JBOClass.forName(JBOClass.java:162)
    [java]      at oracle.jbo.server.BaseSQLBuilderImpl.doRegisterDefaultDriver(BaseSQLBuilderImpl.java:200)
    [java]      at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:903)
    [java]      at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1112)
    [java]      at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6372)
    [java]      at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
    [java]      at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
    [java]      at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
    [java]      at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
    [java]      at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
    [java]      at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
    [java]      at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
    [java]      at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1494)
    [java]      at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1399)
    [java]      at oracle.fodemo.share.imageloader.LoadImages.main(LoadImages.java:23)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
    [java]      at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
    [java]      at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
    [java]      at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
    [java]      at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
    [java]      at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
    [java]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java]      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [java]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [java]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java]      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [java]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java]      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    [java]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [java]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [java]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [java]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [java]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [java]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [java]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [java]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [java]      at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [java]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [java]      at org.apache.tools.ant.Main.start(Main.java:179)
    [java]      at org.apache.tools.ant.Main.main(Main.java:268)
    revokePrivs:
    [sql] Executing resource: F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\Scripts\SQLRunner1276056861.sql
    [sql] 6 of 6 SQL statements executed successfully
    [delete] Deleting: F:\mywork\FUSIONORDERDEMO\FusionOrderDemo_R1PS2\Infrastructure\DBSchema\Scripts\SQLRunner1276056861.sql
    [echo] Cleaning up database user privileges.
    createDatabase:
    [echo] Database (Re)Creation Complete
    buildAll:
    BUILD SUCCESSFUL
    Total time: 51 seconds

  • XML Schema binding - dynamic form

    I am new to Designer and XML. I have been given a basic interactive form and have persevered for a couple of (often frustrating) weeks to extend its functionality to link to an xml schema and provide for dynamic record creation. Unfortunately I am still having problems when adding new instances of subforms.<br /><br />I have a main form for reporting issues. Underneath it there are major components on a subform (can be multiple major components for each issue) and under major components are sub-components (can be multiple sub-components for each major component) on a child subform of major. I can add and delete instances of the subforms for both levels of records.<br /><br />I have created an xml schema based on the form since it already existed, and so the form fields have not inherited properties from the schema. However, I have bound the fields in the form to the xml fields through a data connection. The schema basically looks as follows (bot not literally the same as you will see from the tags):<br /><br /><element complextype issue><br />   <element issueId string/><br />   ...<br />   ...<br />   <element complextype majorcomponent unbounded><br />   <element majcomponentname string/><br />   ...<br />   <element complextype subcomponent unbounded><br />      <element subcomponent string/><br />      <element quantity string/><br />      ...<br />      ...<br />      </element><br />   </element><br /></element><br /><br />My problem is as follows: <br /><br />When I add an instance of a sub-component or major component subform, the first new instance appears to work correctly. However, every subsequent one inherits the values of the previous record and when it is changed, it changes the values of existing fields of the same name but of a different node. When I change each element in the xml schema to "unbounded", the forms appear to work properly but the values are then not nested correctly in the outputted xml data file (many records will appear under one sub-component, for example, when a new sub-component should be added for each).<br /><br />I suspected my problem might be that the "unbounded" property in the schema of the major component and sub-component elements are not linked to the Designer form because the major component and sub-component subforms are not bound to the xml schema. The reason they are not bound is because if I bind the subform, the first element, major/sub component name as applicable, loses its binding.<br /><br />I am sorry if this doesn't make any sense but I am hoping that someone might recognise the problem I am talking about as it is really creating much bother.<br /><br />Thanks.

    Thanks Justin for the reply. Unfortunately I can't explain exactly what was happening because I didn't keep sufficient notes and now the form is behaving differently. You are right in that when I bind the subform to the xml schema element, child fields do change their bindings from a full to a relative path. I had seen this before on all except the first field on a subform, which had losts any binding reference at all.
    I finally gave up on the schema and bound the forms to sample xml data. This fixed my problem. Now (several days later), I have revisited the problem and deleted my data connection to the xml file to connect to the schema once again. I am quite sure I have not changed the schema at all, nor the form, but for some reason it now appears to work correctly.
    I will continue to work with it, once again but thanks very much for your interest.

  • .xsd in XML Schema in 'Create Data Definition' window

    I need to know the following about .xsd file while definining it in the XML Schema in 'Create Data Definition' window:
    1. Why to use this file?
    2. How to create this file ?
    3. Is .xsd file should be different for each different report?
    4. Is this file creation is one-time activity for each report?
    5. Any details about .xsd file.
    Thanks.

    The XML Schema is only required if you are using a PDF template (the template file itself is PDF) with field-mapping. For other template types the schema is optional.
    The XML Schema is used to define a "class" of XML documents, so to speak. The define the semantics and structure of the XML documents more thoroughly.
    If you have closely related reports, you could use a single schema to standardize (in a sense) the XML to be output from the class of related reports. In that case you could have a single schema file uploaded to multiple reports/data-definitions.
    The W3C has good documentation on XML Schema.
    If you want to see samples, you can use tools such as dtd2xs to create sample schemas from your DTD.

  • XML schema in ABAP

    can you give me resources and example programs to create
    XML schema in abap

    Hi,
    The real question is: qhat Shema do you want to build.
    To do that, you have learn about XML schema. Then You can create you schema and for that there are several Methods:
    - Create the schema Nodes and piece them together into an XML document. An XML Schema Document is just a special type of XML document, so you have to create the correct nodes and put them together into an XML document.
    For that you have the IXML library. It is well documented in Help.sap.com and all relevant interface names start with "IF_IXML_"
    Just search for it.
    There is a class called CL_XML_DOCUMENT_BASE from the workflow group which wraps some things up and simplifies the creation and rendering (=conversion into text) of XML documents.
    I don't know if that class is released for general use.
    - Use XSLT (CALL TRANSFORMATION), if you have a XML-Document to start from, that contains all information which allows you to Transform any XML format into a different XML format.
    - If you have Dictionary Structures as your basis then the somewhat old function module SDIXML_DOM_TO_ABAP can create a Schema fragment for your data structure. Just search for its usage to get examples and play around with the parameters.
    The format is Itendtical to the "canonical XML format" of SAP, also known as ASXML.
    You can create it with CALL TRANSFORMATION ID ... <-- the name is important.
    More information about this format and how to create and use it you can find in an article called "From XML to ABAP and back again". This article is available on SDN, just search for it.
    All of this stuff exists only since 6.10 and later. But there has been XSLT-Support earlier with some ABAP classes, before CALL TRANSFORMATION entered into ABAP with 6.10.
    Also there are some other SDIXML_* function modules, in case you use an old module, but it's better to use the IXML-Library, wherever possible, if your release should be current enough.
    Cheers
    Christian

  • How to create default column in XML schema ?

    Hi All,
    I would like to define a default column let's say Run_Date as Date datatype in XML schema definition (XSD) and would like to populate SYSDATE to the column Run_Date, When XML records are parsed to that schema.
    Please let me know, how we can achieve?
    Thanks in Advance.

    Hi,
    Thanks for the update. Please find below my responses and let me know your thoughts.
    The Existing schema definition is as follows
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
    <xs:element name="Emp" type="EmpType" xdb:defaultTable="EMPLOYEES" xdb:columnProps="CONSTRAINT emp_pk PRIMARY KEY (XMLDATA.EMP_NO)" />
    <xs:complexType name="EmpType" xdb:SQLType="EMPLOYEES_T">
    <xs:sequence>
    <xs:element name="EmpNo" xdb:SQLName="EMP_NO">
    <xs:simpleType>
    <xs:restriction base="xs:positiveInteger">
    <xs:totalDigits value="10"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="FirstName" xdb:SQLName="FIRST_NAME">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="30"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="LastName" xdb:SQLName="LAST_NAME">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="30"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="EmployeeType" xdb:SQLName="EMPLOYEE_TYPE">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:length value="25"/>
    <xs:enumeration value="Permanent"/>     
    <xs:enumeration value="Consultant"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="EmpLocation" xdb:SQLName="EMP_LOCATION">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="25"/>
    <xs:enumeration value="NewYork"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="EmpExperience" xdb:SQLName="EMP_EXPERIENCE">
    <xs:simpleType>
    <xs:restriction base="xs:positiveInteger">
    <xs:totalDigits value="10"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    The sample XML file is as follows
    <?xml version="1.0"?>
    <Emp xsi:noNamespaceSchemaLocation="EMP.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb="http://xmlns.oracle.com/xdb">
    <EmpNo>1001</EmpNo>
    <FirstName>William</FirstName>
    <LastName>Don</LastName>
    <EmployeeType>Permanent</EmployeeType>
    <EmpLocation>NewYork</EmpLocation>
    <EmpExperience>10</EmpExperience>
    </Emp>
    The modified schema definition is as follows
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
    <xs:element name="Emp" type="EmpType" xdb:defaultTable="EMPLOYEES" xdb:columnProps="CONSTRAINT emp_pk PRIMARY KEY (XMLDATA.EMP_NO)" />
    <xs:complexType name="EmpType" xdb:SQLType="EMPLOYEES_T">
    <xs:sequence>
    <xs:element name="EmpNo" xdb:SQLName="EMP_NO">
    <xs:simpleType>
    <xs:restriction base="xs:positiveInteger">
    <xs:totalDigits value="10"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="FirstName" xdb:SQLName="FIRST_NAME">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="30"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="LastName" xdb:SQLName="LAST_NAME">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="30"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="EmployeeType" xdb:SQLName="EMPLOYEE_TYPE">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:length value="25"/>
    <xs:enumeration value="Permanent"/>     
    <xs:enumeration value="Consultant"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="EmpLocation" xdb:SQLName="EMP_LOCATION">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="25"/>
    <xs:enumeration value="NewYork"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="EmpExperience" xdb:SQLName="EMP_EXPERIENCE">
    <xs:simpleType>
    <xs:restriction base="xs:positiveInteger">
    <xs:totalDigits value="10"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="WorkHrs" maxOccurs="100" xdb:SQLName="WorkHrs" xdb:propNumber="3280" xdb:global="false" xdb:SQLType="WorkHrs_T" xdb:SQLSchema="APPS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="WORKHRS330_COLL" xdb:SQLCollSchema="APPS">
    <xs:complexType xdb:SQLType="WORKHRS_T" xdb:SQLSchema="APPS">
    <xs:attribute name="Day" xdb:SQLName="DAY" xdb:propNumber="3273" xdb:global="false" xdb:SQLType="VARCHAR2" xdb:memType="2">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="20"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Hrs" xdb:SQLName="HRS" xdb:propNumber="3274" xdb:global="false" xdb:SQLType="NUMBER" xdb:memType="2">
    <xs:simpleType>
    <xs:restriction base="xs:decimal"/>
    </xs:simpleType>
    </xs:attribute>
    </xs:schema>
    The sample XML file is as follows
    <?xml version="1.0"?>
    <Emp xsi:noNamespaceSchemaLocation="EMP.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb="http://xmlns.oracle.com/xdb">
    <EmpNo>1001</EmpNo>
    <FirstName>William</FirstName>
    <LastName>Don</LastName>
    <EmployeeType>Permanent</EmployeeType>
    <EmpLocation>NewYork</EmpLocation>
    <EmpExperience>10</EmpExperience>
    <WorkHrs Day="Monday" Hrs="8.0"/>
    <WorkHrs Day="Tuesday" Hrs="6.5"/>
    <WorkHrs Day="Wednesday" Hrs="8.5"/>
    <WorkHrs Day="Thursday" Hrs="10.5"/>
    <WorkHrs Day="Friday" Hrs="5.5"/>
    </Emp>
    The Copy Evolve Procedure is as follows (I have added attributes to the above schema definition)
    DECLARE
    SCHEMA_TO_EVOLVE     XDB$STRING_LIST_T;
    NEW_SCHEMA               XMLSEQUENCETYPE;
    OLD_SCHEMA_URL          VARCHAR2(100) := 'EMP.xsd';
    V_NEW_XML_DOC          CLOB := '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
    <xs:element name="Emp" type="EmpType" xdb:defaultTable="EMPLOYEES" xdb:columnProps="CONSTRAINT emp_pk PRIMARY KEY (XMLDATA.EMP_NO)" />
    <xs:complexType name="EmpType" xdb:SQLType="EMPLOYEES_T">
    <xs:sequence>
    <xs:element name="EmpNo" xdb:SQLName="EMP_NO">
    <xs:simpleType>
    <xs:restriction base="xs:positiveInteger">
    <xs:totalDigits value="10"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="FirstName" xdb:SQLName="FIRST_NAME">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="30"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="LastName" xdb:SQLName="LAST_NAME">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="30"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="EmployeeType" xdb:SQLName="EMPLOYEE_TYPE">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:length value="25"/>
    <xs:enumeration value="Permanent"/>     
    <xs:enumeration value="Consultant"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="EmpLocation" xdb:SQLName="EMP_LOCATION">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="25"/>
    <xs:enumeration value="NewYork"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="EmpExperience" xdb:SQLName="EMP_EXPERIENCE">
    <xs:simpleType>
    <xs:restriction base="xs:positiveInteger">
    <xs:totalDigits value="10"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="WorkHrs" maxOccurs="100" xdb:SQLName="WorkHrs" xdb:propNumber="3280" xdb:global="false" xdb:SQLType="WorkHrs_T" xdb:SQLSchema="APPS" xdb:memType="258" xdb:SQLInline="true" xdb:MemInline="false" xdb:JavaInline="false" xdb:SQLCollType="WORKHRS330_COLL" xdb:SQLCollSchema="APPS">
    <xs:complexType xdb:SQLType="WORKHRS_T" xdb:SQLSchema="APPS">
    <xs:attribute name="Day" xdb:SQLName="DAY" xdb:propNumber="3273" xdb:global="false" xdb:SQLType="VARCHAR2" xdb:memType="2">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="20"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Hrs" xdb:SQLName="HRS" xdb:propNumber="3274" xdb:global="false" xdb:SQLType="NUMBER" xdb:memType="2">
    <xs:simpleType>
    <xs:restriction base="xs:decimal"/>
    </xs:simpleType>
    </xs:attribute>
    </xs:schema>';
    BEGIN
    DBMS_OUTPUT.PUT_LINE('B4 GETTING FILE FROM OS');
    EXECUTE IMMEDIATE 'DROP TABLE EMPLOYEES_TEMP';
    -- Getting file from the file system
    --V_NEW_XML_DOC           := XXTIF_EDI_UTL.GET_CLOB_DOCUMENT('COIL_1.1.xsd','UTF8');
    SCHEMA_TO_EVOLVE     := XDB$STRING_LIST_T(OLD_SCHEMA_URL);
    NEW_SCHEMA           := XMLSEQUENCETYPE(XMLTYPE(V_NEW_XML_DOC));
    DBMS_XMLSCHEMA.COPYEVOLVE(SCHEMA_TO_EVOLVE,NEW_SCHEMA, preserveOldDocs => TRUE, mapTabName => 'EMPLOYEES_TEMP', generateTables => FALSE);
    COMMIT;
    DBMS_OUTPUT.PUT_LINE('SUCCESSFULLY COPIED');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('THE ERROR IS '||SQLERRM);
    END;
    The Table Creation is as follows
    CREATE TABLE EMPLOYEES (XMLDOC XMLTYPE,
                   CREATE_DATE DATE DEFAULT SYSDATE NOT NULL ,
    CONSTRAINT emp_pk PRIMARY KEY (XMLDOC."XMLDATA".EMP_NO)
    XMLTYPE COLUMN XMLDOC STORE AS OBJECT RELATIONAL
    XMLSCHEMA "EMP.xsd" ELEMENT "Emp"
    DECLARE
    TABLENAME VARCHAR2(2000) := 'EMPLOYEES1128';
    BEGIN
    SELECT TEMP_TABNAME
    INTO TABLENAME
    FROM EMPLOYEES_TEMP
    WHERE TABLE_NAME = USER || '.' || UPPER('RELATIE_DOCUMENTEN');
    EXECUTE IMMEDIATE 'INSERT INTO EMPLOYEES(XMLDOC) SELECT XMLTYPE(DATA) FROM ' || TABLENAME;
    COMMIT;
    END;
    When I executed the above SQL, It only populates main data(Perosnal Details such as EmpNo,FirstName,LastName) but not attributes (Workhrs.Day,WOrkhrs.Hrs).
    Please let me know, how can I move those attributes data?
    Again Oracle & XML versions are as follows
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    Oracle XML Database 10.2.0.3.0
    Thanks in Advance.

  • XML Schema based form in webdynpro

    Hi I have existing webdynpro which is having an interactive form view. The form is XML schema based.
    I want to create the same webdynpro with different data structure and different interactive form.
    Do i need to create the form with XML schema or do i need to do that from Webdynpro side which will generate the XML Schema automatically.
    Can you please help.
    Nik

    Thanks Amit,
    It as a really a good help for me to understand the process of creation of form from Webdynpro.
    Let me explain you the problem in detail:-
    There is an webdynpro application where  7 forms are added using differents views for each form (created through webdynpro) with different interfaces. That means in all the forms i found XML Schema based interface.
    One for the forms view for surround frame form ZFORM1 (using a structure  ZSTR1 of 20 fields in the interface ZINT1 is there)
    An adobe form Developer created a new form ZFORM2 by copying this ZFORM1. That means ZFORM2 is also using the same interface ZINT1 (we can also say same structure ZSTR1 ).
    No view was created to use this form.
    Now before creating the view & add  it in the WD aplication, for this ZFORM2 Client want to delete 2
    fields & 2 new fields for this form ZFORM2.
    I created a new structure ZSTR2 ( as per the fields required) Now i am thinking of to create a new form ZFORM2 using this structure ZSTR2 in the context of my new View .This will create a new interface ZINT2 (XML schema based)
    But this is a very time consuming process as the form ZFORM2 created by the developer earlier has so many java scripting code. he took 2 months to develop it. and i dont have that much time.
    I am sure there must be some other way to fix this problem.
    Can anyone give me the proper solution .
    Cheers,
    Nik

  • Exp XML Schema (.xsd) to another schema on same instance

    Hello,
    I hope someone on this forum can help me or point me in the correct direction. I want to export a schema which contains a table (EQUIPMENT) which has a XMLType column defined against a registered .xsd. I would then like to restored this schema to another schema on the same instance (development instance) and also onto another db instance.
    I have been trying to do this with the help of "Chapter 30 Importing and Exporting XMLType Tables" from the Oracle® XML DB Developer's Guide
    10g Release 2 (10.2). Unfortunately without success. At the end of this message I have encluded sample error messages that I am receiving for creation of TYPES which is causing my import to fail.
    I cannot find any examples on the web on how to achieve an exp from one schema and imp in another either on the same instance or another one.
    DDL for my table is :
    create table EQUIPMENT
    ID number(7) not null,
    STATUSID number(7) not null,
    ATTRIBUTEDATA xmltype
    xmltype column ATTRIBUTEDATA xmlschema "EQUIPMENT.xsd" element EQUIPMENT_XML
    tablespace TBS_DATA1;
    Three test runs as follows:
    1. Using an empty u2 schema and I register the .xsd file. Then I try to import (FROMUSER - TOUSER imp mode) my dump file which leads to the following error:
    IMP-00017: following statement failed with ORACLE error 2304:
    "CREATE TYPE "MTA1440_T" TIMESTAMP '2007-11-14:14:42:16' OID '3EE57B10307317"
    "74E044080020C94102' AS OBJECT ("SYS_XDBPD$" "XDB"."XDB$RAW_LIST_T",""
    "ATTRIBUTE_01" NUMBER(38),"ATTRIBUTE_02" VARCHAR2(4000 CHAR),"ATTRIBUTE_03" "
    "VARCHAR2(4000 CHAR),"ATTRIBUTE_04" NUMBER(38),"ATTRIBUTE_05" VARCHAR2(4000 "
    "CHAR))FINAL INSTANTIABLE "
    IMP-00003: ORACLE error 2304 encountered
    NOTE: Even though import failed, I now see a new TYPE created called "MTA1526_T".
    2. If I try to create the TYPE as is from the error above I get the following error:
    SQL> CREATE TYPE MTA1440_T
    2 OID '3EE57B1030731774E044080020C94102'
    3 AS OBJECT (SYS_XDBPD$ XDB.XDB$RAW_LIST_T,
    4 ATTRIBUTE_01 NUMBER(38),
    5 ATTRIBUTE_02 VARCHAR2(4000 CHAR),
    6 ATTRIBUTE_03 VARCHAR2(4000 CHAR),
    7 ATTRIBUTE_04 NUMBER(38),
    8 ATTRIBUTE_05 VARCHAR2(4000 CHAR)) FINAL INSTANTIABLE;
    9 /
    CREATE TYPE MTA1440_T
    ERROR at line 1:
    ORA-02304: invalid object identifier literal
    3. So now I create the "MTA1440_T" type without the OID value and retry the import.
    IMP-00061: Warning: Object type "U2"."MTA1440_T" already exists with a different identifier
    "CREATE TYPE "MTA1440_T" TIMESTAMP '2007-11-14:14:42:16' OID '3EE57B10307317"
    "74E044080020C94102' AS OBJECT ("SYS_XDBPD$" "XDB"."XDB$RAW_LIST_T",""
    "ATTRIBUTE_01" NUMBER(38),"ATTRIBUTE_02" VARCHAR2(4000 CHAR),"ATTRIBUTE_03" "
    "VARCHAR2(4000 CHAR),"ATTRIBUTE_04" NUMBER(38),"ATTRIBUTE_05" VARCHAR2(4000 "
    "CHAR))FINAL INSTANTIABLE "
    Questions from me:
    A. Can I export TYPES only as suggested by the online documentation ?
    B. If importing onto same instance in another schema surely the OID for the TYPE will always fail - so then why can the import not create the required TYPE name itself during the import ?
    C. Should I use global TYPES and Register the .XSD globally for all schema's in an instance to validate against .. would this prevent me from having errors on an import ?
    I would appreciate any insight any one could provide me. Many thanks in advance.
    Dom

    Hi Guys,
    Thank you all for the replies. I am dissappointed to hear that in 10g does not support exp/imp of schema's structured XML. However I am a little confused or should I say mislead by the "" documentation I
    Here is an extract from chapter "30 - Importing and Exporting XMLType Tables" from the Oracle XML DB 10g Developers Guide documentation:
    "..... Oracle Database supports the import and export of XML schema-based XMLType tables. An XMLType table depends on the XML schema used to define it. Similarly the XML schema has dependencies on the SQL object types created or specified for it. Thus, exporting a user with XML schema-based XMLType tables, consists of the following steps:
    1. Exporting SQL Types During XML Schema Registration. As a part of the XML
    schema registration process .....
    2. Exporting XML Schemas. After all the types are exported, XML schemas are
    exported as XML text .....
    3. Exporting XML Tables. The next step is to export the tables. Export of each table consists of two steps:
    A. The table definition is exported as a part of the CREATE TABLE statement....
    B. The data in the table is exported as XML text. Note that data for out-of-line
    tables is.....
    From this documentation I was under the impression that the exp/imp of XML Schema-Based XMLType Tables was supported.
    Regarding the backup mechanism/strategy for database schema's containing tables with Schema-Based XMLTypes what would you recommend the best online backup method to use - tablespace backups ?
    What I need to be able to do in day-to-day work is to have the ability to be able to take a copy of a customers UAT or production database schema and apply it to a dev or test db instance here for bug testing etc. Do you have any advice on best to achieve this without the use of an exp/imp when the schema will contain Schema-Based XMLType tables.
    Thank you all for your assistance so far.

  • Logical DS using RDF/XML schema?

    Hi,
    Does ALDSP 2.5 support creation of a logical data source using an RDF/XML schema?
    Any pointers to this would be really helpful.
    Thanks,
    Vidya

    Hi,
    Firstly a briefing on what I am trying to accomplish:
    1.In my experiment, I have a XML schema called CurDataModel, with which I have created a logical DS CurDataModel.ds
    I have created an RDF equivalent of the XML schema and want to create another logical DS.
    2.I did refer the SampleTutorial1.pdf Section 3.1 which describes how to create logical DS.
    3.However when i try to import a pre-defined RDF/XML schema (CUR.rdf) as attached, I am unable to do it.
    Regards
    Vidya

  • Requesting help-Schema creation and databinding

    We are using Livecycle ES 2, I am facing issues in traversing forms from one stage to another, forms are not holding datas from the previous stages.
    The steps which I followed are,
    1) Created schema to define the fields and data types
    2) Created two new forms in designer , to which schema has been binded to corresponding fields(data View ->> Create Connection->> Schema)
    3) Created a process, created two XML variables(xfaform data type has not been found!)  to hold the created forms
    4) Form1 has been mapped to XMLVariable1
    5) Form2 has been mapped to XMLVariable2
    6) On process, in stage1 - Form1 should appear and in stage2 - Form2 should appear to the end user
    7) in between stage1 and stage2, a setvalue stage is there to map the common data from form1 to form2
    8) So in stage2, user will get form2 well binded with the data from form2
    + few extra fields for user inputs
    9) To map the  data from form1 to form2, I am using "Location-Expression"
    property of setvalue stage
    10) "Location-Expression" is using the XMLvariables - drill down
    XMLVariable2(/process_data/IMFormData/xdp/datasets/data) assign
    XMVariable2(/process_data/FormData/xdp/datasets/data)
    But, when the form reaches stage2, form2 doesnt holding the data from
    form1
    Please help me to sort it out.Also, please let me know if there any tools or tips with you to create schema in much faster and efficient way.

    You do not need a schema (but you can use one if you need it). The form design is in fact a definition of the data structure. By default when a form is created without a schema the fields get Normal binding which allows data files with nodes and structure that have the same name as the field to populate those fields.
    If you still want to create a schema ...you can go into the File/Form Properties/Preview tab and create sampel data. This sample data file can be used by many programs that convert an XML file into a schema. Just do a search in teh web for xml to schema creation and you will get many hits.
    Lastly you coudl even use the sample XML file as the input file (Designer's Data connections allow for a sample xml file as well).
    Hope that helps
    Paul

  • 3rd party integration: How to get XML Schema (.xsd) for a custom entity, to use with a mapper

    Is there an easy way to get the xml schema/DTD for a custom entity, specifically an .XSD file for that entity (which will then be used to create a map to be able to transform the fields of the entity to a 3rd-party message format)?
    So have a custom entity with lots and lots of fields. Each of the fields will map to a differently named field to match the schema of the 3rd party entity. A very common situation. Looking to use a tool like the Biztalk mapper or Altova's MapForce to generate
    an .xslt file to transform the downloaded entity (service.Retrieve with all columns) to the new format. (Will implement a typical VETR pattern.)
    Apparently with CRM 4 there was a call that provided this, but from 2011 has not been available. Working with a crm 2015 system.

    That will give a descriptor of the table and allow creation of an .XSD file, but it's really complex in terms of types, and the there's type conversion. It might be an easy way to get a schema, with the downside being it's hard to use that schema. 
    It seems easier to do a fetch of the record with all fields filled in using service.Retrieve, and then converting this to xml, using Microsoft's guidance leads to using https://msdn.microsoft.com/en-us/library/hh675409.aspx which will serialize the entity
    into XML with all the fields converted to type string, and with complex fields likewise converted to strings with additional information about the type. 
    Using this it's possible using an number of tools to create an easier to use .XSD file.
    However, it would seem most integrations of this type are using 3rd party CRM connectors. Perhaps this is why Microsoft hasn't provided anything direct (and took away what they did have in crm4.0 due to it generating a hard to use .XSD or due to letting
    their partners continue income streams from selling connectors").
    But without using 3rd party connectors, or following the still tedious method of generating .XSD (a useable .xsd), have not yet come up with an easy, automatic way to get an .XSD or to easily integrate with 3rd party message format.

Maybe you are looking for