Dtd 2 relational schema
Could someone give an example of how a relational schema should
be done using object views and instead of trigers from a given
DTD.
My DTD is a simple one:
<!ELEMENT house (room*)>
<!ELEMENT room (furniture*)>
<!ELEMENT furniture (#PCDATA)>
I use sql version 9.0.1
Thanks in advance.
Adi,
Value-based multi-level collections feature is only supported in
9i release. With 8.1.6, you need to use reference based approach
for multi-level collections. You can check out the documentation
at
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
appdev.817/a76976/adobjdes.htm#446229 for specific examples.
Regards,
Geoff
hello,
I have tried to create a relational schema from a DTD, but I
failed when I tried to create nested tables.
I have the following DTD:
<!ELEMENT house (room*)>
<!ELEMENT room (furniture*)>
<!ELEMENT furniture (#PCDATA)>
and the output of my dtd2relational schema algoritm is :
CREATE TYPE FURNITURE_TY AS OBJECT (furniture varchar2(1000))
CREATE TYPE FURNITURE_NT AS TABLE OF FURNITURE_TY
CREATE TYPE ROOM_TY AS OBJECT (furniture FURNITURE_NT)
CREATE TYPE ROOM_NT AS TABLE OF ROOM_TY
CREATE TABLE house (room ROOM_NT) NESTED TABLE furniture STORE
AS FURNITURE_NT_TAB,NESTED TABLE room STORE AS ROOM_NT_TAB
java.sql.SQLException: ORA-00902: invalid datatype
Nested table in nested table is not supported?
The mapping can be done using nested tables?
Could someone give me an SQL example on how to create an
relational schema based on above DTD so that xml can be inserted
into database using XSU?
I use an SQL*Plus: Release 8.1.6.0.0
Similar Messages
-
Yes, I want to create object-relational schema from DTD.
Thank you for reply~~
I want to create object-relational schema from DTD using object type or collections as mentioned.
In reply, it is impossible.
But, I read Oracle supports storing an XML document with object-relation. I executed storing sample, but I had to create schema manually.
Is it really impossible to create OR schema from DTD automatically?Yes. You need to create your database schema before insert XML data to it.
-
Could someone give an example of how a relational schema should
be done using object views and instead of trigers from a given
DTD.
My DTD is a simple one:
<!ELEMENT house (room*)>
<!ELEMENT room (furniture*)>
<!ELEMENT furniture (#PCDATA)>
Thanks in advance.Adi,
Value-based multi-level collections feature is only supported in
9i release. With 8.1.6, you need to use reference based approach
for multi-level collections. You can check out the documentation
at
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
appdev.817/a76976/adobjdes.htm#446229 for specific examples.
Regards,
Geoff
hello,
I have tried to create a relational schema from a DTD, but I
failed when I tried to create nested tables.
I have the following DTD:
<!ELEMENT house (room*)>
<!ELEMENT room (furniture*)>
<!ELEMENT furniture (#PCDATA)>
and the output of my dtd2relational schema algoritm is :
CREATE TYPE FURNITURE_TY AS OBJECT (furniture varchar2(1000))
CREATE TYPE FURNITURE_NT AS TABLE OF FURNITURE_TY
CREATE TYPE ROOM_TY AS OBJECT (furniture FURNITURE_NT)
CREATE TYPE ROOM_NT AS TABLE OF ROOM_TY
CREATE TABLE house (room ROOM_NT) NESTED TABLE furniture STORE
AS FURNITURE_NT_TAB,NESTED TABLE room STORE AS ROOM_NT_TAB
java.sql.SQLException: ORA-00902: invalid datatype
Nested table in nested table is not supported?
The mapping can be done using nested tables?
Could someone give me an SQL example on how to create an
relational schema based on above DTD so that xml can be inserted
into database using XSU?
I use an SQL*Plus: Release 8.1.6.0.0 -
Flex Config File DTDs or Schemas
I am writing a basic application to test Flex integration
with Java objects, and after solving a bunch of deployment errors,
I am happy to say I am finding no errors on deployment anymore. The
application, however, still doesn't work because of what must be
some undescribed configuration error.
I have been unable to find any DTDs or schemas that pertain
to any of the following files:
flex-config.xml
data-management-config.xml
flex-webtier-config.xml
remoting-config.xml
services-config.xml
mxml-manifest.xml
Putting aside my disappointment that I need all these files
for a Flex-Java application that couldn't get any simpler, I would
appreciate any insight into these files.
Thanks.Ok, I solved it by myself
I need to add the following codes when calling the Compiler
API
Configuration conf = application.getDefaultConfiguration();
conf.setToken("flexlib", "path to the frameworks")
applicaiton.setConfiguration(conf);
Then it solved the problem -
Relational Schema Advisor error
Hi David ,
Not sure whether I need to deploy something separately for this tab to work in MV page. However after clicking on this getting below error:
java.sql.SQLException: ORA-44003: invalid SQL name
ORA-06512: at "SYS.DBMS_CUBE_ADVISE", line 2683
ORA-06512: at line 1
at oracle.olap.awm.dataobject.dialog.olapi.mvcubeadvice.UMVRunAdvice.runMVCubeAdvise(Unknown Source)
at oracle.olap.awm.dataobject.dialog.olapi.cube.UMaterializedViewPanel$14.construct(Unknown Source)
at oracle.olap.awm.ui.SwingWorker$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
I think I am missing some steps or scripts ?
Regards,
DxPPlease run the following query as the owner of the cube
by substituting the cube owner and cube name for the first
two arguments. If the cube is set as refresh by not rewrite, then
change the last parameter of 'REWRITE' to 'REFRESH'.
SELECT SYS.DBMS_CUBE_ADVISE_SEC.GET_MVNAME('<OWNER>', '<CUBE_NAME>', null, 'REWRITE') CUBE_MVNAME from dual;
The query should return the cube organizational table which is used by the relational schema advisor.
This will help get to the bottom of this issue.
David -
Relational schema and difference berween relational schame and data base schema ?
Hi ,
Am new to Database
Can u help me to understand relational schema and data base schema ?
thanksHi Neil,
I'm not good with the relational schema, which is being deprecated. Given your results though, you might try
doing a count of distinct GIDs in the index table and compare it with the number of distinct geometries to make sure
your index is complete.
Also, if you have quadtree indexes at the same level in both Object-relational and relational then you can compare the
number of index entries in both models.
Hope this helps,
Dan -
I have requirement to model an RPD and create reports on relational schema. Does anyone have examples of modeling on a relational schema.
I think this your 2nd post for the same!! ;) If possible answer/mark that. for ref:
OBIEE Modeling Question
If you have any OOB rpd, check for RPD Physical layer database like 'Real time OLTP', these are based on actual OLTP primary and foreign keys to join and the rest is same except performance.
Hope this helps, pls mark -
How do I use both a dtd and schema during parsing?
Hi
I have this akward problem. I have created at schema for or DOM parser to validate up against. Thats all fine. The problem arise when I want to use entities in the xml like æ å which are special html esc. sequences for danish letters.
Then I found this dtd from w3c: xhtml-lat1.ent, that does the trick of declaring these entities.
The problem is! How do I incorporate this dtd in the schema so I dont have to reference it in all my xml documents. I tried with the <!DOCTYPE ...> declaration as follows: <!DOCTYPE xs:schema PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://legolas.dsb.dk:4520/mille/integration/xsd/xhtml-lat1.ent">
which onfortunatly dosnt work. The parser takes the DTD instead of the schema when validating and is now not able to find any of the entities declared in the XML schema.
How to resolve this problem?
Kind regards
Michael NielsenInclude DTD with the include tag:
<xs:include schemaLocation="http://legolas.dsb.dk:4520/mille/integration/xsd/xhtml-lat1.ent"/> -
Location of DTD or Schema for XSQL Statements
Hi,
where can I find a DTD or a XML schema for XSQL statements?
I am using XML Spy as XML editor. With a XSQL DTD it would be more comfortable to create xsql files.
Kind regards, AchimThanks for your answer.
Your proposed way creates the XML schema for the resulting XML of the query. I was asking for the XML schema or DTD of the allowed XSQL statements and attributes in the query XML file (the XSQL file).
If you are doing a xsql:query, you can add a parameter
include-schema="yes" to the <xsql:query> tag and it will
return the XML Schema for your query.
This works on the latest xdk -
Hi,
In my outbound idoc scenario, i have to send idoc in XML format with schema.
I don't know what schema is, if it's XSD file or other.
My answers is:
1) What is it schema (or XSD) file? I have to send always or just one first time?
2) the DTD file which i can set in WE21 for XML port is the same thing? If not, which differents?
Thanks lot.
Matteo Vernile.Hi,
1) What is it schema (or XSD) file? I have to send always or just one first time?
schema is a definition of xml. It is metadata which describes what can be inside xml. You can find xsd in this transaction: WE60
2) the DTD file which i can set in WE21 for XML port is the same thing? If not, which differents?
DTD is another definition type but it's not the same as xsd.
/wg -
Xerces2_6_2 validating with dtd and schema.. please help
Hi I am having trouble validating an xml document using xerces2_6_2
I have a DTD that containes only entity references, and a schema that is used to ensure the xml is valid.
I get this error.
Element type "my root tag" must be declared!
It seems to expect all validation grammer to be in the dtd. I have sucessfully validated with xml spy and oxygen,(oxygen uses xerces too).
This is a real pain I really would lie to take advantage of using schemas, I know I could just use entity references in this form and not have a dtd but this is really not acceptable.
I have tried out all the xerces specific properties and features but this has not worked either.
Perhaps I should implement a validator? Does anyone have any ideas?
thanksMy solution, I thought to take, wasn't the right way, but I have found following thread within the forum
http://forum.java.sun.com/thread.jspa?forumID=34&threadID=527461
The problem you have described points to a dtd error. Considering the thread above, it would make sense. It is a presumption, but perhaps that is because of the new Xerces version. I would try with an older one.
Sorry, that I could help you along. -
What is DTD (related to BC and XML)?
Hi all,
Could you please refer me to links/documents, after giving a brief overview of <b>DTD</b>
Thanks,
Charles.Hi,
The purpose of a DTD is to define the legal building blocks of an XML document. It defines the document structure with a list of legal elements. A DTD can be declared inline in your XML document, or as an external reference.
Internal DTD
This is an XML document with a Document Type Definition: (Open it in IE5, and select view source)
<?xml version="1.0"?>
<!DOCTYPE note [
><!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
The DTD is interpreted like this:
!ELEMENT note (in line 2) defines the element "note" as having four elements: "to,from,heading,body".
!ELEMENT to (in line 3) defines the "to" element to be of the type "CDATA".
!ELEMENT from (in line 4) defines the "from" element to be of the type "CDATA"
and so on.....
External DTD
This is the same XML document with an external DTD: (Open it in IE5, and select view source)
<?xml version="1.0"?>
<!DOCTYPE note SYSTEM "note.dtd">
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
This is a copy of the file "note.dtd" containing the Document Type Definition:
<?xml version="1.0"?>
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
Why use a DTD?
XML provides an application independent way of sharing data. With a DTD, independent groups of people can agree to use a common DTD for interchanging data. Your application can use a standard DTD to verify that data that you receive from the outside world is valid. You can also use a DTD to verify your own data.
For more information, please check this links.
http://help.sap.com/saphelp_nw04/helpdata/en/64/0bee3da7138e5be10000000a114084/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/dc/6b827c43d711d1893e0000e8323c4f/content.htm
Regards,
Ferry Lianto -
Hi all
This is naveen here can any one help me how to copy or modify the schema and explanation about pcrs please give me step by step process it will be more helpful to me
Thanks in advance
naveenDon't get upset. On the expert forum particular problems are solved. It is not a training course.
A personal calculation rule is a set of statements by means of which wage types are processed. Assume that the wage type is entered in infotype 0014 as a number, but after payroll is run you expect the wage type has an amount which is simply value of a particular payroll constant. In this case the pricing of the wage type is performed in a pcr, that is: checking if wage type has non zero number, the value of the constant is read, multiplication of number and constant is performed and, finally, a result is saved in an amount of the wage type. This is a simple example, but I think it makes you understand what is the purpose of pcrs.
Regards,
Renata -
Difference between schema and DTD
Difference between schema and DTD
<author>
<firstname></firstname>
<lastname></lastname>
</author>
How will u write dtd and schema for above XML ?DTD:
<!ELEMENT author(firstname, lastname)>
<!ELEMENT firstname(#PCDATA)>
<!ELEMENT lastname(#PCDATA)>
Schema:
<xs:element name="author">
<xs:complexType>
<xs:sequence>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="lastname" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element> -
Web-services.xml, dtd or xml schema?
Hi there!
I'm just curious to know whether there exists any dtd or schema
for wls 7.x web-services.xml file?
The diagram in
http://e-docs.bea.com/wls/docs70/webserv/wsp.html#1001373
shows one order for the contents of the web-service element,
whereas the examples reflect another (being types,
type-mapping, components, operations).
Why are the example web-services.xml not tagged with the
information of the location of the schema?
Of course building web-services.xml manually is not the first
thing to try, but since the contents are documented and since
it gives the best control over the process, it makes sense.Hello,
There's not one. The primary vision for the web-services.xml file
was/is to be a linkage between wsdl/soap and the j2ee environment. It
was not intended to be a starting point for building an application, but
a semi-private intermediary.
HTHs,
Bruce
Toni Nykanen wrote:
>
Hi there!
I'm just curious to know whether there exists any dtd or schema
for wls 7.x web-services.xml file?
The diagram in
http://e-docs.bea.com/wls/docs70/webserv/wsp.html#1001373
shows one order for the contents of the web-service element,
whereas the examples reflect another (being types,
type-mapping, components, operations).
Why are the example web-services.xml not tagged with the
information of the location of the schema?
Of course building web-services.xml manually is not the first
thing to try, but since the contents are documented and since
it gives the best control over the process, it makes sense.
Maybe you are looking for
-
How do I connect my MacBook Pro to an LCD TV (with HDMI and S-Video ports)?
How do I connect my MacBook Pro to an LCD TV (with HDMI and S-Video ports)? I assume I would need to use the DVI to Video adapter that came with my computer to connect to my LCD tv. I'm just not sure which port I should use on the TV. The HDMI por
-
Search help for a field in table control based on another field value
Hi, I want to attach the Search help for a field in table control based on another field value. Please help me asap. Will be highly rewarded
-
How can i change my password if i forgot it?
i forgot my password and i dont know a way to reset it with out the cd..
-
Hi Experts, Last week, I encountered an odd case at my customer SBO application that I met for the first time. Sometimes, when he adds a document as Invoice the document is created but the journal entry is created twice. The both journal e
-
Hi Is there a way to password protect the website in iweb 12?