How can i export a XML Schema
Hi!
I'm a newbie and i've export a XML file but how can i export a XML Schema from a database?
With best regards
Nicole
Hi Nicole
I never seen a tool/package/... in the DB that generates the XML Schema for a whole DB schema.
Anyway you can find some generation capabilities in:
- package DBMS_XMLSCHEMA (method GENERATESCHEMA)
- XDK's utility XSU (option -withSchema)
Chris
Similar Messages
-
How can I refer an xml Schema that was registred in Oracle xml DB
How can I refer an xml Schema that was registred in Oracle xml DB, from other xml schema?
I have the follow schema,:
<?xml version="1.0" encoding="AL32UTF8"?>
<xsd:schema targetNamespace="schemastipostasa.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb/XDBSchema.xsd"
elementFormDefault="unqualified" version="1.0"
attributeFormDefault="unqualified">
<xsd:simpleType name="codigosType" xdb:SQLType="NUMBER(4)">
<xsd:restriction base="xsd:positiveInteger" >
<xsd:totalDigits value="4" />
</xsd:restriction>
</xsd:simpleType >
<xsd:simpleType name="integerUnoType" xdb:SQLType="NUMBER(1)">
<xsd:restriction base="xsd:int" >
<xsd:totalDigits value="1" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="condicionType" xdb:SQLType="VARCHAR2(1)">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="S" >
<xsd:annotation>
<xsd:documentation>Condicion si es S</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="N" >
<xsd:annotation>
<xsd:documentation>Condicion no es N</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType >
</xsd:schema>
I registred the schema written above with the folowwing pl*sql :
DECLARE
direc varchar2(2000);
nombreArch BFILE;
mens varchar2(2000);
BEGIN
direc:=uso_comun.pack_mail.fun_valor_param('TASA','DIR_DBSERVER');
nombreArch:=bfilename(direc,'schemas_tipos_tasa.xsd');
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://xmlns.oracle.com/tasa/schemas.tipos.tasa.xsd',
SCHEMADOC => nombreArch,
LOCAL => TRUE,
CSID => nls_charset_id('AL32UTF8'));
dbms_lob.CLOSE(nombreArch);
dbms_output.put_line('salio sin cancelar');
exception
when others then
mens:=sqlerrm;
dbms_lob.CLOSE(nombreArch);
rollback;
raise_application_error (-20001,'en registro shcema='||mens);
END;
Then, I want to register the following schema, that mention de schema above:
<?xml version="1.0" encoding="AL32UTF8"?>
<xsd:schema targetNamespace="schema.repuesto.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb/XDBSchema.xsd"
xmlns:tns="http://xmlns.oracle.com/tasa/schemas.tipos.tasa.xsd"
elementFormDefault="qualified" version="1.0"
attributeFormDefault="unqualified" >
<xsd:element name="PRECIORENG" type="preciorepType" />
<xsd:complexType name="preciorepType" >
<xsd:sequence minOccurs="1" maxOccurs="unbounded">
<xsd:element name="CODIGO_MARCA" type="tns:codigosType" />
<xsd:element name="ORIGEN_PRECIO" type="tns:integerUnoType" />
<xsd:element name="INGRESO_POR_FALTANTE" type="tns:condicionType" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
But when a run the following script whith the same db-user:
DECLARE
direc varchar2(2000);
nombreArch BFILE;
mens varchar2(2000);
BEGIN
direc:=uso_comun.pack_mail.fun_valor_param('TASA','DIR_DBSERVER');
-- nombreArch:=bfilename(direc,'prueba_schema_seis.xsd');
nombreArch:=bfilename(direc,'Schema_repuesto_nuevo.xsd');
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL =>'http://xmlns.oracle.com/tasa/schema.repuesto.xsd',
SCHEMADOC => nombreArch,
LOCAL => TRUE,
CSID => nls_charset_id('AL32UTF8'));
dbms_lob.CLOSE(nombreArch);
dbms_output.put_line('salio sin cancelar');
--commit;
exception
when others then
mens:=sqlerrm;
dbms_lob.CLOSE(nombreArch);
rollback;
raise_application_error (-20001,'en registro shcema='||mens);
END;
tell me the error: ORA: 01031, insufficient privileges!!!!, what’s wrong??,Hi,
To register schema, you require XDBADMIN system privilege granted to the user.
Please verify this and retry.
Rgds,
Rakesh Tripathi -
How can I define an XML schema for this kind of XML
Hi, There:
I want to generate an XML file like:
<customer>
</customer>
<transaction>
</transaction>
<customer>
</customer>
which have multiple customer elements and multiple transactions as well, and they can happen in mixed sequence. Can any one give me some idea about how can I create an XML schema for this kind of xml? (<xsd:complextype> <xsd:sequence> ) seems not work)
Thanks in advance
DavidUse a group then make it a choice, like this;
<xs:element name="Parent">
<xs:complexType>
<xs:group ref="Group" minOccurs="1" maxOccurs="unbounded" />
</xs:complexType>
</xs:element>
<xs:group name="Group">
<xs:choice>
<xs:element ref="OptionOne" type="xs:string" />
<xs:element ref="OptionTwo" />
</xs:choice>
</xs:group>
<xs:element name="OptionOne">
<xs:complexType>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="Type" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="OptionTwo">
<xs:complexType>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="Type" type="xs:string" />
</xs:complexType>
</xs:element>
This allows XML like this
<Parent>
<OptionTwo ........ />
<OptionOne ........ />
<OptionTwo ........ />
<OptionOne ........ />
<OptionOne ........ />
</Parent>
HH -
How can I export the whole schema but except one table?
I need export one schema from one hp-ux server using exp command, this schema will be exported into some dmp files, then I ftp these files into another hp-ux server, import this schema from these dmp file in that server.
Problem is: there is one very big table which is about 20G size in this schema, so I don't want this table to be exported. I know there is a parameter called TABLES in exp command, but this parameter just apply to table-mode Export. So does there have other ways for me to achieve my goal?Hi,
to exclude the table (or some of them) you can create control file using SQL*Plus with spool. All what you need is to create sql statement and save results in control file. As an example:
oratest> select owner||'.'||table_name||','
2 from all_tables where owner = user;
OWNER||'.'||TABLE_NAME||','
GORYA1.A1,
GORYA1.CLEAN_D,
GORYA1.D1,
GORYA1.DICT_D,
GORYA1.H1,
GORYA1.MY_USERS,
GORYA1.P1,
GORYA1.P2000,
GORYA1.PP1,
GORYA1.PP2,
GORYA1.REP_1,
GORYA1.TREATMENT,
GORYA1.TREATMENT1,
Copy-paste it into control file under "tables=" clause and remove the last comma. You can add to the sql any "where" what you would like to restrict output.
Andrey -
How can i export to xml?
hello, i'm trying to save the data of my form in xml format, but don't work. I make the form with designer 7.1 and i want to open the pdf with adobe reader 7.0.5, somebody can say what can i do to save the data of the form in xml format? thanks
(excuse me for my english)<br /><%<br />Server.ScriptTimeout = 10<br />Response.Expires = -1<br /><br /> LoginId = Request.Form("LoginId")<br /> dim sSQL, ConString, cnn, rs<br /> <br /> '-----------------------------------------------------------------------<br /> ConString = "UID=sa;PWD=xxxxxx;DATABASE=Acrobat;SERVER={servername};DRIVER=SQL Server;DSN=Acrobat;"<br /> Set cnn = Server.CreateObject("Adodb.connection")<br /> cnn.open ConString<br /> Set rs = Server.CreateObject("Adodb.recordset")<br /> <br /> '************ Construct SQL Statement ******************************<br /> sSQL = "SELECT Name, Phone, Id From ATable WHERE Id = " & LoginId<br /> rs.Open sSQL, cnn, 3, 3 <br /> if rs.recordcount=0 then<br /> rs.addnew<br /> rs("Id")=LoginId<br /> if len(Request.Form("Name"))>0 then rs("Name")= Request.Form("Name")<br /> if len(Request.Form("Phone"))>0 then rs("Phone")= Request.Form("Phone")<br /> rs.update<br /> else<br /> rs("Id")=LoginId<br /> if len(Request.Form("Name"))>0 then rs("Name")= Request.Form("Name")<br /> if len(Request.Form("Phone"))>0 then rs("Phone")= Request.Form("Phone")<br /> rs.update<br /> end if<br /> RS.Close<br /> Cnn.Close<br />%>
<br />Note Name, LoginId and Phone is the field names
<br />if the form is created in Designer the fieldname must be complete ie page1.form1.filename
<br />
<br />[email protected] -
How can I pass a xml file to the webservice?
Hello friends,
How can I pass the XML file to any webservice API ?
I have all the inputs of API in to the XML file.
Please note:- I don't intend to do any .NET or Java coding to populate the data in the objects .Instead I plan to input the data to the webservice direcly from the XML file required schema.
If necessary I can use Oracle Bpel process manager for it.
Thanks and regards
Ram Krishna Tripathi
[email protected]Well, I've used it (or rather: tried it); did not/could not find the many options to export at a nearly lossless conversion for HD footage (hence my disclaimer "don't know"). Here is a screenshot of the Handbrake options:
And here are the choices and settings from MPEG Streamclip:
Maybe not empirical, but enough for me to have an opinion. -
How Can I Export A Table With Its Entries ( values )
Hi guys,
How can i export a table with the entries that the table is populated with ??!!
Best Regards,
FatehTo export a table and its data you can do it a number of ways.. Do you have access to SQL Developer? If not you can do it through the APEX SQL Workshop..
Under SQL Workshop, Utilities, Data Unload, To text (or XML, whichever you are more comfortable with..).. Select your schema, click next button, select the table, click next, select the columns you want exported (select ALL ITEMS in the select List), click next, on optionally enclosed by I usually enter a " (Sometimes I have long strings in columns), click the include column names checkbox to get the column names at the top of the document, click unload data button..
To get the ddl (code to build table) Sql Workshop, utilities, generate ddl, create script, select schema, select next, click table checkbox, select next, click the checkbox of table you want to get ddl for...
Thank you,
Tony Miller
Webster, TX
There are two kinds of pedestrians -- the quick and the dead.
If this question is answered, please mark the thread as closed and assign points where earned.. -
How did i use the xml schema in WLS 6.0 and up
i check the WLS6.0 console that can setup the xml dtd
but how did i setup the xml schema in WLS6.0 and up ??Hello-
The knowledge base: "Can Matlab for Windows Call the National Instruments GPIB Driver?" Also applies to this question as well. This article is very extensive. Try searching on ni.com for "+matlab +gpib" for more details.
Randy Solomonson
Application Engineer
National Instruments -
How can i export excel 2003(Version 11) from Crystal Report 8.5
how can i export report to excel 2003(Version 11) from Crystal Report 8.5
We i can only see below formats
Acrobat Format (PDF)
Character-separated values
Comma-separated values (CSV)
Crystal Reports (RPT)
Crystal Reports 7.0 (RPT)
Data Interchange Format (DIF)
Excel 5.0 (XLS)
Excel 5.0 (XLS) (Extended)
Excel 7.0 (XLS)
Excel 7.0 (XLS) (Extended)
Excel 8.0 (XLS)
Excel 8.0 (XLS) (Extended)
HTML 3.2
HTML 4.0 (DHTML)
Lotus 1-2-3 (WK1)
Lotus 1-2-3 (WK3)
Lotus 1-2-3 (WK5)
ODBC - AddressBook
OBDC - CRGUP
OBDC - CROR8V36
OBDC - CRSS
OBDC - CRXMLV36
ODBC - dBASE Files
ODBC - Excel Files
ODBC - MS Access Database
ODBC - Visio Database Samples
ODBC - Visual FoxPro Database
ODBC - Visual FoxPro Tables
OBDC - Xtreme Sample Database
Paginated Text
Record style (columns no spaces)
Record style (columns with spaces)
Report Definition
Rich Text (Exact Format)
Tab-separated text
Tab-separated values
Text
Word for Windows document
XML
there is no format with "Microsoft Excel 97-2000 (XLS)"
what should i do? -
How to Generate and Register XML Schema
Does any one know how to gererate Oracle type XML schema provided XML file and register to XMLType field?
Thanks for any expert suggestion...The SQL statement below shows how one can register XML schema to an XMLType column:
create table po_tab(
id number,
po sys.XMLType
xmltype column po
XMLSCHEMA "http://www.oracle.com/PO.xsd"
element "PurchaseOrder";
Similarly you can register XML schema to the INVDOC field in the your INVOICE table.
Hope it helps
Shefali
(OTN team) -
HOw can I export photos from my iPad or iPod to my main computer? My old computer died with my photos on it but I want to move my photo library from my iPad or iPod to the computer I just bought. Thanks for any help you can give.
Sorry but your iPhoto library is not on an iPad or iPod - you may have photos there (most likely low resolution copies) but not an iPhoto library - dying computers (along with software and human errors) are why you always must have a backup - now is the time to load it
LN -
How can I get the XML structure from a flat structure?
Hi all,
in my XI SP 12 I use a JMS adapter to read information using the WebSphereMQ transport protocol.
The structure that I receive have this format:
<Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value>
<NumberRecordType_B><NumberRecordType_c>
<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
the problem is that in this structure each line is not separated by a carriage return or a comma, I have all the information in a single line:
<Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value><NumberRecordType_B><NumberRecordType_c><Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>...<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value><Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>...<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
and the customer don't want to insert a line separator.
Then, the question is:
How can I get the XML structure from this structure?
If possible, I don't want to develop new Module and add it in the JMS Module Sequence.
PS I have already read the article "How to Use the Content Conversion Module with the XI 3 J2EE JMS Adapter.pdf" and it doesn't seem to help me.
Best Regards,
PaoloTo get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
ServletContext context = getServlet().getServletContext();
String tempContextVar =
context.getInitParameter("<your context param >"); -
How can I export my iTunes Library to an external hard drive?
How can I export my iTunes Library to an external hard drive? and once i do that how can i play the library through the external drive? I basically want to be able to delete all my music on itunes once it is on my external hard drive so i can have more internal hard drive space.
Follow this guide very carefully: http://support.apple.com/kb/HT1364?viewlocale=en_US
It's very easy to do.... -
How can i export contacts from one apple id to another apple id
I just got a new phone - all of the data from my old phone didnt get transferred because
I was using 2 separate apple ids - how can i export the data from the id i am no longer usIng
to the new idDoes the old phone have the old apple ID ?
If it does then sign out of the old iCloud account, Keep your info on your phone, sign in with new apple ID, then merge to cloud. Give it a few minutes. You should see the other contacts appear on your new phone via iCloud. -
(Fifth futile attempt in two hours, before I learned there was a Post webpage – I’m new to ApSuppCom - and after I learned that I am not allowed to update previous content, so I had to back out, make a few changes, and start over.) How can I export slideshows created in Aperture v3.3.2 (complete with superimposed captions and music tracks) from Mid-2009 MacBook Pro-17 to blank DVDs ? (Some other specs: Mac OS Lion 10.7.5; Capacity 499.5 GB; Processor 2.8 GHz Intel Core 2 Duo; Memory 4GB 1067 MHz DDR3; Graphics NVIDIA GeForce 9400M 256MB)
I cannot do a copy (export) without various error messages appearing and the inevitable stoppage occurring. Always with the DVD Video Player final message reading, “Supported disc not available.” Advisors and Mac Geniuses at local Apple Stores have told me to try Roxio Toast. When I visited the Roxio website, and found numerous other company products, the descriptions all seemed to suggest that most of the apps shown can easily export videos to DVDs, but nothing was said about finished digital slide shows being exported. At future events soon, I hope to be handing out these finished DVDs (free) to the people in them. Any help will be greatly appreciated. A.Z.How can I export slideshows created in Aperture v3.3.2 (complete with superimposed captions and music tracks) from Mid-2009 MacBook Pro-17 to blank DVDs ?
Aperture cannot burn slideshows to a DVD. It only can export a video of your slideshow.
In Aperture 3 you use the "Export" button in Aperture's slideshow project to render a video to a folder on your disk.
Then you use iDVD or another program to burn a video DVD.
I cannot do a copy (export) without various error messages appearing and the inevitable stoppage occurring. Always with the DVD Video Player final message reading, “Supported disc not available.”
Could you please describe the exact steps that are causing these error messages?
How are you exporting your slideshow from Aperture? Which settings are you using? And how are you importing the video to iDVD or Toast to burn a video DVD?
For more suggestions see Karsten Schlüter's user tip: How to create a video-DVD? (Macs without iDVD)
Maybe you are looking for
-
Questions on running an Arch Mirror
Questions on running an Arch Mirror Does anyone here run a public arch mirror that can give me any idea of bandwith they use ? Is there any issues with running the Current and Extra mirrors in the US ? Is there any issues with running the Community m
-
Call a RFC function in VB but without SAPGui install in the system.
Hi, Do you have example of code, to be able to call a RFC with the VB or C/C++ without needed to have the SAPGui install in the client. The RFC will be call by a server, so I don't want to install a SAPGui release on this server. Regards Frédéric
-
Can I create a new GeneratedItems folder?
No luck with my first question. So maybe this one is easier? I've noticed that my page on my system also does not work (rollovers or actions) and I have tried it both ways as well (import from library and encode into page), so I was wondering about a
-
Double Tapping for Widescreen video taking is no nonger required
For quite some time the only way to take widescreen video on an iphone was to turn it sideways of course then to dbl tap the screen to get 16x9 recording. Now that is not the case at all and I have been wasting my time with my new phone dbl tapping a
-
I bought an iphone 5 in UAE has not the facetime more live in Brazil it will work the same?
My facetime does not wor for my iphone 5 and UAE dis and now?