Using XSD while constructing schema

Hi,
I have the following scenario. I hae 2 methods getsendinputschema and
getsendoutputschema as shown
in the Interactionimpl.java of the email adapter.
I call a EIS event in the execute method.The EIS returns me a xml
document.Now i have to construct
the XML doc.
In the email adapter, the getsendoutput schema is called. This method
constructs the
output schema
In my case, I have the xsd template of this doc returned by the EIS.
Now how do I use SOM schema with this xsd? .
Basically what i want is the adapter should return the EIS data to the
process integrator using
the xsd (as the schema)I provide?
Any inputs will be greatly appreciated.
Thanks

Rick,
Thanks for the input. In fact after posting my query, I was working on those
lines.
But the problem I have is when I try to create the schema
private FileReader in;
in = new FileReader("D:\\bea\\tests\\CX\\rk.xsd");
int c;
StringBuffer buf = new StringBuffer();
do
c = in.read();
buf.append((char)c);
} while (c != -1);
System.out.println(buf);
// File read properly
// construct the schema based on xsd
String h= new String(buf);
SOMSchema e = new SOMSchema(h);
// SOMSchema e = new SOMSchema(in);
When i execute this, I get an error saying that the doc is not well
formed.Refer to the xsd.
Any ideas?
Once again thanks for ur input
"Rick DeGrande" <[email protected]> wrote in message
news:[email protected]..
Kishore,
I'm not sure I understand exactly what you're asking for, but if you
have an xsd (Schema definition) and you want to use it to create an
IDocument here's what you need to do...
I'll assume you have a Schema in text form.
First
Create a SOMSchema using the schema you have.
Once you have the SOMSchema you can use it to create the default
document. You'll need to create a DocumentOptions object in order to
specify defaults for the document creation. For instance the following
code could be used to create the event schema for the email adapter if
the "stringWithSchema" was set using the
InteractionImpl.getEventSchema().
SOMSchema schema = new SOMSchema(stringWithSchema);
DefaultDocumentOptions options = new DefaultDocumentOptions();
options.setForceMinOccurs(1);
options.setRootName("RECEIVEMAIL");
options.setTargetDocument(DocumentFactory.createDocument());
IDocument myDocument = schema.createDefaultDocument(options);
myDocument.setStringInFirst("//RECEIVEMAIL/ADDRESS",
"[email protected]");
myDocument.setStringInFirst("//RECEIVEMAIL/SUBJECT", "Hello");
myDocument.setStringInFirst("//RECEIVEMAIL/EMAILBODY", "Message Body");
Now you have a populated instance document for the schema.
Hope this helps.
Rick[rk.xsd]

Similar Messages

  • How to get restriction contents using eclipse xsd while reading schema's

    Hello,
    I am using XSD package from eclipse to read my schema structure (which is very complex) The code part where i am problem is as:
    If the schema is having element like :
    <xs:element name="Alignment" default="Center">
    <xs:annotation>
    <xs:documentation>
         Alignment can be any of the following three.     Left Right Center
    </xs:documentation>
    </xs:annotation>
    <xs:simpleType>
    <xs:restriction base="xs:string">
         <xs:enumeration value="Left"/>
         <xs:enumeration value="Center"/>
         <xs:enumeration value="Right"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    Then i am able to read all part. By the way the problem is how to read the restriction part (that is the base ) from the simple part. Any body is having any clue ?
    Regards,

    Pleast take a look at "Definer's rights and invoker's rights" in the following article:
    http://docs.oracle.com/cd/E11882_01/timesten.112/e21639/accesscntl.htm#BABDDCHC
    I guess you need to define a stored procedure with "invoker's rights".
    If this is what you are looking for will have to define it in the stored procedure that you are going to call.
    The syntax is as follows:
    create or replace procedure <yourprocedure> authid current_user ...
    ...or (the following is the default, you don't have to use the "authid definer" keywords):
    create or replace procedure <yourprocedure> authid definer ...
    ...hm

  • Using the Soap Encoding schema within an XSD

    Hi,
    I am trying to create some XSDs based on the types from the auto-generated WSDLs in JDeveloper. However, I find that while the Array type works fine in the WSDL, I cannot seem to get it validate correctly in my XML schemas, possibly due to some namespace error.
    The current code in the XSD is given as:
    <xsd:schema
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
    <xsd:complexType name="VesselQueryResult">
    <xsd:all>
    <xsd:element name="vesselNames" type="ArrayOfjava_lang_String"/>
    </xsd:all>
    </xsd:complexType>
    <xsd:complexType name="ArrayOfjava_lang_String">
    <xsd:complexContent>
    <xsd:restriction base="SOAP-ENC:Array">
    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    When I tried to add this XSD using as a user schema, however, below validation error is being displayed:
    Error: Line 0, Column 0: Invalid reference: 'http://schemas.xmlsoap.org/soap/encoding/:Array'
    I tried to qualify the SOAP-ENC namespace with the schemaLocation, but another error was displayed:
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"
    schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
    oracle.xml.parser.schema.XSDException: Server returned HTTP response code: 407 for URL: http://schemas.xmlsoap.org/soap/encoding/
    I am wondering how JDeveloper supports the SOAP-ENC schema for use in XSDs. Do I need to add the Soap Encoding schema as a user schema, or is there a way I might reference it similar to the way that auto-generated WSDLs seem to deal with it? Any information regarding this would be greatly appreciated.
    Thank you and regards.

    I deleted the two lines of coding below:
    utl_http.set_proxy('www-proxy', NULL);
    utl_http.set_persistent_conn_support(TRUE);
    and then I set the utl_http.set_persistent_conn_support() to False to get that error message. Seems like the website in question doesnt have the webservice anymore because the error has to do with the parsing of the WSDL file.... which probrably doesnt exist.
    Im just trying to get a working example of using a third party webservice to return a value to be displayed in the database.... know of any good examples? The ones im using seem to be pretty out dated... the barnes and nobles example just times out....

  • Database full compile while doing schema import using impdp

    hi,
    oracle 10g
    Database full compile while doing schema import using impdp..
    what is happening here..
    regards,
    Deepak

    My scenario
    I need to import the particular schema from the full export dump. which has taken by using expdp. while importing i am using remap_schema for a single schema.
    But it try to import the full dump and compile all the schema objects.
    regards,
    Deepak

  • How can i use a xsd while generating my xml document in oracle?

    Hi, how can i use a xsd while building my xml document query, so i know the xml was built properly?
    Cheers.

    Hi,
    Do you want to validate your xml against xsd?
    Read this
    validating
    There are some bugs also, for example  xml is invalid but no errors when calling schemaValidate()
    Ants

  • EWS Managed API Should I use GUID or DefaultExtendedPropertySet.PublicStrings while constructing DefaultExtendedPropertySet

    I am developing C# .NET Framework 4.5 Windows Form application using EWS Managed API 1.2 with Exchange Server 2007 which performs some sort of syncing of mails.
    Now that I am dealing with Extended Properties, I want to be clear some things:
    Q1. What is the purpose of DefaultExtendedPropertySet class?
    MSDN says "Defines
    the default sets of extended properties."
    Is it just to group the extended properties?
    If yes, why is the grouping there at first place?
    Do we have any Ews API method which can fetch values of all extended properties belonging to the same group on an item?
    Q2. I am unable to decide whether should I use custom GUID or DefaultExtendedPropertySet.PublicStrings while
    constructing ExtendedPropertyDefinition:
    ExtendedPropertyDefinition MyXProp = new ExtendedPropertyDefinition(
    DefaultExtendedPropertySet.PublicStrings,
    "MyXProp", MapiPropertyType.String);
    OR
    Guid MyPropertySetId = new Guid("{C11FF724-AA03-4555-9952-FA248A11C3E}");
    ExtendedPropertyDefinition extendedPropertyDefinition = new ExtendedPropertyDefinition(
    MyPropertySetId, "MyXProp", MapiPropertyType.String);
    What are the factors that should dictate the above decision?
    Also what difference it makes by above two approaches?

    1.  Have a read of
    http://blogs.technet.com/b/exchange/archive/2009/04/06/3407221.aspx which explains the history and why's and what's of named properties.
    >>Do we have any Ews API method which can fetch values of all extended properties belonging to the same group on an item?
    No EWS will only return the properties you ask it to return there is no way to enumerate all the extended properties on an Item.
    2. There is no right or wrong answer to this using PS_PUBLIC_STRINGS with a generic propertyname is generally a bad idea because another product could decide to use the same propertyname and you have a clash. So using your own guid can have
    it's advantages. Personally I find working with PS_PUBLIC_STRINGS make things more discoverable and easier to use if you need to integrate further with MAPI or Transport Agents.
    Cheers
    Glen

  • Using xsd:group in Report Data Structure

    Hi all,
    I am totally new to BI Publisher trying to create a report with a data structure specified by an XML schema. This schema makes heavy use of the XML schema construct 'group', e.g. like
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:group name="custGroup">
    <xs:sequence>
    <xs:element name="customer" type="xs:string"/>
    <xs:element name="orderdetails" type="xs:string"/>
    <xs:element name="billto" type="xs:string"/>
    <xs:element name="shipto" type="xs:string"/>
    </xs:sequence>
    </xs:group>
    <xs:element name="order" type="ordertype"/>
    <xs:complexType name="ordertype">
    <xs:group ref="custGroup"/>
    <xs:attribute name="status" type="xs:string"/>
    </xs:complexType>
    </xs:schema>
    </xsd:sequence>
    </xsd:complexType>
    When importing this schema into the Word Template Builder the shown attributes do not contain the elements specified in the group but only the element 'order' of type 'ordertype'.
    Could you point me to the solution of this issue - if any? Or is BI Publisher not able to handle xsd:group constructs?
    Thanks in advance.
    Best regards,
    Stefan

    The feature has some restrictions. Does the following work for you?
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="order" type="ordertype"/>
    <xs:complexType name="ordertype">
    <xs:group ref="custGroup"/>
    <xs:attribute name="status" type="xs:string"/>
    </xs:complexType>
    <xs:group name="custGroup">
    <xs:sequence>
    <xs:element name="customer" type="xs:string"/>
    <xs:element name="orderdetails" type="xs:string"/>
    <xs:element name="billto" type="xs:string"/>
    <xs:element name="shipto" type="xs:string"/>
    </xs:sequence>
    </xs:group>
    </xs:schema>

  • Issue in XSD  while exchanging the doc in events handling ?

    Hi Experts,
    I am working  on events where I need to pass some information say data types are  String, List of Strings and document from one process when an event  occured  to another process and use that data in second process.
    I am creating  one XSD  while creating the event. But here I know how to create the datatype for string and I have done sample application for String data  and it is working  fine and string value is  coming in second process.
    Please  let  me know how to create the XSD for List<String> and document.
    Would be great to have some links/guide on exchanging  the data  such as List<String> and Document .
    Please  help me ... I need to deliver  by  End of tommorow.
    Sample XSD (Am using)
    <? 
    xml version="1.0" encoding="UTF-8"?>< 
    xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="unqualified" attributeFormDefault="unqualified">
     <xs:element name="users">
     <xs:complexType>
     <xs:sequence>
     <xs:element name="assigner" type="xs:string"/>
     <xs:element name="assignee" type="xs:string"/>
     <xs:element name="processId" type="xs:integer"/>
     </xs:sequence>
     </xs:complexType>
     </xs:element></ 
    xs:schema>
    Thanks
    Praveen

    Hi Nith,
    Thanks  for your reply. I  tried with all  data types (binary and  anyType) to send doc to another process, but could not able to get the desired doc at  destination  process. After that I thought that we can exchange the xml ( getting data from PDF) to another process and use RenderPDFFormActivity  to get  that pdf  doc rather than tranfering  pdf doc.At XSD, there is no specific data type to transfere the XML. So I am using String datatype in XSD to transfere.
    Here I am assigning  XML to String in our soruce process and  then converting String to XML in destination process.
    But while converting String to XML, some attributes are automatiaclly adding to the XML file so that renderPDFform is  not recording.
    Please help me to resolve this issue.
    String Varibale output :
    <?xml version="1.0" encoding="UTF-8"?>
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2010-04-05T14:47:07Z" uuid="225b752b-6101-421d-bc9c-109933687316">
    <xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
            <xfa:data>
                <form1>
                    <FSTARGETURL_/>
                    <name>afd</name>
                    <password>sdfsd</password>
                    <email>fsdfsd</email>
                    <AWS_PROCESSTYPE/>
                    <AWS_SUBMIT_TYPE>XDP</AWS_SUBMIT_TYPE>
                </form1>
            </xfa:data>
            <dd:dataDescription xmlns:dd="http://ns.adobe.com/data-description/" dd:name="PrepopulateinvokeRequestDD">
                <Prepopulate>
                    <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
                        <impl:invoke xmlns:impl="http://adobe.com/idp/services">
                            <impl:name/>
                        </impl:invoke>
                    </soap:Body>
                </Prepopulate>
            </dd:dataDescription>
        </xfa:datasets>
    <pdf xmlns="http://ns.adobe.com/xdp/pdf/" href="2309738645731531927-41"/>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
            <annots/>
        </xfdf>
    </xdp:xdp>
    After assigning  string to XML  ...  the XML is  ::
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/"
    xmlns:dd="http://ns.adobe.com/data-description/"
    xmlns:impl="http://adobe.com/idp/services"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    timeStamp="2010-04-05T14:47:07Z" uuid="225b752b-6101-421d-bc9c-109933687316">
    <xfa:datasets>
            <xfa:data>
                <form1>
                    <FSTARGETURL_/>
                    <name>afd</name>
                    <password>sdfsd</password>
                    <email>fsdfsd</email>
                    <AWS_PROCESSTYPE/>
                    <AWS_SUBMIT_TYPE>XDP</AWS_SUBMIT_TYPE>
                </form1>
            </xfa:data>
            <dd:dataDescription dd:name="PrepopulateinvokeRequestDD">
                <Prepopulate>
                    <soap:Body>
                        <impl:invoke>
                            <impl:name/>
                        </impl:invoke>
                    </soap:Body>
                </Prepopulate>
            </dd:dataDescription>
        </xfa:datasets>
    <pdf xmlns="http://ns.adobe.com/xdp/pdf/" href="2309738645731531927-41"/>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
            <annots/>
        </xfdf>
    </xdp:xdp>
    FYI  :: Red block text is addinmg automatically.
    Thansk
    Praveen

  • In Reply to : How to validate org.jdom.Document object using xsd: dvohra09

    Hi All
    I am creating org.jdom.Document object using constructor Document() and adding children using setRootElement(), setChildren() and addContent() methods. The children are objects of org.jdom.Element. If i want to validate the org.jdom.Document using xsd what i have to do. Thanks in anticipation.

    I tried the below code and it is always giving the
    Parsing fatal error : The markup in the document preceding the root element must be well-formed.
    But it is possible to validate the same Document object as right document after writing it onto xml file using XMLOutputter and parsing it using DOMParser
    Thanks in anticipation
    org.jdom.Document document;
    String documentString=document.toString();
    StringReader stringReader=new
    StringReader(documentString);
    SAXBuilder saxBuilder =new
    SAXBuilder("org.apache.xerces.parsers.SAXParser",true);
    saxBuilder.setFeature("http://xml.org/sax/features/vali
    ation",  true);
    saxBuilder.setFeature("http://apache.org/xml/features/v
    lidation/schema",  true);
    saxBuilder.setFeature("http://apache.org/xml/features/v
    lidation/schema-full-checking", true);
    //Set a error handler with
    setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
    saxBuilder.build(stringReader);

  • Error while converting schema from oracle to SQL server

    Hello,
    I am getting following error while converting schema from oracle to SQL server using SSMA.
    I get Errors 1-3 while migrating procedures and error 4 while migrating a table.
    1- O2SS0050: Conversion of identifier 'SYSDATE' is not supported.
    2- O2SS0050: Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.
    3- O2SS0050: Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported.
    4- O2SS0486: <Primary key name> constraint is disabled in Oracle and cannot be converted because SQL Server does not support disabling of primary or unique constraint.
    Please suggest.
    Thanks.

    The exact statement in oracle side which causing this error (O2SS0050:
    Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
    dStartDate:= to_date(sStartDate,'MON-YYYY');
    Statement causing error O2SS0050:
    Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
    nCount2:= length(regexp_replace(sDataRow,'[^,]'));
    So there is no statement which is using to_date(VARCHAR2,
    CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY'  and '[^,]'
    are CHAR values hence SSMA is unable to convert it from varchar2 to char.
    Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
    dDate date := sysdate;
    Thanks.

  • Query resultset to xml using java and XML schema

    Hi,
    I query data using JDBC and I want to store it to an XML file which has a well defined XML schema. I searched a lot in the forum but did not find an answer. Please guide me to create this program.
    I have managed to use JDBC to get result set but I do not know how to export is to XML using XSD and Java.
    Please help.
    Regards,
    Ravi

    I have managed to use JDBC to get result set but I do
    not know how to export is to XML using XSD and Java.Export using XSD? Schemas are for validation.
    Iterate through the result set, and build up the XML stream by creating an entry for each row.
    Another way to do it is to load the ResultSet into a Java object and serialize that to XML using something like XStream.
    %

  • Error while constructing multi-XML document (Multi Mapping)

    Hi,
    We are using Java mapping to split the messages and the same maping has been called in the Enchanced interface determination. The Jave mapping is executing successfully when we run in the Test tab of the interface mapping.
    But we are getting error "Error while constructing multi-XML document", when we execute scenario from Runtime work bench or Test Configuration.
    Could you advise whether we need to do any extra setting to execute the java mapping in the Enhanced Interface Determination.
    Thanks,
    Krishnaraju.
    Edited by: krishnaraju Mudunuri on Jan 9, 2010 4:13 PM

    refer - http://wiki.sdn.sap.com/wiki/display/Java/MultiMappingwithJavaandXSLTmappings
    you need to have the messages tag.

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

  • JAXB Bindings - error while compiling Schema(s)

    Hello, I want to create Java classes from a XML Schema by using JAXB Binding. However, when I do that a message error appears: "Error while compiling Schema" and then it says:
    "C:\...\NetBeansProjects\myproject\build.xml:12: Problem: failed to create task or type import
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place."
    Does anybody know what it's happening? It could be that there is a .jar missing?
    Thank you very much

    The document build.xml at line 12 says <import file="nbproject/build-impl.xml"/>. The file nbproject / build-impl.xml exists. If you want I could send it to you.You could post it here (the build-impl.xml, I mean).
    I have a working example, we could compare.
    I have included all the .jar you mentioned (excep the jaxb1-imp.jar).?
    If you added this JAXB compiling target via NB's wizard, as you describe below, you shouldn't have to "include" whatever jars wich are already in the JDK. That is, if you're using JDK6 - JAXB was not (or not so much) included in the JDK prior to 1.6.
    If the JDK is 1.5, I have no idea where you have to add these jars, possibly you're not add them in the correct classpath. Presumably Ant itself would need them in its classpath to be able to define the task.
    And I have not touched anythingThey all say that... :o)
    the only thing I did was to add other .jars (for other purposes).See?
    Is it possible that you removed one of the important jars when doing back-and-forth tries?
    But anyway I went back to remove this new .jars and the JAXB Binding still doesn't work .
    Should I uninstall the IDE and re-install? I do not know what else to do ...Do you have any reason to believe you did corrupt the JDK or NetBeans's installation? For example, when you write about adding/removing the mentioned jars, did you do that somewhere in the JDK or NB installation?
    Other than that, I don't see what reinstalling NB would do.
    Without going to such extremes, have you tried simply to remove the JAXBBinding, and add it again in the NetBeans project, using the wizard?

  • QUERY IN XSD WHILE IMPORTING INTO IR

    Dear Collegues,
                I am trying to import extensible xsd into IR.After importing i am having a issue.
    <u><b>BookCatalogue.xsd (first xsd)</b></u>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"  elementFormDefault="qualified">
    <!--> <xsd:element name="Book" type="CardCatalogueEntry"/> -->
    <xsd:element name="Book">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="Title" type="xsd:string"/>
                <xsd:element name="Author" type="xsd:string"/>
                <xsd:element name="Date" type="xsd:string"/>
                <xsd:element name="ISBN" type="xsd:string"/>
                <xsd:element name="Publisher" type="xsd:string" />
            </xsd:sequence>
        </xsd:complexType>
        </xsd:element>
    </xsd:schema>
    <u><b>MainSchema.xsd</b></u>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"  targetNamespace="http://www.library.org" xmlns="http://www.library.org" elementFormDefault="qualified">
        <xsd:include schemaLocation="BookCatalogue.xsd"/>
        <xsd:element name="BBook" type="Library12"/>
    <xsd:complexType name="Library12">
         <xsd:sequence>
              <xsd:element name="BookID" type="xsd:string"/>
              <xsd:element name="Domain" type="xsd:string"/>
                        <xsd:element name="BookCatalogue">
                             <xsd:complexType>
                                 <xsd:sequence>
        <b> <xsd:element ref="Book" minOccurs="0" maxOccurs="unbounded"/></b>                                </xsd:sequence>
                             </xsd:complexType>
                         </xsd:element>    
         </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    In XMLSPY when i generate xml ,i could see
    <?xml version="1.0" encoding="UTF-8"?>
    <!Sample XML file generated by XMLSpy v2006 sp2 U (http://www.altova.com)>
    <BBook xmlns="http://www.library.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.library.org
    C:\DOCUME~1\cshekar\Desktop\XSLTMAPPING\Bookcatalogue\MainSchema2.xsd">
         <BookID>String</BookID>
         <Domain>String</Domain>
         <BookCatalogue>
              <b><Book>
                   <Title>String</Title>
                   <Author>String</Author>
                   <Date>String</Date>
                   <ISBN>String</ISBN>
                   <Publisher>String</Publisher>
              </Book>
              <Book>
                   <Title>String</Title>
                   <Author>String</Author>
                   <Date>String</Date>
                   <ISBN>String</ISBN>
                   <Publisher>String</Publisher>
              </Book></b>     </BookCatalogue>
    </BBook>
    when i import the main schema.xsd.
    while maping i could see
    only
         <<b>BookID>String</BookID>
         <Domain>String</Domain>
         <BookCatalogue>
              <b><Book></b> the elements under Book are not appearing.
    Any pointers to this.
    Regards
    chandra

    Hi,
    take a look at this thread. It has a similar problem.
    Re: External definition for XSD files and import element in the XSD files
    The solution is interesting,
    <i>The main XSD file had a default namespace, and also an element that is referring to an element in another XSD file (Import). After changing the default namespace, to a prefix and accordingly manipulating the elements, and then importing them to external definitions the problem got fixed.</i>
    Try this.
    Regards,
    bhavesh

Maybe you are looking for

  • How to see what are the tablespaces in a database

    Hi..All.. I want to see what are the tablespaces present in my database. What is the query for it..? Thanks in advance, Pal

  • Defragmentation in 10g

    hi friends, Database: 10.2.0.3 OS: windows 2003 server i had a tablespace (locally managed and segment space management auto) which is set as default for a user. few days back data was loaded into the tables for which i increased datafile size. yeste

  • Pdf interactivo y Ipad

    estamos haciendo un catálogo interactivo con botones para pestañas. lo hemos hecho con indesign exportado a flash y luego vuelto a exportar a pdf interactivo. en los ordenadores donde lo hemos probado se visualiza bien. pero no funciona en los ipad y

  • JC 3.0 crypto error when running the simulator from Netbeans

    Hi all I'm writing some crypto code using Netbeans 6.7 with the JC plug-ins and I have a problem when trying to run the applet from netbeans. The code is compiled without problems, but when trying to run it I get the NO_ALGORITHM exception. I'm not u

  • Problem sending messages

    Hi, I have just started nit being able to send messages. It says they are queueing? In my data section it looks like the messaging app is full? How do I correct this please Thanks.