Dbms_xmlschema.registeruri
Hi,
This is a newbie question.
I am trying to register a schema that I have in a file in a local file system, so I tried just giving the pathname as
the uri argument to dbms_xmlschema.registeruri, but I get this error:
ORA-31001: Invalid resource handle or path name
"/export/home/phitchma/src/edsys/xml/wpi.xsd"
ORA-06512: at "SYS.XDBURITYPE", line 45
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 163
ORA-06512: at line 3
Please could someone give me a pointer as to how I am supposed to make a proper call to registeruri.
Thanks
Pete
XML DB repository is automatically installe as part of XML DB. You can FTP to it on port 2100
EG
C:\Documents and Settings\MDRAKE>ftp
ftp> open localhost 2100
Connected to mdrake-lap.
220 mdrake-lap FTP Server (Oracle XML DB/Oracle9i Enterprise Edition Release 9.2
.0.1.0 - Production) ready.
User (mdrake-lap:(none)): scott
331 pass required for SCOTT
Password:
230 SCOTT logged in
ftp> cd public
250 CWD Command successful
ftp> put testcase.xsd
The alter session... will create a trace file in udump with SQL code for the type and tables that were created by the registerSchema/registerURI call. Make no difference to the functionality, useful when debugging problems...
Similar Messages
-
Dbms_xmlschema's automatic type generation
Hi,
I would like to import XML documents in Oracle 9i Release 2 which contain a structure like this:
<TEST>
<TEST/>
<TEST/>
</TEST>
I am using the following schema definition:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://www.informatik.hu-berlin.de/~vitt/test"
xmlns:t="http://www.informatik.hu-berlin.de/~vitt/test"
>
<xs:complexType name="C_TEST">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="t:TEST" />
</xs:sequence>
</xs:complexType>
<xs:element name="TEST" type="t:C_TEST"/>
</xs:schema>
I am importing this schema using PL/SQL's DBMS_XMLSCHEMA.registerURI with the default options, i.e. automatic type and table generation turned on. Unfortunately, this does not quite work as expected. If I ask SQL*Plus to describe the created table, Oracle disconnects:
SQL> describe TEST4711_TAB
ERROR:
ORA-03113: end-of-file on communication channel
Describing the created types shows that something went wrong:
SQL> describe C_TEST4710_T
C_TEST4710_T is NOT FINAL
Name Null? Type
SYS_XDBPD$ XDB.XDB$RAW_LIST_T
TEST REF OF XMLTYPE
SQL> describe TEST4712_COLL
TEST4712_COLL VARRAY(2147483647) OF C_TEST4710_T
TEST4712_COLL is NOT FINAL
Name Null? Type
SYS_XDBPD$ XDB.XDB$RAW_LIST_T
TEST REF OF XMLTYPE
As far as I understand, the TEST element of C_TEST4710_T should be of the TEST4712_COLL type, not simply a REF OF XMLTYPE, as there may be more than one TEST XML elements inside a TEST element.
How can I get around this problem?
TIA,
ThorstenHi,
What version of Oracle are you using?9.2.0.1.0
Have you looked at your server to see if the Oracle
instance is creating any trace or dump files?The DESCRIBE command mentioned in my original post results in the following written to the alert_lehre.log file:
Mon Aug 30 16:59:57 2004
Errors in file /oracle/lehre/admin/lehre/udump/lehre_ora_7673.trc:
ORA-07445: exception encountered: core dump [qmtAddProperty()+783] [SIGSEGV] [Address not mapped to object] [0x29] [] []
Currently, I do not have access to the trace file, though.
Have you tried a different version of SQLplus just to
see if it does the describe?No. However, I get the same error (and the same alert.log entry) when I try to insert a sample XML file into the table, as well from SQLplus as from a third-party tool using OCI.
I seem to have found a workaround now -- a slight reformulation of the XML Schema definition appears to make Oracle create a correct type definition:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://www.informatik.hu-berlin.de/~vitt/test"
xmlns:t="http://www.informatik.hu-berlin.de/~vitt/test"
>
<xs:complexType name="C_TEST">
<xs:sequence>
<!-- old: <xs:element minOccurs="0" maxOccurs="unbounded" ref="t:TEST" /> -->
<xs:element minOccurs="0" maxOccurs="unbounded" name="TEST" type="t:C_TEST"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TEST" type="t:C_TEST"/>
</xs:schema>
SQL> describe C_TEST6847_T;
C_TEST6847_T is NOT FINAL
Name Null? Type
SYS_XDBPD$ XDB.XDB$RAW_LIST_T
TEST XDB.XDB$XMLTYPE_REF_LIST_T
-- Thorsten -
Ora-00600 error when registering xsd with large enumeration
I am trying to register the xsd:
http://212.130.77.78/StandatWS/StandatXSD.asmx/GetSchema?SchemaFile=std00019.xsd
It contains a very large enumerated type like this:
<xsd:simpleType name="std00019">
<xsd:annotation>
<xsd:documentation>Stofparametre</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="0000">
<xsd:annotation>
<xsd:documentation></xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="0001">
<xsd:annotation>
<xsd:documentation>Syn</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
The file is more than 7000 lines of xml. If I try to cut it down to less than 4000 lines or so, then I can register it. Otherwise it give me an error like this:
1 begin
2 dbms_xmlschema.registerURI(
3 'http://212.130.77.78/StandatWS/StandatXSD.asmx/GetSchema?SchemaFile=std00019.xsd',
4 'http://212.130.77.78/StandatWS/StandatXSD.asmx/GetSchema?SchemaFile=std00019.xsd'
5 );
6* end;
SQL> /
begin
FEJL i linie 1:
ORA-00600: intern fejlkode, argumenter: [qmxiCreateColl2], [11], [], [], [],
ORA-06512: ved "XDB.DBMS_XMLSCHEMA_INT", linje 0
ORA-06512: ved "XDB.DBMS_XMLSCHEMA", linje 185
ORA-06512: ved linje 2
I am using 9.2.0.6.0
Do you know if there is a maximum length of an enumeration in oracle?If you cannot post the schema please open a itar with oralce support so that the schema can be uploaded.
-
XML registration problem In Oracle
Hi Friends,
First of all thanks in advance for reading my post. Also, congratulate you all to this modified forum.
AS redirected from Oracle SQL/PLSQL forum i've to post it here once again. Sorry for the duplicate posting in this forum. :(
My main objective to publish XML through oracle by using some external dtd. I'm new to this - so don't have any clear idea regarding this. I've prepared one xml file using some dtd. Here are the details -
OE>>
OE>>select * from v$version;
BANNER
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
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:03.41
OE>>And, dtd script is as follows -
Name of the dtd is StandardInterfaces.xsd
<!DOCTYPE EmpSchedule_V2 [
<!ELEMENT EmpSchedule_V2 (period+, EmployeeList+) >
<!ELEMENT period (start,end) >
<!ELEMENT start (#PCDATA) >
<!ELEMENT end (#PCDATA) >
<!ELEMENT EmployeeList (emp)+ >
<!ELEMENT emp (Employee_ID,First,Sal,HireDate) >
<!ELEMENT Employee_ID (#PCDATA) >
<!ELEMENT First (#PCDATA) >
<!ELEMENT Sal (#PCDATA) >
<!ELEMENT HireDate (#PCDATA) >
]>And, the xml is as follows -
Name of the xml is - emp.xml
<?xml version="1.0" encoding= "UTF-8" ?>
<EmpSchedule_V2 xmlns= "http://localhost/satid/StandardInterfaces.xsd" >
<period>
<start>2006-03-12Z</start>
<end>2006-03-15Z</end>
</period>
<EmployeeList>
<emp>
<Employee_ID>7369</Employee_ID>
<First>Raja</First>
<Sal>28000</Sal>
<HireDate>2006-03-12Z</HireDate>
</emp>
</EmployeeList>
</EmpSchedule_V2>I've configured my IIS Server 7.0 in my pc.
And, when i'm executing like -
http://localhost/satid/emp.xmlWhere satid is the virtual directory in the IIS Server - it is showing the xml. The actual path is - E:\public\schemas .
Now, if i want to register it from oracle oe schema which has all the required privs - is throwing some error message.
GRANT dba, xdbadmin TO OE;And, now i've tried almost all of the given technique, but unable to proceed any further.
BEGIN
DBMS_XMLSCHEMA.registerURI(
'http://localhost/satid/StandardInterfaces.xsd',
'/satid/StandardInterfaces.xsd',
LOCAL=>TRUE,
GENTYPES=>TRUE,
GENBEAN=>FALSE,
GENTABLES=>TRUE
END;or,
DECLARE
v_return BOOLEAN;
BEGIN
v_return := dbms_xdb.createFolder('/satid/');
COMMIT;
END;And,
BEGIN
DBMS_XMLSchema.registerSchema(
schemaurl=>'http://localhost/satid/StandardInterfaces.xsd',
schemadoc=>sys.UriFactory.getUri('/satid/StandardInterfaces.xsd')
END; In the given two cases, both the server(IIS Server And OC4J) is running. I've checked it by the following command -
http://Sat-PC:5560/
http://localhost/satid/And, the error comes as -
OE>BEGIN
2 DBMS_XMLSchema.registerSchema(
3 schemaurl=>'http://localhost/satid/StandardInterfaces.xsd',
4 schemadoc=>sys.UriFactory.getUri('/satid/StandardInterfaces.xsd'));
5 END;
6 /
BEGIN
ERROR at line 1:
ORA-31001: Invalid resource handle or path name "/satid/StandardInterfaces.xsd"
ORA-06512: at "SYS.XDBURITYPE", line 4
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 167
ORA-06512: at line 2
Elapsed: 00:00:01.03
OE>
OE>
OE>DECLARE
2 v_return BOOLEAN;
3 BEGIN
4 v_return := dbms_xdb.createFolder('/satid/');
5 COMMIT;
6 END;
7 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:08.42
OE>
OE>
OE>BEGIN
2 DBMS_XMLSchema.registerSchema(
3 schemaurl=>'http://localhost/satid/StandardInterfaces.xsd',
4 schemadoc=>sys.UriFactory.getUri('/satid/StandardInterfaces.xsd'));
5 END;
6 /
BEGIN
ERROR at line 1:
ORA-31001: Invalid resource handle or path name "/satid/StandardInterfaces.xsd"
ORA-06512: at "SYS.XDBURITYPE", line 4
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 167
ORA-06512: at line 2
Elapsed: 00:00:00.00
OE>
OE>Now, my question is - will i have to configure OC4J? If yes, can anyone point me the exact document. I've tried to find over internet. But, so much content come up with this topic - that makes me more confused.
In other case, can anyone tell me how to use IIS Server 7.0 in this regard?
Or, if you have any other suggestion kindly share that with me.
Thanks for being so patience to read my post. I'll be waiting for your reply.
Regards.Hi Frinds,
I've tried in this way to register one customised XML schema. But, unable to register.
OE>>
OE>>CREATE OR REPLACE PROCEDURE XML_REG
2 IS
3 l_temp clob;
4 l_text varchar2(900);
5 BEGIN
6 l_temp := httpuritype('http://localhost/satyakid/StandardInterfaces.xsd').getclob;
7 l_text := substr(l_temp, 1, 900);
8 dbms_output.put_line(l_text);
9
10 DBMS_XMLSCHEMA.registerSchema('StandardInterfaces.xsd', l_text);
11 END XML_REG;
12 /
Procedure created.
Elapsed: 00:00:00.23
OE>>
OE>>
OE>>exec XML_REG;
<!DOCTYPE EmpSchedule_V2 [
<!ELEMENT EmpSchedule_V2 (period+, EmployeeList+) >
<!ELEMENT period (start,end) >
<!ELEMENT start (#PCDATA) >
<!ELEMENT end (#PCDATA) >
<!ELEMENT EmployeeList (emp)+ >
<!ELEMENT emp (Employee_ID,First,Sal,HireDate) >
<!ELEMENT Employee_ID (#PCDATA) >
<!ELEMENT First (#PCDATA) >
<!ELEMENT Sal (#PCDATA) >
<!ELEMENT HireDate (#PCDATA) >
]>
BEGIN XML_REG; END;
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00007: unexpected end-of-file encountered
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
ORA-06512: at "OE.XML_REG", line 10
ORA-06512: at line 1
Elapsed: 00:00:00.22
OE>>
OE>>
OE>>
OE>>select * from v$version;
BANNER
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
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.84
OE>>Where am i missing?
Please advice.
Regards. -
Newbie mistake, but I can't find it, help appreciated on XML import
I'm sure I'm making a newbie mistake but I can't find it. If someone could tell me what I'm doing wrong I would appreciate it.
Step one works (i'm logged as user xdb on the database):
SQL*Plus: Release 10.1.0.2.0 - Production on Wed Dec 20 13:47:53 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> Declare
2 ignore boolean;
3 begin
4 ignore :=dbms_xdb.createFolder('/datamart');
5 ignore :=dbms_xdb.createFolder('/datamart/CustomerCare');
6 ignore :=dbms_xdb.createFolder('/datamart/CustomerCare/xsd');
7 ignore :=dbms_xdb.createFolder('/datamart/CustomerCare/xml');
8 commit ;
9 end;
10 /
PL/SQL procedure successfully completed.
Step two works, where I drag and drop via Windows Explorer my xsd file into http://d01db:8085/datamart/CustomerCare/xsd. It has a size of about 7k or so. Again, when connecting to the respository with Windows Explorer, I'm logging in as xdb.
Step three works, where I register the schema that I just put into the XML repository. Still logged into SQLPlus as xdb.
SQL> begin
2 dbms_xmlschema.registerURI
3 (schemaURL => 'http://xmlns.oracle.com/xdb/Steton.xsd'
4 ,schemaDocURI => '/datamart/CustomerCare/xsd/Steton.xsd'
5 ,genTables => true
6 ) ;
7 end;
8 /
PL/SQL procedure successfully completed.
SQL> describe STETONAUDITRESULTS;
Name Null? Type
TABLE of SYS.XMLTYPE(XMLSchema "http://xmlns.oracle.com/xdb/Steton.xsd" Element "StetonAuditResults"
SQL>
By the way, here is the schema:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" id="StetonAuditResults" xdb:storeVarrayAsTable="true">
<xs:element name="StetonAuditResults" xdb:defaultTable="STETONAUDITRESULTS">
<xs:complexType>
<xs:sequence>
<xs:element name="Control">
<xs:complexType>
<xs:sequence>
<xs:element name="ResultCount" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AuditResults">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="AuditResult">
<xs:complexType>
<xs:sequence>
<xs:element name="AuditResultGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="AuditGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="AuditName" type="xs:string" minOccurs="0"/>
<xs:element name="AccountID" type="xs:string" minOccurs="0"/>
<xs:element name="AccountName" type="xs:string" minOccurs="0"/>
<xs:element name="AuditorID" type="xs:string" minOccurs="0"/>
<xs:element name="AuditorName" type="xs:string" minOccurs="0"/>
<xs:element name="AcctRepName" type="xs:string" minOccurs="0"/>
<xs:element name="AuditTypeID" type="xs:int" minOccurs="0"/>
<xs:element name="AuditTypeName" type="xs:string" minOccurs="0"/>
<xs:element name="DivisionID" type="xs:int" minOccurs="0"/>
<xs:element name="FaxBack" type="xs:string" minOccurs="0"/>
<xs:element name="EMailBack" type="xs:string" minOccurs="0"/>
<xs:element name="StartDateLocal" type="xs:dateTime" minOccurs="0"/>
<xs:element name="StartDateUTC" type="xs:dateTime" minOccurs="0"/>
<xs:element name="EndDate" type="xs:dateTime" minOccurs="0"/>
<xs:element name="UploadDate" type="xs:dateTime" minOccurs="0"/>
<xs:element name="ProcessDate" type="xs:dateTime" minOccurs="0"/>
<xs:element name="ApplicationVersion" type="xs:string" minOccurs="0"/>
<xs:element name="AuditResultNotes" type="xs:string" minOccurs="0"/>
<xs:element name="AuditorSignature" type="xs:base64Binary" minOccurs="0"/>
<xs:element name="AcctRepSignature" type="xs:base64Binary" minOccurs="0"/>
<xs:element name="InitialAuditResultGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="RecordType" type="xs:string" minOccurs="0"/>
<xs:element name="ModifiedDate" type="xs:dateTime" minOccurs="0"/>
<xs:element name="CategoryResults">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="CategoryResult">
<xs:complexType>
<xs:sequence>
<xs:element name="AuditResultGlobalID" type="xs:string"/>
<xs:element name="CategoryGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="CategoryName" type="xs:string" minOccurs="0"/>
<xs:element name="CategoryReference" type="xs:string" minOccurs="0"/>
<xs:element name="CategoryResultNotes" type="xs:string" minOccurs="0"/>
<xs:element name="QuestionResults">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="QuestionResult">
<xs:complexType>
<xs:sequence>
<xs:element name="AuditResultGlobalID" type="xs:string"/>
<xs:element name="CategoryGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="QuestionGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="QuestionText" type="xs:string" minOccurs="0"/>
<xs:element name="QuestionReference" type="xs:string" minOccurs="0"/>
<xs:element name="ChoiceGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="ChoiceText" type="xs:string" minOccurs="0"/>
<xs:element name="ChoicePointsPossible" type="xs:double" minOccurs="0"/>
<xs:element name="ChoicePointsEarned" type="xs:double" minOccurs="0"/>
<xs:element name="QuestionResultNotes" type="xs:string" minOccurs="0"/>
<xs:element name="QuestionCommentResults">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="QuestionCommentResult">
<xs:complexType>
<xs:sequence>
<xs:element name="AuditResultGlobalID" type="xs:string"/>
<xs:element name="CategoryGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="QuestionGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="QuestionCommentGlobalID" type="xs:string" minOccurs="0"/>
<xs:element name="QuestionCommentText" type="xs:string" minOccurs="0"/>
<xs:element name="QuestionCommentResultNotes" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:key name="StetonAuditResultsKey_AuditResult">
<xs:selector xpath=".//AuditResult"/>
<xs:field xpath="AuditResultGlobalID"/>
</xs:key>
<xs:key name="StetonAuditResultsKey_CategoryResult">
<xs:selector xpath=".//CategoryResult"/>
<xs:field xpath="AuditResultGlobalID"/>
<xs:field xpath="CategoryGlobalID"/>
</xs:key>
<xs:key name="StetonAuditResultsKey_QuestionResult">
<xs:selector xpath=".//QuestionResult"/>
<xs:field xpath="AuditResultGlobalID"/>
<xs:field xpath="CategoryGlobalID"/>
<xs:field xpath="QuestionGlobalID"/>
</xs:key>
<xs:keyref name="AuditResultCategoryResult" refer="StetonAuditResultsKey_AuditResult">
<xs:selector xpath=".//CategoryResult"/>
<xs:field xpath="AuditResultGlobalID"/>
</xs:keyref>
<xs:keyref name="CategoryResultQuestionResult" refer="StetonAuditResultsKey_CategoryResult">
<xs:selector xpath=".//QuestionResult"/>
<xs:field xpath="AuditResultGlobalID"/>
<xs:field xpath="CategoryGlobalID"/>
</xs:keyref>
<xs:key name="StetonAuditResultsKey_QuestionCommentResult">
<xs:selector xpath=".//QuestionCommentResult"/>
<xs:field xpath="AuditResultGlobalID"/>
<xs:field xpath="CategoryGlobalID"/>
<xs:field xpath="QuestionGlobalID"/>
<xs:field xpath="QuestionCommentGlobalID"/>
</xs:key>
<xs:keyref name="QuestionResultlQuestionCommentResult" refer="StetonAuditResultsKey_QuestionResult">
<xs:selector xpath=".//QuestionCommentResult"/>
<xs:field xpath="AuditResultGlobalID"/>
<xs:field xpath="CategoryGlobalID"/>
<xs:field xpath="QuestionGlobalID"/>
</xs:keyref>
</xs:element>
</xs:schema>
Step four is where I have problems. I'm using Windows Explorer to drag and drop an XML instance document into http://d01db:8085/datamart/CustomerCare/xml while logged into the repository as xdb.
Here's some of the test file that I'm using.
<?xml version="1.0" standalone="no"?>
<StetonAuditResults xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/xdb/Steton.xsd">
<Control>
<ResultCount>112</ResultCount>
</Control>
</StetonAuditResults>
Note, the test XML file is 427k in size and I can't post it here. There is a lot of data between the </Control> tag and the </StetonAuditResults> tag.
During the Drag and Drop I get the message "An error occured copying some or all of the selected files."
My first suspicision was that the XML document failed validation. So I changed the namespace line to
<StetonAuditResults xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="H:\StetonCustomerCare\Steton.xsd">
I then started Altova's XMLSpy and the XML document is well formed and it validates.
I then changed the namespace line in the XML document to
<StetonAuditResults xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
and I could use Windows Explorer to drag and drop the file into the XML DB respository of http://d01db:8085/datamart/CustomerCare/xml, but this version doesn't shred the XML document into the SQL tables that I need.
I then deleted the file from the repository.
I then changed the namespace line in the XML document to <StetonAuditResults xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Steton.xsd">
because someone told me to, and because I have seen an FAQ in this forum suggest this approach. I can copy using Windows Explorer into the http://d01db:8085/datamart/CustomerCare/xml. However, the file size via Windows Explorer is 427kb. Also "select count(*) from STETONAUDITRESULTS;" returns zero.
What am I doing wrong?
My background, I'm not an Oracle DBA, but I can code SQL select statements. So if I need to do something involving Oracle DBA privileges, please document it well. I will have to get the DBA's involved.
My goal is import this XML file so that I can use it as a feed for a datamart. The first XML file in text format is 27mb.
Thanks again for reading this far.I guess you have a namespace issue...(schema registered is not the same as the layout in your XML instance/doc, therefor will not be inserted). You have access to the XDB account...thats all you need (more then enough, i mean, you don't need dba privs).
on the FAQ Mark explains...
Why is the size of my XML document 0 bytes when viewed via HTTP or FTP ?
Posted: Sep 1, 2006 6:07 AM in response to: mdrake in response to: mdrake
When a schema based XML is loaded into the XML DB repository via HTTP, FTP or dbms_xdb.createResource() the document is converted from a textual serialization of XML into a series of objects. At this point the size of the document becomes (a) meaningless and (b) difficult / expensive to calculate.
The first question is what is meant by the size of the document once it has been stored using object-based persistence ? There are two possibilities
(1) The number of bytes used the text serialization of the XML document.
(2) The number of bytes required to store the internal object representation of the document. In this case the does the size include the bytes used for keys, refs indexes, etc ?
Since (1) would be expensive to maintain as the document is updated (particularly in the case of partial updates) and (2) is expensive to calculate on a document by document basis, XML DB shows the size of all schema based XML documents as 'zero' bytes.
Note that this also applies to the size of the registered version of XML Schema documents, which can be found in the folder tree /sys/schemas.
If a schema based XML document is loaded into the repository and does not appear as 0 bytes long when viewed via HTTP or WebDAV this means that XML DB was unable to identifiy the XML schema the XML document is associated with.
Note that immediatlely after uploading a document in Windows Explorer using the WebDAV protocol the size of the document will be non-zero, since the original size is cached by the Microsoft WebDAV client. However once a refresh of the folder is performed in Windows Explorer the size should be shown as zero if the document was recognized as a schema based document. -
ORA-07445 in the alert log when inserting into table with XMLType column
I'm trying to insert an xml-document into a table with a schema-based XMLType column. When I try to insert a row (using plsql-developer) - oracle is busy for a few seconds and then the connection to oracle is lost.
Below you''ll find the following to recreate the problem:
a) contents from the alert log
b) create script for the table
c) the before-insert trigger
d) the xml-schema
e) code for registering the schema
f) the test program
g) platform information
Alert Log:
Fri Aug 17 00:44:11 2007
Errors in file /oracle/app/oracle/product/10.2.0/db_1/admin/dntspilot2/udump/dntspilot2_ora_13807.trc:
ORA-07445: exception encountered: core dump [SIGSEGV] [Address not mapped to object] [475177] [] [] []
Create script for the table:
CREATE TABLE "DNTSB"."SIGNATURETABLE"
( "XML_DOCUMENT" "SYS"."XMLTYPE" ,
"TS" TIMESTAMP (6) WITH TIME ZONE NOT NULL ENABLE
) XMLTYPE COLUMN "XML_DOCUMENT" XMLSCHEMA "http://www.sporfori.fo/schemas/www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd" ELEMENT "Object"
ROWDEPENDENCIES ;
Before-insert trigger:
create or replace trigger BIS_SIGNATURETABLE
before insert on signaturetable
for each row
declare
-- local variables here
l_sigtab_rec signaturetable%rowtype;
begin
if (:new.xml_document is not null) then
:new.xml_document.schemavalidate();
end if;
l_sigtab_rec.xml_document := :new.xml_document;
end BIS_SIGNATURETABLE2;
XML-Schema (xmldsig-core-schema.xsd):
=====================================================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- Schema for XML Signatures
http://www.w3.org/2000/09/xmldsig#
$Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $
Copyright 2001 The Internet Society and W3C (Massachusetts Institute
of Technology, Institut National de Recherche en Informatique et en
Automatique, Keio University). All Rights Reserved.
http://www.w3.org/Consortium/Legal/
This document is governed by the W3C Software License [1] as described
in the FAQ [2].
[1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
[2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xdb="http://xmlns.oracle.com/xdb"
targetNamespace="http://www.w3.org/2000/09/xmldsig#" version="0.1" elementFormDefault="qualified">
<!-- Basic Types Defined for Signatures -->
<xs:simpleType name="CryptoBinary">
<xs:restriction base="xs:base64Binary">
</xs:restriction>
</xs:simpleType>
<!-- Start Signature -->
<xs:element name="Signature" type="ds:SignatureType"/>
<xs:complexType name="SignatureType">
<xs:sequence>
<xs:element ref="ds:SignedInfo"/>
<xs:element ref="ds:SignatureValue"/>
<xs:element ref="ds:KeyInfo" minOccurs="0"/>
<xs:element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Id" type="xs:ID" use="optional"/>
</xs:complexType>
<xs:element name="SignatureValue" type="ds:SignatureValueType"/>
<xs:complexType name="SignatureValueType">
<xs:simpleContent>
<xs:extension base="xs:base64Binary">
<xs:attribute name="Id" type="xs:ID" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- Start SignedInfo -->
<xs:element name="SignedInfo" type="ds:SignedInfoType"/>
<xs:complexType name="SignedInfoType">
<xs:sequence>
<xs:element ref="ds:CanonicalizationMethod"/>
<xs:element ref="ds:SignatureMethod"/>
<xs:element ref="ds:Reference" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Id" type="xs:ID" use="optional"/>
</xs:complexType>
<xs:element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
<xs:complexType name="CanonicalizationMethodType" mixed="true">
<xs:sequence>
<xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
<!-- (0,unbounded) elements from (1,1) namespace -->
</xs:sequence>
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
</xs:complexType>
<xs:element name="SignatureMethod" type="ds:SignatureMethodType"/>
<xs:complexType name="SignatureMethodType" mixed="true">
<xs:sequence>
<xs:element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
<!-- (0,unbounded) elements from (1,1) external namespace -->
</xs:sequence>
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
</xs:complexType>
<!-- Start Reference -->
<xs:element name="Reference" type="ds:ReferenceType"/>
<xs:complexType name="ReferenceType">
<xs:sequence>
<xs:element ref="ds:Transforms" minOccurs="0"/>
<xs:element ref="ds:DigestMethod"/>
<xs:element ref="ds:DigestValue"/>
</xs:sequence>
<xs:attribute name="Id" type="xs:ID" use="optional"/>
<xs:attribute name="URI" type="xs:anyURI" use="optional"/>
<xs:attribute name="Type" type="xs:anyURI" use="optional"/>
</xs:complexType>
<xs:element name="Transforms" type="ds:TransformsType"/>
<xs:complexType name="TransformsType">
<xs:sequence>
<xs:element ref="ds:Transform" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Transform" type="ds:TransformType"/>
<xs:complexType name="TransformType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any namespace="##other" processContents="lax"/>
<!-- (1,1) elements from (0,unbounded) namespaces -->
<xs:element name="XPath" type="xs:string"/>
</xs:choice>
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
</xs:complexType>
<!-- End Reference -->
<xs:element name="DigestMethod" type="ds:DigestMethodType"/>
<xs:complexType name="DigestMethodType" mixed="true">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
</xs:complexType>
<xs:element name="DigestValue" type="ds:DigestValueType"/>
<xs:simpleType name="DigestValueType">
<xs:restriction base="xs:base64Binary"/>
</xs:simpleType>
<!-- End SignedInfo -->
<!-- Start KeyInfo -->
<xs:element name="KeyInfo" type="ds:KeyInfoType"/>
<xs:complexType name="KeyInfoType" mixed="true">
<xs:choice maxOccurs="unbounded">
<xs:element ref="ds:KeyName"/>
<xs:element ref="ds:KeyValue"/>
<xs:element ref="ds:RetrievalMethod"/>
<xs:element ref="ds:X509Data"/>
<xs:element ref="ds:PGPData"/>
<xs:element ref="ds:SPKIData"/>
<xs:element ref="ds:MgmtData"/>
<xs:any processContents="lax" namespace="##other"/>
<!-- (1,1) elements from (0,unbounded) namespaces -->
</xs:choice>
<xs:attribute name="Id" type="xs:ID" use="optional"/>
</xs:complexType>
<xs:element name="KeyName" type="xs:string"/>
<xs:element name="MgmtData" type="xs:string"/>
<xs:element name="KeyValue" type="ds:KeyValueType"/>
<xs:complexType name="KeyValueType" mixed="true">
<xs:choice>
<xs:element ref="ds:DSAKeyValue"/>
<xs:element ref="ds:RSAKeyValue"/>
<xs:any namespace="##other" processContents="lax"/>
</xs:choice>
</xs:complexType>
<xs:element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
<xs:complexType name="RetrievalMethodType">
<xs:sequence>
<xs:element ref="ds:Transforms" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="URI" type="xs:anyURI"/>
<xs:attribute name="Type" type="xs:anyURI" use="optional"/>
</xs:complexType>
<!-- Start X509Data -->
<xs:element name="X509Data" type="ds:X509DataType"/>
<xs:complexType name="X509DataType">
<xs:sequence maxOccurs="unbounded">
<xs:choice>
<xs:element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
<xs:element name="X509SKI" type="xs:base64Binary"/>
<xs:element name="X509SubjectName" type="xs:string"/>
<xs:element name="X509Certificate" type="xs:base64Binary"/>
<xs:element name="X509CRL" type="xs:base64Binary"/>
<xs:any namespace="##other" processContents="lax"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="X509IssuerSerialType">
<xs:sequence>
<xs:element name="X509IssuerName" type="xs:string"/>
<xs:element name="X509SerialNumber" type="xs:integer"/>
</xs:sequence>
</xs:complexType>
<!-- End X509Data -->
<!-- Begin PGPData -->
<xs:element name="PGPData" type="ds:PGPDataType"/>
<xs:complexType name="PGPDataType">
<xs:choice>
<xs:sequence>
<xs:element name="PGPKeyID" type="xs:base64Binary"/>
<xs:element name="PGPKeyPacket" type="xs:base64Binary" minOccurs="0"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:sequence>
<xs:element name="PGPKeyPacket" type="xs:base64Binary"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:choice>
</xs:complexType>
<!-- End PGPData -->
<!-- Begin SPKIData -->
<xs:element name="SPKIData" type="ds:SPKIDataType"/>
<xs:complexType name="SPKIDataType">
<xs:sequence maxOccurs="unbounded">
<xs:element name="SPKISexp" type="xs:base64Binary"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<!-- End SPKIData -->
<!-- End KeyInfo -->
<!-- Start Object (Manifest, SignatureProperty) -->
<xs:element name="Object" type="ds:ObjectType"/>
<xs:complexType name="ObjectType" mixed="true">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:any namespace="##any" processContents="lax"/>
</xs:sequence>
<xs:attribute name="Id" type="xs:ID" use="optional"/>
<xs:attribute name="MimeType" type="xs:string" use="optional"/> <!-- add a grep facet -->
<xs:attribute name="Encoding" type="xs:anyURI" use="optional"/>
</xs:complexType>
<xs:element name="Manifest" type="ds:ManifestType"/>
<xs:complexType name="ManifestType">
<xs:sequence>
<xs:element ref="ds:Reference" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Id" type="xs:ID" use="optional"/>
</xs:complexType>
<xs:element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
<xs:complexType name="SignaturePropertiesType">
<xs:sequence>
<xs:element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Id" type="xs:ID" use="optional"/>
</xs:complexType>
<xs:element name="SignatureProperty" type="ds:SignaturePropertyType"/>
<xs:complexType name="SignaturePropertyType" mixed="true">
<xs:choice maxOccurs="unbounded">
<xs:any namespace="##other" processContents="lax"/>
<!-- (1,1) elements from (1,unbounded) namespaces -->
</xs:choice>
<xs:attribute name="Target" type="xs:anyURI" use="required"/>
<xs:attribute name="Id" type="xs:ID" use="optional"/>
</xs:complexType>
<!-- End Object (Manifest, SignatureProperty) -->
<!-- Start Algorithm Parameters -->
<xs:simpleType name="HMACOutputLengthType">
<xs:restriction base="xs:integer"/>
</xs:simpleType>
<!-- Start KeyValue Element-types -->
<xs:element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
<xs:complexType name="DSAKeyValueType">
<xs:sequence>
<xs:sequence minOccurs="0">
<xs:element name="P" type="ds:CryptoBinary"/>
<xs:element name="Q" type="ds:CryptoBinary"/>
</xs:sequence>
<xs:element name="G" type="ds:CryptoBinary" minOccurs="0"/>
<xs:element name="Y" type="ds:CryptoBinary"/>
<xs:element name="J" type="ds:CryptoBinary" minOccurs="0"/>
<xs:sequence minOccurs="0">
<xs:element name="Seed" type="ds:CryptoBinary"/>
<xs:element name="PgenCounter" type="ds:CryptoBinary"/>
</xs:sequence>
</xs:sequence>
</xs:complexType>
<xs:element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
<xs:complexType name="RSAKeyValueType">
<xs:sequence>
<xs:element name="Modulus" type="ds:CryptoBinary"/>
<xs:element name="Exponent" type="ds:CryptoBinary"/>
</xs:sequence>
</xs:complexType>
<!-- End KeyValue Element-types -->
<!-- End Signature -->
</xs:schema>
===============================================================================
Code for registering the xml-schema
begin
dbms_xmlschema.deleteSchema('http://xmlns.oracle.com/xdb/schemas/DNTSB/www.sporfori.fo/schemas/www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd',
dbms_xmlschema.DELETE_CASCADE_FORCE);
end;
begin
DBMS_XMLSCHEMA.REGISTERURI(
schemaurl => 'http://www.sporfori.fo/schemas/www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd',
schemadocuri => 'http://www.sporfori.fo/schemas/www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd',
local => TRUE,
gentypes => TRUE,
genbean => FALSE,
gentables => TRUE,
force => FALSE,
owner => 'DNTSB',
options => 0);
end;
Test program
-- Created on 17-07-2006 by EEJ
declare
XML_TEXT3 CLOB := '<Object xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignatureProperties>
<SignatureProperty Target="">
<Timestamp xmlns="http://www.sporfori.fo/schemas/dnts/general/2006/11/14">2007-05-10T12:00:00-05:00</Timestamp>
</SignatureProperty>
</SignatureProperties>
</Object>';
xmldoc xmltype;
begin
xmldoc := xmltype(xml_text3);
insert into signaturetable
(xml_document, ts)
values
(xmldoc, current_timestamp);
end;
Platform information
Operating system:
-bash-3.00$ uname -a
SunOS dntsdb 5.10 Generic_125101-09 i86pc i386 i86pc
SQLPlus:
SQL*Plus: Release 10.2.0.3.0 - Production on Fri Aug 17 00:15:13 2007
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning and Data Mining options
Kind Regards,
EyðunYou should report this in a service request on http://metalink.oracle.com.
It is a shame that you put all the effort here to describe your problem, but on the other hand you can now also copy & paste the question to Oracle Support.
Because you are using 10.2.0.3; I am guessing that you have a valid service contract... -
KEY and KEYREFs support on XML DB
First of all, sorry for my english but I am a spanish researcher who have not been abroad too much :-).
I�m trying to use XML DB to store XML documents that represents UML models and the way I've choosed to map relationships in my schema is using KEY and KEYREFs. The fact is that It seems to me that XML DB does not use them whem it creates the different objects that results on the schema's load. Does XMLDB support the definitons of KEYs and KEYREFs in the schema?? If so, how does it do?? Defining constraints oon the objects created?? I suppose no, because the KEYs and KEYREFs are defined on 'complexTypes' and the Oracle's constraints goes to tables (not to object types).
I'm worling with the next schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="Kybele/MetaModel_Schema_All" targetNamespace="Kybele/MetaModel_Schema_All" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
<!-- En esta version, representaremos las relaciones usando atributos KEYs y KEYREFs
Ademas, en esta version mapeamos el metamodelo de UML por completo-->
<!-- En las anotaciones para XML DB usaremos el prefijo MMALL(MetaModelo Completo) -->
<!--******************** DECLARACION DE LOS ELEMENTOS DEL METAMODELO *********************-->
<xsd:element name="MetaModel" xdb:defaultTable="MMALL_METAMODELS_TABLE">
<xsd:complexType xdb:SQLType="MMALL_METAMODELS_TYPE">
<xsd:sequence>
<xsd:element name="ModelElements" type="ModelElement" maxOccurs="unbounded"/>
<xsd:element name="Dependencies" type="Dependency" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- Es en este punto donde definiremos las "PRIMARYKEYS"(KEYs) Y "FOREIGNKEYS"(KEYREFs) para simular relaciones -->
<!-- ************************************************************************************************* *-->
<!-- RELACIONES ModelElement - Dependency -->
<xsd:key name="Dependency_PK">
<xsd:selector xpath="Dependencies"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:key name="ModelElement_PK">
<xsd:selector xpath="ModelElements"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:keyref name="Requirement_FK" refer="Dependency_PK">
<xsd:selector xpath="ModelElements"/>
<xsd:field xpath="requirement"/>
</xsd:keyref>
<xsd:keyref name="Provision_FK" refer="Dependency_PK">
<xsd:selector xpath="ModelElements"/>
<xsd:field xpath="provision"/>
</xsd:keyref>
<xsd:keyref name="Client_FK" refer="ModelElement_PK">
<xsd:selector xpath="Dependencies"/>
<xsd:field xpath="client"/>
</xsd:keyref>
<xsd:keyref name="Supplier_FK" refer="ModelElement_PK">
<xsd:selector xpath="Dependencies"/>
<xsd:field xpath="supplier"/>
</xsd:keyref>
<!-- RELACIONES Generalization - GeneralizableElement -->
<xsd:key name="Generalization_PK">
<xsd:selector xpath="Generalization"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:key name="GeneralizableElement_PK">
<xsd:selector xpath="GeneralizableElement"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:keyref name="Subtype_FK" refer="GeneralizableElement_PK">
<xsd:selector xpath="Generalization"/>
<xsd:field xpath="subtype"/>
</xsd:keyref>
<xsd:keyref name="Type_FK" refer="GeneralizableElement_PK">
<xsd:selector xpath="Generalization"/>
<xsd:field xpath="type"/>
</xsd:keyref>
<xsd:keyref name="Generalization_FK" refer="GeneralizableElement_PK">
<xsd:selector xpath="GeneralizableElement"/>
<xsd:field xpath="generalization"/>
</xsd:keyref>
<xsd:keyref name="Specilization_FK" refer="GeneralizableElement_PK">
<xsd:selector xpath="GeneralizableElement"/>
<xsd:field xpath="specialization"/>
</xsd:keyref>
<!-- RELACIONES Classifier - AssociationEnd -->
<xsd:key name="Classifier_PK">
<xsd:selector xpath="Classifier"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:key name="AssociationEnd_PK">
<xsd:selector xpath="AssociationEnd"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:keyref name="AssociationEnd_FK" refer="AssociationEnd_PK">
<xsd:selector xpath="Classifier"/>
<xsd:field xpath="associationEnd"/>
</xsd:keyref>
<xsd:keyref name="Participant_FK" refer="AssociationEnd_PK">
<xsd:selector xpath="Classifier"/>
<xsd:field xpath="participant"/>
</xsd:keyref>
<xsd:keyref name="AssociationEnd_Type_FK" refer="Classifier_PK">
<xsd:selector xpath="AssociationEnd"/>
<xsd:field xpath="type"/>
</xsd:keyref>
<xsd:keyref name="AssociationEnd_Specification_FK" refer="Classifier_PK">
<xsd:selector xpath="AssociationEnd"/>
<xsd:field xpath="specification"/>
</xsd:keyref>
<!-- RELACIONES AssociatioEnd - Attribute -->
<xsd:keyref name="AttributeCompose_FK" refer="AssociationEnd_PK">
<xsd:selector xpath="Attribute"/>
<xsd:field xpath="associationEnd_member"/>
</xsd:keyref>
<!-- RELACIONES AssociatioEnd - Association -->
<xsd:keyref name="AssociationEndCompose_FK" refer="Association_PK">
<xsd:selector xpath="Association"/>
<xsd:field xpath="Association_member"/>
</xsd:keyref>
</xsd:element>
<!--***************************** DEFINICION DE TIPOS SIMPLES *****************************-->
<!-- TIPO ENUMERADO AGGREGATIONTYPE -->
<xsd:simpleType name="AggregationType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="none"/>
<xsd:enumeration value="aggregate"/>
<xsd:enumeration value="composite"/>
</xsd:restriction>
</xsd:simpleType>
<!-- TIPO ENUMERADO SCOPETYPE -->
<xsd:simpleType name="ScopeType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="instance"/>
<xsd:enumeration value="classifier"/>
</xsd:restriction>
</xsd:simpleType>
<!-- TIPO ENUMERADO MULTIPLICITYTYPE -->
<xsd:simpleType name="MultiplicityType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="0..1"/>
<xsd:enumeration value="1..1"/>
<xsd:enumeration value="0..N"/>
<xsd:enumeration value="1..N"/>
</xsd:restriction>
</xsd:simpleType>
<!-- TIPO ENUMERADO CHANGEABLETYPE -->
<xsd:simpleType name="ChangeableType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="none"/>
<xsd:enumeration value="frozen"/>
<xsd:enumeration value="add_only"/>
</xsd:restriction>
</xsd:simpleType>
<!--**************************** DEFINICION DE TIPOS COMPLEJOS **********************************************-->
<!-- TIPO COMPLEJO MODELELEMENT -->
<xsd:complexType name="ModelElement" xdb:SQLType="MMALL_ModelElement_Type">
<xsd:sequence>
<xsd:element name="nombre" type="xsd:string"/>
<!-- Subelementos para representar sus relaciones -->
<xsd:element name="requirement" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="provision" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- TIPO COMPLEJO DEPENDENCY -->
<xsd:complexType name="Dependency" xdb:SQLType="MMALL_Dependency_Type">
<xsd:complexContent>
<xsd:extension base="ModelElement">
<xsd:sequence>
<xsd:element name="description" type="xsd:string"/>
<!-- Subelementos para representar sus relaciones -->
<xsd:element name="client" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="supplier" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO GENERALIZATION -->
<xsd:complexType name="Generalization" xdb:SQLType="MMALL_Generalization_Type">
<xsd:complexContent>
<xsd:extension base="ModelElement">
<xsd:sequence>
<xsd:element name="discriminator" type="xsd:string"/>
<!-- Subelementos para representar sus relaciones -->
<xsd:element name="subtype" type="xsd:string"/>
<xsd:element name="supertype" type="xsd:string"/>
<!-- Al quitar minOccurs y maxOccurs obligamos a que siempre haya un (Y SOLO UNO)
subelemento 'subtype' y 'supertype' -->
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO NAMESPACE -->
<xsd:complexType name="NameSpace" xdb:SQLType="MMALL_NameSpace_Type">
<xsd:complexContent>
<xsd:extension base="ModelElement"/>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO GENERALIZABLEELEMENT -->
<xsd:complexType name="GeneralizableElement" xdb:SQLType="MMALL_GeneralizableElement_Type">
<xsd:complexContent>
<xsd:extension base="NameSpace">
<xsd:sequence>
<xsd:element name="isRoot" type="xsd:boolean"/>
<xsd:element name="isLeaf" type="xsd:boolean"/>
<xsd:element name="isAbstract" type="xsd:boolean"/>
<!-- Subelementos para representar sus relaciones -->
<xsd:element name="generalization" type="xsd:string"/>
<xsd:element name="specification" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO: ASSOCIATIONEND -->
<xsd:complexType name="AssociationEnd" xdb:SQLType="MMALL_ASSOCIATIONEND_TYPE">
<xsd:complexContent>
<xsd:extension base="ModelElement">
<xsd:sequence>
<xsd:element name="IsNavigable" type="xsd:boolean"/>
<xsd:element name="IsOrdered" type="xsd:boolean"/>
<xsd:element name="Aggregation" type="AggregationType"/>
<xsd:element name="Multiplicity" type="MultiplicityType" minOccurs="0"/>
<xsd:element name="Changeable" type="ChangeableType"/>
<xsd:element name="TargetScope" type="ScopeType"/>
<!-- Subelementos para representar las relaciones -->
<xsd:element name="Qualifier" type="Attribute" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Association_member" type="xsd:string"/>
<xsd:element name="Type" type="xsd:string"/>
<xsd:element name="Specification" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO CLASSIFIER -->
<xsd:complexType name="Classifier" xdb:SQLType="MMALL_CLASSIFIER_TYPE">
<xsd:complexContent>
<xsd:restriction base="GeneralizableElement">
<xsd:sequence>
<!-- Subelementos para representar las relaciones -->
<xsd:element name="AssociationEnd" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Participant" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO CLASS -->
<xsd:complexType name="Class" xdb:SQLType="MMALL_CLASS_TYPE">
<xsd:complexContent>
<xsd:extension base="Classifier"/>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO ATTRIBUTE -->
<xsd:complexType name="Attribute" xdb:SQLType="MMALL_ATTRIBUTE_TYPE">
<xsd:sequence>
<xsd:element name="associationEnd_member" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<!-- TIPO COMPLEJO ASSOCIATION -->
<xsd:complexType name="Association" xdb:SQLType="MMALL_ASSOCIATION_TYPE">
<xsd:complexContent>
<xsd:restriction base="GeneralizableElement">
<xsd:sequence>
<xsd:element name="connection" type="AssociationEnd" minOccurs="2" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
and when I try to load it into XMLDB it fails:
SQL> @registerSchema oe oe /home/OE/Metamodel_Schema_All.xsd "http://kybele.escet.urjc.es/ejemplos/x
ml_schema/Metamodel_Schema_All.xsd"
SQL> set echo on
SQL> connect &1/&[email protected]
Conectado.
SQL> alter session set events='31098 trace name context forever';
Sesi�n modificada.
SQL> begin
2 dbms_xmlschema.registeruri(
3 '&4',
4 '&3',
5 TRUE,TRUE,FALSE,TRUE);
6 end;
7 /
antiguo 3: '&4',
nuevo 3: 'http://kybele.escet.urjc.es/ejemplos/xml_schema/Metamodel_Schema_All.xsd',
antiguo 4: '&3',
nuevo 4: '/home/OE/Metamodel_Schema_All.xsd',
begin
ERROR en l�nea 1:
ORA-31154: invalid XML document
ORA-19202: Se ha producido un error en el procesamiento
LPX-00217: invalid character 0 (\u0000) de XML
ORA-06512: en "XDB.DBMS_XMLSCHEMA_INT", l�nea 0
ORA-06512: en "XDB.DBMS_XMLSCHEMA", l�nea 166
ORA-06512: en l�nea 2
it says.
I have done several attempts, deleting and including just some of the KEYs/KEYREFs in the schema and it seems to me that the problem is that it let me include so much keys as I want but it fails when the number of KEYREFs that I include increase.
Help!!!
Thanks on advance for spare your time helping us.Looks like known bug 2831302 fixed in (forthcoming) 10g release. In the mean time I would simply comment the key/keyref out of the schema
-
KEY and KEYREF support in Oracle XML DB
First of all, sorry for my english but I am a spanish researcher who have not been abroad too much :-).
I�m trying to use XML DB to store XML documents that represents UML models and the way I've choosed to map relationships in my schema is using KEY and KEYREFs. The fact is that It seems to me that XML DB does not use them whem it creates the different objects that results on the schema's load. Does XMLDB support the definitons of KEYs and KEYREFs in the schema?? If so, how does it do?? Defining constraints oon the objects created?? I suppose no, because the KEYs and KEYREFs are defined on 'complexTypes' and the Oracle's constraints goes to tables (not to object types).
I'm worling with the next schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="Kybele/MetaModel_Schema_All" targetNamespace="Kybele/MetaModel_Schema_All" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
<!-- En esta version, representaremos las relaciones usando atributos KEYs y KEYREFs
Ademas, en esta version mapeamos el metamodelo de UML por completo-->
<!-- En las anotaciones para XML DB usaremos el prefijo MMALL(MetaModelo Completo) -->
<!--******************** DECLARACION DE LOS ELEMENTOS DEL METAMODELO *********************-->
<xsd:element name="MetaModel" xdb:defaultTable="MMALL_METAMODELS_TABLE">
<xsd:complexType xdb:SQLType="MMALL_METAMODELS_TYPE">
<xsd:sequence>
<xsd:element name="ModelElements" type="ModelElement" maxOccurs="unbounded"/>
<xsd:element name="Dependencies" type="Dependency" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- Es en este punto donde definiremos las "PRIMARYKEYS"(KEYs) Y "FOREIGNKEYS"(KEYREFs) para simular relaciones -->
<!-- ************************************************************************************************* *-->
<!-- RELACIONES ModelElement - Dependency -->
<xsd:key name="Dependency_PK">
<xsd:selector xpath="Dependencies"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:key name="ModelElement_PK">
<xsd:selector xpath="ModelElements"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:keyref name="Requirement_FK" refer="Dependency_PK">
<xsd:selector xpath="ModelElements"/>
<xsd:field xpath="requirement"/>
</xsd:keyref>
<xsd:keyref name="Provision_FK" refer="Dependency_PK">
<xsd:selector xpath="ModelElements"/>
<xsd:field xpath="provision"/>
</xsd:keyref>
<xsd:keyref name="Client_FK" refer="ModelElement_PK">
<xsd:selector xpath="Dependencies"/>
<xsd:field xpath="client"/>
</xsd:keyref>
<xsd:keyref name="Supplier_FK" refer="ModelElement_PK">
<xsd:selector xpath="Dependencies"/>
<xsd:field xpath="supplier"/>
</xsd:keyref>
<!-- RELACIONES Generalization - GeneralizableElement -->
<xsd:key name="Generalization_PK">
<xsd:selector xpath="Generalization"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:key name="GeneralizableElement_PK">
<xsd:selector xpath="GeneralizableElement"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:keyref name="Subtype_FK" refer="GeneralizableElement_PK">
<xsd:selector xpath="Generalization"/>
<xsd:field xpath="subtype"/>
</xsd:keyref>
<xsd:keyref name="Type_FK" refer="GeneralizableElement_PK">
<xsd:selector xpath="Generalization"/>
<xsd:field xpath="type"/>
</xsd:keyref>
<xsd:keyref name="Generalization_FK" refer="GeneralizableElement_PK">
<xsd:selector xpath="GeneralizableElement"/>
<xsd:field xpath="generalization"/>
</xsd:keyref>
<xsd:keyref name="Specilization_FK" refer="GeneralizableElement_PK">
<xsd:selector xpath="GeneralizableElement"/>
<xsd:field xpath="specialization"/>
</xsd:keyref>
<!-- RELACIONES Classifier - AssociationEnd -->
<xsd:key name="Classifier_PK">
<xsd:selector xpath="Classifier"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:key name="AssociationEnd_PK">
<xsd:selector xpath="AssociationEnd"/>
<xsd:field xpath="Nombre"/>
</xsd:key>
<xsd:keyref name="AssociationEnd_FK" refer="AssociationEnd_PK">
<xsd:selector xpath="Classifier"/>
<xsd:field xpath="associationEnd"/>
</xsd:keyref>
<xsd:keyref name="Participant_FK" refer="AssociationEnd_PK">
<xsd:selector xpath="Classifier"/>
<xsd:field xpath="participant"/>
</xsd:keyref>
<xsd:keyref name="AssociationEnd_Type_FK" refer="Classifier_PK">
<xsd:selector xpath="AssociationEnd"/>
<xsd:field xpath="type"/>
</xsd:keyref>
<xsd:keyref name="AssociationEnd_Specification_FK" refer="Classifier_PK">
<xsd:selector xpath="AssociationEnd"/>
<xsd:field xpath="specification"/>
</xsd:keyref>
<!-- RELACIONES AssociatioEnd - Attribute -->
<xsd:keyref name="AttributeCompose_FK" refer="AssociationEnd_PK">
<xsd:selector xpath="Attribute"/>
<xsd:field xpath="associationEnd_member"/>
</xsd:keyref>
<!-- RELACIONES AssociatioEnd - Association -->
<xsd:keyref name="AssociationEndCompose_FK" refer="Association_PK">
<xsd:selector xpath="Association"/>
<xsd:field xpath="Association_member"/>
</xsd:keyref>
</xsd:element>
<!--***************************** DEFINICION DE TIPOS SIMPLES *****************************-->
<!-- TIPO ENUMERADO AGGREGATIONTYPE -->
<xsd:simpleType name="AggregationType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="none"/>
<xsd:enumeration value="aggregate"/>
<xsd:enumeration value="composite"/>
</xsd:restriction>
</xsd:simpleType>
<!-- TIPO ENUMERADO SCOPETYPE -->
<xsd:simpleType name="ScopeType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="instance"/>
<xsd:enumeration value="classifier"/>
</xsd:restriction>
</xsd:simpleType>
<!-- TIPO ENUMERADO MULTIPLICITYTYPE -->
<xsd:simpleType name="MultiplicityType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="0..1"/>
<xsd:enumeration value="1..1"/>
<xsd:enumeration value="0..N"/>
<xsd:enumeration value="1..N"/>
</xsd:restriction>
</xsd:simpleType>
<!-- TIPO ENUMERADO CHANGEABLETYPE -->
<xsd:simpleType name="ChangeableType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="none"/>
<xsd:enumeration value="frozen"/>
<xsd:enumeration value="add_only"/>
</xsd:restriction>
</xsd:simpleType>
<!--**************************** DEFINICION DE TIPOS COMPLEJOS **********************************************-->
<!-- TIPO COMPLEJO MODELELEMENT -->
<xsd:complexType name="ModelElement" xdb:SQLType="MMALL_ModelElement_Type">
<xsd:sequence>
<xsd:element name="nombre" type="xsd:string"/>
<!-- Subelementos para representar sus relaciones -->
<xsd:element name="requirement" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="provision" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- TIPO COMPLEJO DEPENDENCY -->
<xsd:complexType name="Dependency" xdb:SQLType="MMALL_Dependency_Type">
<xsd:complexContent>
<xsd:extension base="ModelElement">
<xsd:sequence>
<xsd:element name="description" type="xsd:string"/>
<!-- Subelementos para representar sus relaciones -->
<xsd:element name="client" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="supplier" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO GENERALIZATION -->
<xsd:complexType name="Generalization" xdb:SQLType="MMALL_Generalization_Type">
<xsd:complexContent>
<xsd:extension base="ModelElement">
<xsd:sequence>
<xsd:element name="discriminator" type="xsd:string"/>
<!-- Subelementos para representar sus relaciones -->
<xsd:element name="subtype" type="xsd:string"/>
<xsd:element name="supertype" type="xsd:string"/>
<!-- Al quitar minOccurs y maxOccurs obligamos a que siempre haya un (Y SOLO UNO)
subelemento 'subtype' y 'supertype' -->
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO NAMESPACE -->
<xsd:complexType name="NameSpace" xdb:SQLType="MMALL_NameSpace_Type">
<xsd:complexContent>
<xsd:extension base="ModelElement"/>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO GENERALIZABLEELEMENT -->
<xsd:complexType name="GeneralizableElement" xdb:SQLType="MMALL_GeneralizableElement_Type">
<xsd:complexContent>
<xsd:extension base="NameSpace">
<xsd:sequence>
<xsd:element name="isRoot" type="xsd:boolean"/>
<xsd:element name="isLeaf" type="xsd:boolean"/>
<xsd:element name="isAbstract" type="xsd:boolean"/>
<!-- Subelementos para representar sus relaciones -->
<xsd:element name="generalization" type="xsd:string"/>
<xsd:element name="specification" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO: ASSOCIATIONEND -->
<xsd:complexType name="AssociationEnd" xdb:SQLType="MMALL_ASSOCIATIONEND_TYPE">
<xsd:complexContent>
<xsd:extension base="ModelElement">
<xsd:sequence>
<xsd:element name="IsNavigable" type="xsd:boolean"/>
<xsd:element name="IsOrdered" type="xsd:boolean"/>
<xsd:element name="Aggregation" type="AggregationType"/>
<xsd:element name="Multiplicity" type="MultiplicityType" minOccurs="0"/>
<xsd:element name="Changeable" type="ChangeableType"/>
<xsd:element name="TargetScope" type="ScopeType"/>
<!-- Subelementos para representar las relaciones -->
<xsd:element name="Qualifier" type="Attribute" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Association_member" type="xsd:string"/>
<xsd:element name="Type" type="xsd:string"/>
<xsd:element name="Specification" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO CLASSIFIER -->
<xsd:complexType name="Classifier" xdb:SQLType="MMALL_CLASSIFIER_TYPE">
<xsd:complexContent>
<xsd:restriction base="GeneralizableElement">
<xsd:sequence>
<!-- Subelementos para representar las relaciones -->
<xsd:element name="AssociationEnd" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Participant" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO CLASS -->
<xsd:complexType name="Class" xdb:SQLType="MMALL_CLASS_TYPE">
<xsd:complexContent>
<xsd:extension base="Classifier"/>
</xsd:complexContent>
</xsd:complexType>
<!-- TIPO COMPLEJO ATTRIBUTE -->
<xsd:complexType name="Attribute" xdb:SQLType="MMALL_ATTRIBUTE_TYPE">
<xsd:sequence>
<xsd:element name="associationEnd_member" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<!-- TIPO COMPLEJO ASSOCIATION -->
<xsd:complexType name="Association" xdb:SQLType="MMALL_ASSOCIATION_TYPE">
<xsd:complexContent>
<xsd:restriction base="GeneralizableElement">
<xsd:sequence>
<xsd:element name="connection" type="AssociationEnd" minOccurs="2" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
and when I try to load it into XMLDB it fails:
SQL> @registerSchema oe oe /home/OE/Metamodel_Schema_All.xsd "http://kybele.escet.urjc.es/ejemplos/x
ml_schema/Metamodel_Schema_All.xsd"
SQL> set echo on
SQL> connect &1/&[email protected]
Conectado.
SQL> alter session set events='31098 trace name context forever';
Sesi�n modificada.
SQL> begin
2 dbms_xmlschema.registeruri(
3 '&4',
4 '&3',
5 TRUE,TRUE,FALSE,TRUE);
6 end;
7 /
antiguo 3: '&4',
nuevo 3: 'http://kybele.escet.urjc.es/ejemplos/xml_schema/Metamodel_Schema_All.xsd',
antiguo 4: '&3',
nuevo 4: '/home/OE/Metamodel_Schema_All.xsd',
begin
ERROR en l�nea 1:
ORA-31154: invalid XML document
ORA-19202: Se ha producido un error en el procesamiento
LPX-00217: invalid character 0 (\u0000) de XML
ORA-06512: en "XDB.DBMS_XMLSCHEMA_INT", l�nea 0
ORA-06512: en "XDB.DBMS_XMLSCHEMA", l�nea 166
ORA-06512: en l�nea 2
it says.
I have done several attempts, deleting and including just some of the KEYs/KEYREFs in the schema and it seems to me that the problem is that it let me include so much keys as I want but it fails when the number of KEYREFs that I include increase.
Help!!!
Thanks on advance for spare your time helping us.Please post this message at:
Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB -
XML binary storage format impairs schema validation?
I'm using Oracle 11g R1 on Windows Server 2003. I successfully registered schemas and created tables and indexes in the new binary storage format. However, when trying to load data, I'm running into problems. Schema validation behaves as if not the full feature set of XML Schema mysteriously isn't supported anymore.
There is probably more but at least wildcard elements (xs:any) and element references (xs:element ref="STH") are simply ignored in the schema definition and data is rejected even when it conforms to the schema.
Is there any solution for this or am I out of luck? I wanted to go back to CLOB storage as used in a previous installation but I'm running into problems when registering the schema. It complains about an empty SQL name although I don't have any defined. I'm pretty weirded out by all this.
I created the schema and table in a straightforward way:
begin
dbms_xmlschema.registeruri(
schemaurl => 'http://www.xxxhello.com/archive_tsd.xsd',
schemadocuri => '/public/user/archive_tsd.xsd',
gentypes => FALSE,
options => DBMS_XMLSCHEMA.REGISTER_BINARYXML
end;
CREATE TABLE archive OF xmltype XMLTYPE STORE AS binary xml XMLSCHEMA
"http://www.xxxhello.com/archive_tsd.xsd" ELEMENT "CompleteDocument";
create index idx_lastmodified_archive on archive t
(extractvalue(VALUE(t),'/CompleteDocument/DocContent/LastModified'));Because of xs:any or element references is ignored, I get errors like
LSX-00213: only 0 occurrences of particle "REFDELEM", minimum is 1.
Thanks for your help.The schema is very large (>200kb). Where should I upload it or can I send it to you? I'm bit concerned about confidentiality of company data. However, the instance is not valid yet. I'm in the process of modifying the schema to match all instances, but it breaks on places that should be already okay. No, I didn't use SchemaValidate ever.
But I've made an example where at least xs:any doesn't work. Element references work, though.
Sample schema:
<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema
xmlns:tsd = "http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition"
xmlns:xs = "http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>
<tsd:schemaInfo name = "sbreak">
<tsd:collection name = "sbreak"></tsd:collection>
<tsd:doctype name = "CompleteDocument">
<tsd:logical>
<tsd:content>open</tsd:content>
<tsd:systemGeneratedIdentity reuse = "false"></tsd:systemGeneratedIdentity>
</tsd:logical>
</tsd:doctype>
<tsd:adminInfo>
<tsd:server>4.4.1.1</tsd:server>
<tsd:modified>2007-07-03T16:00:46.484+02:00</tsd:modified>
<tsd:created>2007-07-03T15:29:04.968+02:00</tsd:created>
<tsd:version>TSD4.4</tsd:version>
</tsd:adminInfo>
</tsd:schemaInfo>
</xs:appinfo>
</xs:annotation>
<xs:element name = "CompleteDocument">
<xs:complexType>
<xs:choice minOccurs = "0" maxOccurs = "unbounded">
<xs:element name = "ComplexNormal">
<xs:complexType>
<xs:choice minOccurs = "0" maxOccurs = "unbounded">
<xs:element name = "NormalElem1" type = "xs:string"></xs:element>
<xs:element name = "NormalElem2" type = "xs:string"></xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name = "ComplexAny">
<xs:complexType>
<xs:choice minOccurs = "0" maxOccurs = "unbounded">
<xs:any minOccurs = "0" maxOccurs = "unbounded"></xs:any>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name = "ComplexRef">
<xs:complexType>
<xs:choice minOccurs = "0" maxOccurs = "unbounded">
<xs:element ref = "RefdElem"></xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name = "LastModified" type = "xs:string"></xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name = "RefdElem">
<xs:complexType>
<xs:choice minOccurs = "0" maxOccurs = "unbounded">
<xs:element name = "Elem1" type = "xs:string"></xs:element>
<xs:element name = "Elem2" type = "xs:string"></xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>Sample instance:
<?xml version="1.0" encoding="UTF-8" ?>
<CompleteDocument>
<ComplexNormal>
<NormalElem1>Test1</NormalElem1>
<NormalElem2>Test2</NormalElem2>
</ComplexNormal>
<ComplexAny>
<AnyElem>Test3</AnyElem>
</ComplexAny>
<ComplexRef>
<RefdElem>
<Elem1>Test4</Elem1>
<Elem2>Test5</Elem2>
</RefdElem>
</ComplexRef>
</CompleteDocument>Log of what I did. First I confirmed, that I could enter the instance using clob storage:
SQL> begin
2 dbms_xmlschema.registeruri(
3 schemaurl => 'http://www.xxxhello.com/sbreak_tsd.xsd',
4 schemadocuri => '/public/sbreak_tsd.xsd'
5 );
6 end;
7 /
PL/SQL-Prozedur erfolgreich abgeschlossen.
SQL> CREATE TABLE sbreak OF xmltype XMLTYPE STORE AS clob XMLSCHEMA
"http://www.xxxhello.com/sbreak_tsd.xsd" ELEMENT "CompleteDocument";
Tabelle wurde erstellt.
SQL> create index idx_lastmodified_sbreak on sbreak t (extractvalue(VALUE(t),
'/CompleteDocument/LastModified'));
Index wurde erstellt.
SQL> insert into sbreak values(xmltype(bfilename('DATA', 'sbreak/sbreakinstance.xml'),
NLS_CHARSET_ID('AL32UTF8')));
1 Zeile wurde erstellt.Then I deleted table and schema again:
SQL> drop index idx_lastmodified_sbreak;
Index wurde gelöscht.
SQL> drop table sbreak;
Tabelle wurde gelöscht.
SQL> begin
2 dbms_xmlschema.deleteschema(
3 schemaurl => 'http://www.xxxhello.com/sbreak_tsd.xsd'
4 ,delete_option => dbms_xmlschema.delete_cascade_force
5 );
6 end;
7 /
PL/SQL-Prozedur erfolgreich abgeschlossen.After that I created schema and table with binary XML storage and tried to insert the same instance again:
SQL> begin
2 dbms_xmlschema.registeruri(
3 schemaurl => 'http://www.xxxhello.com/sbreak_tsd.xsd',
4 schemadocuri => '/public/sbreak_tsd.xsd',
5 gentypes => FALSE,
6 options => DBMS_XMLSCHEMA.REGISTER_BINARYXML
7 );
8 end;
9 /
PL/SQL-Prozedur erfolgreich abgeschlossen.
SQL> CREATE TABLE sbreak OF xmltype XMLTYPE STORE AS binary xml XMLSCHEMA
"http://www.xxxhello.com/sbreak_tsd.xsd" ELEMENT "CompleteDocument";
Tabelle wurde erstellt.
SQL> create index idx_lastmodified_sbreak on sbreak t (extractvalue(VALUE(t),
'/CompleteDocument/LastModified'));
Index wurde erstellt.
SQL> insert into sbreak values(xmltype(bfilename('DATA', 'sbreak/sbreakinstance.xml'),
NLS_CHARSET_ID('AL32UTF8')));
insert into sbreak values(xmltype(bfilename('DATA', 'sbreak/sbreakinstance.xml'),
NLS_CHARSET_ID('AL32UTF8')))
FEHLER in Zeile 1:
ORA-31011: XML-Parsing nicht erfolgreich
ORA-19202: Fehler bei XML-Verarbeitung
LSX-00021: undefined element "AnyElem"
aufgetretenSorry about the non-english text, but I think it can be guessed easily what's going on. Next I'll try a modifed schema without the tsd namespace added by the schema editor I use (the original large schema has been migrated from the Tamino XML database). -
How to stop auto-populating of O-R-Xmltype table from repo files? on 11g
Hi,
I registered an XML Schema following this example,
begin dbms_xmlschema.registeruri(‘http://xmlbook.com/sample/contact_annotated.xsd’, ‘/public/chp12/contact_annotated.xsd’, local=>true, gentypes=>true, genbean=>false, gentables=>true); end; /
Wang, Jinyu (2011-07-01). Oracle Database 11g Building Oracle XML DB Applications (Oracle Press) (Kindle Locations 8301-8310). McGraw-Hill. Kindle Edition.
The schema has, xdb:defaultTable=“contact_or_tbl” so a table by that name is generated.
Then it says,
For an XML document with the xsi:schemaLocation or xsi:noNamespaceSchemaLocation attribute, you don’t need to use the createschemabasedxml() function. The XML insertion to the O-R table is done automatically when the document is loaded to XML DB Repository.
Which is what I observe as well. However I also produce XML from the database and store it as a created resource in the XML DB repository. I don't want that to again show up in the contact_or_tbl table. Is there a way to tell Oracle to NOT load the resource automatically even if it mentions the schema. OR it there a way to have an additional column in contact_or_tbl which mentions the file file name so that I can distinguish?
Thanks,
-v-
Edited by: user5837642 on Aug 30, 2012 11:52 AMThe entry in the OR table seems to drop the information about the file name.You can retrieve the resource name of a stored XMLType instance with the following :
SQL> declare
2 res boolean;
3 begin
4 res := dbms_xdb.CreateResource('/public/workbook2.xml',
5 xmltype(
6 '<workbook xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7 xsi:noNamespaceSchemaLocation="workbook.xsd">
8 <worksheet sheetName="MySheet1" sheetId="1"/>
9 </workbook>')
10 );
11 end;
12 /
PL/SQL procedure successfully completed
The registered schema "workbook.xsd" has the annotation xdb:defaultTable = "WORKBOOK_XML", so the resource content gets stored in the table :
SQL> select xmlserialize(document object_value) from workbook_xml;
XMLSERIALIZE(DOCUMENTOBJECT_VA
<workbook>
<worksheet sheetName="MySheet1" sheetId="1"/>
</workbook>
The link between the XDB resource and the row in the XMLType object table is maintained by the XMLRef hidden column in the resource :
SQL> SELECT t.object_value
2 , v.any_path
3 , x1.file_name
4 , x1.date_modified
5 FROM workbook_xml t
6 JOIN resource_view v
7 ON REF(t) = XMLCast(
8 XMLQuery(
9 'declare default element namespace "http://xmlns.oracle.com/xdb/XDBResource.xsd"; (: :)
10 data(/Resource/XMLRef)'
11 passing v.res returning content
12 )
13 as REF XMLType
14 )
15 CROSS JOIN
16 XMLTable(
17 XMLNamespaces(default 'http://xmlns.oracle.com/xdb/XDBResource.xsd')
18 , '/Resource'
19 passing v.res
20 columns file_name varchar2(260) path 'DisplayName'
21 , date_modified timestamp path 'ModificationDate'
22 ) x1
23 ;
OBJECT_VALUE ANY_PATH FILE_NAME DATE_MODIFIED
<Object> /public/workbook2.xml workbook2.xml 01/09/12 09:17:46,146000
In your case, you can quickly distinguish the different resource locations using the UNDER_PATH operator.
For example, to select only the rows generated after creating resources in the /public folder :
SQL> SELECT xmlserialize(document t.object_value)
2 FROM resource_view v
3 JOIN workbook_xml t
4 ON REF(t) = XMLCast(
5 XMLQuery(
6 'declare default element namespace "http://xmlns.oracle.com/xdb/XDBResource.xsd"; (: :)
7 data(/Resource/XMLRef)'
8 passing v.res returning content
9 )
10 as REF XMLType
11 )
12 WHERE under_path(v.res, '/public') = 1
13 ;
XMLSERIALIZE(DOCUMENTT.OBJECT_
<workbook>
<worksheet sheetName="MySheet1" sheetId="1"/>
</workbook>
Edited by: odie_63 on 1 sept. 2012 11:30 -
No rows appear in nested tables
Hi,
I registered below XML schema and let the register proceduree to create the default tables. after I inserted 100 xml files into the table with XMLType column, I can't find any rows in the nested tables, say "Message191_TAb".
SQL> select count(*) from "Message191_TAB";
COUNT(*)
0
Thanks!
====================sample.xsd========================
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--W3C Schema generated by XMLSpy v2005 sp2 U (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="From">
<xs:complexType>
<xs:sequence>
<xs:element ref="User"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Log">
<xs:complexType>
<xs:sequence>
<xs:element ref="Message" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="FirstSessionID" type="xs:string" use="required"/>
<xs:attribute name="LastSessionID" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Message">
<xs:complexType>
<xs:sequence>
<xs:element ref="From"/>
<xs:element ref="To"/>
<xs:element ref="Text"/>
</xs:sequence>
<xs:attribute name="Date" type="xs:string" use="required"/>
<xs:attribute name="Time" type="xs:string" use="required"/>
<xs:attribute name="DateTime" type="xs:string" use="required"/>
<xs:attribute name="SessionID" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Text">
<xs:complexType mixed="true">
<xs:attribute name="Style" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="To">
<xs:complexType>
<xs:sequence>
<xs:element ref="User"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="User">
<xs:complexType>
<xs:attribute name="FriendlyName" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
==================end=============================I use the following to delete / register schemas:
-- delete previously registered schema
begin
DBMS_XMLSCHEMA.deleteSchema(
'http://oeb-isg-webdev.xxx.xxx/xmlschema/rapic.xsd',
3
end;-- This is using the annotated schema on oeb-isg-webdev;
begin
DBMS_XMLSCHEMA.registerURI(
schemaURL => 'http://oeb-isg-webdev..xxx.xxx/xmlschema/rapic.xsd',
schemaDocURI => 'http://oeb-isg-webdev.xxx.xxx/xmlschema/rapic.xsd',
genTables => TRUE, -- generate object tables
genTypes => TRUE, -- generate object types
genBean => FALSE, -- no java beans
local => true -- local ?
end; The schema is:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb"
elementFormDefault="qualified" xdb:storeVarrayAsTable="true">
<xs:element name="rapicverify" xdb:defaultTable="ISO_RADAR" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="RAPICVERIFY_T">
<xs:sequence>
<xs:element ref="header"/>
<xs:element ref="calibration_basis"/>
<xs:choice maxOccurs="unbounded">
<xs:element ref="forward_power_measurement"/>
<xs:element ref="receiver_measurement"/>
<xs:element ref="tx_corrected_receiver_measurement"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="header" xdb:defaultTable="ISO_RADAR_HEADER" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="HEADER_T">
<xs:sequence>
<xs:element ref="part" maxOccurs="unbounded" xdb:SQLName="PART" xdb:SQLCollType="PART_V"/>
</xs:sequence>
<xs:attribute name="doctype" use="required" type="xs:NCName"/>
</xs:complexType>
</xs:element>
<xs:element name="part" xdb:defaultTable="ISO_RADAR_PART" xdb:maintainOrder="false">
<xs:complexType mixed="true" xdb:SQLType="part_t">
<xs:attribute name="detail" type="xs:NCName"/>
<xs:attribute name="name" use="required" type="xs:NCName"/>
</xs:complexType>
</xs:element>
<xs:element name="calibration_basis" xdb:defaultTable="ISO_RADAR_CALIBRATION_BASIS"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="calibration_basis_t">
<xs:sequence>
<xs:element ref="system"/>
<xs:element ref="receiver_measurement_losses"/>
<xs:element ref="transmitter_measurement_losses"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="system" xdb:defaultTable="ISO_RADAR_SYSTEM" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="system_t">
<xs:sequence>
<xs:element ref="frequency"/>
<xs:element ref="peak_power"/>
<xs:element ref="h_beamwidth"/>
<xs:element ref="v_beamwidth"/>
<xs:element ref="forward_coupler"/>
<xs:element ref="fwd_coupler_cable_loss"/>
<xs:element ref="waveguide_loss"/>
<xs:element ref="az_rotating_joint"/>
<xs:element ref="el_rotating_joint"/>
<xs:element ref="antenna_gain"/>
<xs:element ref="radome_loss"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="frequency" xdb:defaultTable="ISO_RADAR_FREQUENCY" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="frequency_t">
<xs:attribute name="mhz" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="peak_power" xdb:defaultTable="ISO_RADAR_PEAK_POWER" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="peak_power_t">
<xs:attribute name="kw" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="h_beamwidth" xdb:defaultTable="ISO_RADAR_H_BEAM_W" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="h_beamwidth_t">
<xs:attribute name="deg" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="v_beamwidth" xdb:defaultTable="ISO_RADAR_V_BEAM_W" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="v_beamwidth_t">
<xs:attribute name="deg" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="forward_coupler" xdb:defaultTable="ISO_RADAR_FWD_COUPLER"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="forward_coupler_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="fwd_coupler_cable_loss" xdb:defaultTable="ISO_RADARFWD_CPLR_CBL_LOSS"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="fwd_coupler_cable_loss_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="waveguide_loss" xdb:defaultTable="ISO_RADAR_WAVEGUIDE+LOSS"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="waveguide_loss_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="az_rotating_joint" xdb:defaultTable="ISO_RADAR_AZ_ROT_JNT"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="ax_rotating_joint_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="el_rotating_joint" xdb:defaultTable="ISO_RADAR_EL_ROT_JNT"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="el_rotating_joint_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="antenna_gain" xdb:defaultTable="ISO_RADAR_ANT_GAIN" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="antenna_gain_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="radome_loss" xdb:defaultTable="ISO_RADAR_RADOME_LOSS" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="radome_loss_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="receiver_measurement_losses" xdb:defaultTable="ISO_RADAR_RCVR_MMT_LOSS"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="receiver_measurement_losses_t">
<xs:sequence>
<xs:element ref="coupler_loss"/>
<xs:element ref="attenuator"/>
<xs:element ref="cable"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="cable" xdb:defaultTable="ISO_RADAR_CABLE" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="cable_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="transmitter_measurement_losses" xdb:defaultTable="ISO_RADAR_TX_MEAS_LOSS"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="tx_measurement_losses_t">
<xs:sequence>
<xs:element ref="coupler_loss"/>
<xs:element ref="attenuator"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="forward_power_measurement" xdb:defaultTable="ISO_RADAR_FWD_PWR_MMT"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="forward_power_measurement_t">
<xs:sequence>
<xs:element ref="time"/>
<xs:element ref="pulse_index"/>
<xs:element ref="pulse_width"/>
<xs:element ref="expected_dbm"/>
<xs:element maxOccurs="unbounded" ref="measured_fwd_power" xdb:SQLName="M_FWD_PWR"
xdb:SQLCollType="M_FWD_PWR_V"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="expected_dbm" xdb:defaultTable="ISO_RADAR_EXP_DBM" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="expected_dbm_t">
<xs:attribute name="dbm" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="measured_fwd_power" xdb:defaultTable="ISO_RADAR_MEAS_FWD_PWR"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="measured_fwd_pwr_t">
<xs:attribute name="dbm" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="receiver_measurement" xdb:defaultTable="ISO_RADAR_RX_MEASUREMENT"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="receiver_measurement_t">
<xs:sequence>
<xs:element ref="time"/>
<xs:element ref="range"/>
<xs:element ref="pulse_index"/>
<xs:element ref="pulse_width"/>
<xs:element ref="injection_power"/>
<xs:element ref="radar_constant"/>
<xs:element ref="expected_dbz"/>
<xs:element maxOccurs="unbounded" ref="measured_rx_power" xdb:SQLName="MEASURED_RX_PWR"
xdb:SQLCollType="MEASURED_RX_PWR_V"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tx_corrected_receiver_measurement" xdb:defaultTable="ISO_RADAR_TX_CORR_RX_MMT"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="tx_corrected_rx_measurement_t">
<xs:sequence>
<xs:element ref="time"/>
<xs:element ref="range"/>
<xs:element ref="pulse_index"/>
<xs:element ref="pulse_width"/>
<xs:element ref="injection_power"/>
<xs:element ref="radar_constant"/>
<xs:element ref="expected_dbz"/>
<xs:element maxOccurs="unbounded" ref="measured_rx_power" xdb:SQLName="MEASURED_RX_PWR"
xdb:SQLCollType="MEASURED_RX_PWR_V"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="coupler_loss" xdb:defaultTable="ISO_RADAR_COUPLER_LOSS"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="coupler_loss_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="attenuator" xdb:defaultTable="ISO_RADAR_ATTENUATOR" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="attenuator_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="time" xdb:defaultTable="ISO_RADAR_TIME" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="time_t">
<xs:attribute name="utc" use="required" type="xs:NMTOKEN"/>
</xs:complexType>
</xs:element>
<xs:element name="range" xdb:defaultTable="ISO_RADAR_RANGE" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="range_t">
<xs:attribute name="km" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="pulse_index" xdb:defaultTable="ISO_RADAR_PULSE_INDEX" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="pulse_index_t">
<xs:attribute name="au" use="required" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="pulse_width" xdb:defaultTable="ISO_RADAR_PULSE_WDTH" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="pulse_width_t">
<xs:attribute name="us" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="injection_power" xdb:defaultTable="ISO_RADAR_INJECTION_PWR"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="injection_power_t">
<xs:attribute name="dbm" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="radar_constant" xdb:defaultTable="ISO_RADAR_RADAR_CONST"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="radar_constant_t">
<xs:attribute name="db" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="expected_dbz" xdb:defaultTable="ISO_RADAR_EXPECT_DBZ" xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="expected_dbz_t">
<xs:attribute name="dbz" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
<xs:element name="measured_rx_power" xdb:defaultTable="ISO_RADAR_MEAS_RX_PWR"
xdb:maintainOrder="false">
<xs:complexType xdb:SQLType="measured_rx_power_t">
<xs:attribute name="dbz" use="required" type="xs:decimal"/>
</xs:complexType>
</xs:element>
</xs:schema>This was generated by oXygen XML from the following file:
<?xml version="1.0" encoding="UTF-8"?>
<rapicverify>
<header doctype="PCRapicTx_XMLlogger">
<part name="stn_num">040966</part>
<part name="radar_name">MtStapl</part>
<part name="radar_id">066</part>
<part name="start_time" detail="utc">23-08-2006 00:58:34</part>
<part name="end_time" detail="utc">24-08-2006 00:58:34</part>
</header>
<calibration_basis>
<system>
<frequency mhz="2860.000000"/>
<peak_power kw="713.00"/>
<h_beamwidth deg="1.000"/>
<v_beamwidth deg="1.000"/>
<forward_coupler db="39.70"/>
<fwd_coupler_cable_loss db="1.01"/>
<waveguide_loss db="1.06"/>
<az_rotating_joint db="0.00"/>
<el_rotating_joint db="0.00"/>
<antenna_gain db="44.60"/>
<radome_loss db="0.25"/>
</system>
<receiver_measurement_losses>
<coupler_loss db="19.83"/>
<attenuator db="9.90"/>
<cable db="0.54"/>
</receiver_measurement_losses>
<transmitter_measurement_losses>
<coupler_loss db="0.21"/>
<attenuator db="29.99"/>
</transmitter_measurement_losses>
</calibration_basis>
<receiver_measurement>
<time utc="23-08-2006_00:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-13.65"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-16.03"/>
<measured_rx_power dbz="-18.29"/>
<measured_rx_power dbz="-19.95"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_00:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-30.60"/>
<measured_rx_power dbz="-30.60"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_01:58:34"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_01:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_01:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-23.20"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_02:58:36"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="16.07"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_02:58:36"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-14.40"/>
<measured_rx_power dbz="-16.06"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_02:58:36"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_03:58:35"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_03:58:35"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-15.50"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_04:58:35"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_04:58:35"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-16.54"/>
<measured_rx_power dbz="-28.29"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_04:58:35"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-29.38"/>
<measured_rx_power dbz="-14.03"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_05:58:36"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_05:58:36"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-12.12"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-14.59"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_05:58:36"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_06:58:35"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_06:58:35"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-15.31"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_06:58:35"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-8.58"/>
<measured_rx_power dbz="-26.33"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_07:58:33"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.64"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.64"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.63"/>
<measured_fwd_power dbm="17.63"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_07:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-14.28"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-19.29"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_07:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-14.70"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_08:58:34"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="16.07"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_08:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-28.63"/>
<measured_rx_power dbz="-15.18"/>
<measured_rx_power dbz="-19.15"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_08:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-12.57"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-19.54"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-18.45"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_09:58:33"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.53"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_09:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_09:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-16.01"/>
<measured_rx_power dbz="-18.59"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_10:58:33"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_10:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-19.68"/>
<measured_rx_power dbz="-16.60"/>
<measured_rx_power dbz="-14.86"/>
<measured_rx_power dbz="-15.38"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_10:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-12.05"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_11:58:33"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_11:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-30.54"/>
<measured_rx_power dbz="-13.29"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_11:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_12:58:34"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_12:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-8.19"/>
<measured_rx_power dbz="-26.47"/>
<measured_rx_power dbz="-15.04"/>
<measured_rx_power dbz="-14.87"/>
<measured_rx_power dbz="-30.08"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_12:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-17.20"/>
<measured_rx_power dbz="-13.57"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-19.72"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_13:58:34"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.56"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.57"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_13:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-15.53"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-16.30"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_13:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_14:58:34"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_14:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-15.86"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_14:58:34"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-12.21"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_15:59:37"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="16.08"/>
<measured_fwd_power dbm="16.09"/>
<measured_fwd_power dbm="16.07"/>
<measured_fwd_power dbm="16.07"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_15:59:37"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-18.48"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-18.77"/>
<measured_rx_power dbz="-15.84"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_15:59:37"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-10.80"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_17:58:35"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.62"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_17:58:35"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-17.99"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-16.22"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_17:58:35"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-18.35"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_18:58:33"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.61"/>
<measured_fwd_power dbm="17.61"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_18:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-11.79"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_18:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-13.92"/>
<measured_rx_power dbz="-30.59"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_19:58:33"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.57"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_19:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-15.88"/>
<measured_rx_power dbz="-18.02"/>
<measured_rx_power dbz="-100.00"/>
</receiver_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_19:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-14.16"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_20:58:33"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
</forward_power_measurement>
<tx_corrected_receiver_measurement>
<time utc="23-08-2006_20:58:33"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-19.11"/>
<measured_rx_power dbz="-15.98"/>
<measured_rx_power dbz="-25.17"/>
<measured_rx_power dbz="-100.00"/>
</tx_corrected_receiver_measurement>
<forward_power_measurement>
<time utc="23-08-2006_21:58:35"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<expected_dbm dbm="17.62"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.58"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="17.59"/>
<measured_fwd_power dbm="17.60"/>
<measured_fwd_power dbm="16.08"/>
</forward_power_measurement>
<receiver_measurement>
<time utc="23-08-2006_21:58:35"/>
<range km="100.00"/>
<pulse_index au="1"/>
<pulse_width us="1.00"/>
<injection_power dbm="-15.00"/>
<radar_constant db="69.60"/>
<expected_dbz dbz="23.62"/>
<measured_rx_power dbz="-100.00"/>
<measured_rx_power dbz="-19.29"/>
</receiver_measurement>
-
Hi,
I try to parse an XML file within a CLOB column. In Oracle 9i and 10g the code work, but in 11 I get a lot of errors.
First I got
ORA-31020: Der Vorgang ist nicht zulässig, Ursache: For security reasons, ftp and http access over XDB repository is not allowed on server side (-31020)
The XML file contains a reference to an external DTD, which is accessible per HTTP on a remote webserver.
As I have understood, I have to register all my DTDs within the Oracle Database. I found
dbms_xmlschema.registerURI()
to do the job. This is very unpractical, because there are a lot of DTDs, which can be referenced by the XML-CLOBs. So I have to register all the DTDs manually.
Normally the XML generator adds the matching DTD reference and so I can validate the XML with the parser without any knowledge about the type of the DTD.
To figure out the problem I read a lot of documents on severyl websites. I have tried
select HTTPURITYPE('http://mywebserver.domain/schema/mydtd-v1.0.dtd').getCLob() from dual;
to load the DTD content. Surprise, surprise I got a lot of ACL errors. To solve that, I have added some network acls. At the moment the statement above
returns my DTD within a CLOB now, so it seems, that I can load the external file from the remote webserver.
Back to registerURI():
dbms_xmlschema.registerURI(
schemaURL => 'http://mywebserver.domain/schema/mydtd-v1.0.dtd',
schemaDocUri => 'http://mywebserver.domain/schema/mydtd-v1.0.dtd',
local => false);
returns now (error messages in German)
ORA-31011: XML-Parsing nicht erfolgreich
ORA-19202: Fehler bei XML-Verarbeitung
LPX-00247: Ungültige Dokument-Typ-Deklaration (DTD)
Error at line 5
aufgetreten
ORA-06512: in "XDB.DBMS_XMLSCHEMA_INT", Zeile 20
ORA-06512: in "XDB.DBMS_XMLSCHEMA", Zeile 199
ORA-06512: in Zeile 12
The same error occurs on
dbms_xmlschema.registerschema(
schemaURL => 'http://mywebserver.domain/schema/mydtd-v1.0.dtd',
schemaDoc => HTTPURITYPE('http://mywebserver.domain/schema/mydtd-v1.0.dtd').getCLob()
How I can get more information about the underlying error? I have tried to enable tracing for some XDB events, but in the udump directory
exist only old files. I think, the DTD is correct, also the reference within the XML CLOB (because it works on the old database instances).
It seems to be a security or character-set(?) issue.
Any ideas?
Thanks a lot
AndreAs I have understood, I have to register all my DTDs within the Oracle Database.
Not exactly.
DBMS_XMLSchema procedures deal with XML schemas, not DTDs.
You can have Oracle resolve the DTD by loading it into the XML DB repository at the same uri referenced by the XML file.
Or, if you don't actually need to use those DTDs to validate XML documents, you can also disable DTD validation altogether at session or instance level. -
Invalid objects and ORA-00600 after deleting XML schema
I am running Oracle 10.2.0.3 on Solaris 10. I am new to XML DB but my developers requested it for a new application. Recently we have noticed the following issue:
My developers have attempted to re-register several schemas using:
DBMS_XMLSchema.deleteSchema(SchemaURL => l_strSchemaURL,
Delete_Option => DBMS_XMLSchema.Delete_Cascade_Force);
And then re-register.
DBMS_XMLSchema.RegisterURI( SchemaURL => l_strSchemaURL,
SchemaDocURI => l_strImportURL,
Local => True,
GenTypes => True,
GenBean => False,
GenTables => True,
Force => False,
EnableHierarchy => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_RESMETADATA);
Afterwards I have noticed several invalid objects:
OWNER OBJECT_NAME OBJECT_TYPE STATUS
ELSVC hsp_standard825_TAB$xd TRIGGER INVALID
ELSVC hsp_standard1145_TAB$xd TRIGGER INVALID
ELSVC hsp_standard_set827_TAB$xd TRIGGER INVALID
ELSVC hsp_standard_set827_TAB TABLE INVALID
ELSVC hsp_product822_TAB$xd TRIGGER INVALID
ELSVC hsp_product822_TAB TABLE INVALID
ELSVC hsp_planner_content833_TAB TABLE INVALID
ELSVC hsp_planner_content833_TAB$xd TRIGGER INVALID
ELSVC hsp_correlations839_TAB TABLE INVALID
ELSVC hsp_correlations839_TAB$xd TRIGGER INVALID
ELSVC hsp_standard825_TAB TABLE INVALID
ELSVC hsp_program819_TAB TABLE INVALID
ELSVC hsp_program819_TAB$xd TRIGGER INVALID
XDB XDLNKrHbGsLaHgRAAUTyLEhg== XML SCHEMA INVALID
XDB XDLNKrHbIULaHgRAAUTyLEhg== XML SCHEMA INVALID
XDB XDLNKrHbJZLaHgRAAUTyLEhg== XML SCHEMA INVALID
XDB XDLNKrHbGFLaHgRAAUTyLEhg== XML SCHEMA INVALID
XDB XDLNKrHbHdLaHgRAAUTyLEhg== XML SCHEMA INVALID and if I attempt to compile the triggers I receive an ORA-00600: internal error code, arguments: [diana for triggering table/view ], [], [], [], [], [], [], []. I opened a TAR with oracle but they have not made much headway. Are we attempting to de-register the schemas improperly? Has anyone seen this issue before?
Thanks,
BrianSR 6204906.993. Up to this point oracle was able to help me identify that the invalid objects were related to the ORA-00600 but it was just recently that it appeared the Issue was possibly related to the delete schema procedure. The informed me that they were not aware of any known issues with this procedure.
Thanks -
"no raws selected" message for structured storage to xml doc
hi every one , wish really u can help with this problem
Well
One stage of my project is to store an xml file into a table of XMLType column in structured way (using the schema)
So thats what I did:
1. I copied the schema file into this folder http://localhost:8080/public/
2. Then I register the schema
SQL> ALTER SESSION SET EVENTS='31098 trace name context forever';
Session altered.
1 begin
2 dbms_xmlschema.registeruri(
3 'http://localhost:8080/public/auction.xsd',
4 '/public/auction.xsd',
5 local=>true, gentypes=>true, genbean=>false, gentables=>false);
6* end;
SQL> r
1 begin
2 dbms_xmlschema.registeruri(
3 'http://localhost:8080/public/auction.xsd',
4 '/public/auction.xsd',
5 local=>true, gentypes=>true, genbean=>false, gentables=>false);
6* end;
PL/SQL procedure successfully completed.
3. after that I create the table as it mentioned below
SQL> create table struc_100kb( xmldoc sys.xmltype)
2 xmltype column xmldoc store as object relational
3 xmlschema "http://localhost:8080/public/auction.xsd"
4 element "site";
Table created.
SQL>SQL> describe struc_100kb
Name Null? Type
XMLDOC SYS.XMLTYPE(XMLSchema "http:
//localhost:8080/public/auct
ion.xsd" Element "site") STO
RAGE Object-relational TYPE
"site171_T"
4. then I used he sqlldr to load the xml document , and that what included in the control file
load data
infile *
replace
into table struc_100kb
fields terminated by ','
fname filler char(40),
xmldoc lobfile(fname) terminated by EOF
begindata
c:\amal\xmldoc\xmldoc_used\doc100kb.xml
C:\oracle\product\10.1.0\db_1\BIN>sqlldr scott/**** control=c:\amal\work.ctl
But after that when I run any query such as this
select e.xmldoc.extract( 'site/people/person[@id="person12"]/name/text()') from struc_100kb e
I got a message no rows selected
So whats my problem??I thought to show u part of the schema and xml files
auction.xsd
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Brian Murphy (wpi) -->
<!--W3C Schema generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="address">
<xs:complexType>
<xs:sequence>
<xs:element ref="street"/>
<xs:element ref="city"/>
<xs:element ref="country"/>
<xs:element ref="province" minOccurs="0"/>
<xs:element ref="zipcode"/>
</xs:sequence>
</xs:complexType>
</xs:element>
doc100kb.xml
<?xml version="1.0" standalone="yes" ?>
- <site>
- <regions>
- <africa>
- <item id="item0">
<location>United States</location>
<quantity>1</quantity>
<name>duteous nine eighteen</name>
<payment>Creditcard</payment>
- <description>
- <parlist>
- <listitem>
- <text>
page rous lady idle authority capt professes stabs monster petition heave humbly removes rescue runs shady peace most piteous worser oak assembly holes patience but malice whoreson mirrors master tenants smocks yielded
<keyword>officer embrace such fears distinction attires</keyword>
</text>
.............. -
Xmldb schema registration problems
Hi,
I'm trying to register an xsd schema file which starts:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" xdb:storeVarrayAsTable="true">
<xs:import namespace="http://www.w3.org/1998/Math/MathML" schemaLocation="http://www.w3.org/Math/XMLSchema/mathml2/mathml2.xsd
"/>
<xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.w3.org/TR/xml-i18n-bp/xmlspec/xlink.xsd"/>
<!-- XSD import of namespace suppressed, whee -->
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
Because of the xsd imports I have to register all of the dependent xsd files, but eventually end up at the start of the chain having to register datatypes.dtd (and XMLSchema.dtd)
but I get this error for datatypes.dtd:
Error starting at line 1 in command:
begin
DBMS_XMLSCHEMA.REGISTERURI(
schemaurl => 'http://www.w3.org/2001/datatypes.dtd',
schemadocuri => '/public/pmc/datatypes.dtd'
end;
Error report:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00247: invalid Document Type Declaration (DTD)
Error at line 16
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 20
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 195
ORA-06512: at line 2
31011. 00000 - "XML parsing failed"
*Cause: XML parser returned an error while trying to parse the document.
*Action: Check if the document to be parsed is valid.
The offending line is the first one after the comments:
<!ENTITY % simpleType "%p;simpleType">
Am I right in trying to register DTDs at all, or I have I got the wrong approach regarding imported XSDs in the first place ?
(it's only W3C XSDs that are imported)
Alan.Which database version are you using. In 11g all importent W3C schema's have already been registered including the xlink schema's. In 10g (although I never did a diff between the versions) the same are registered xlink stuff excluded.
I wouldn't mix DTD and XML Schema's, but that's more a gut feeling then that I have a reason for it. It will make maintenance more difficult because you need an understanding for both notation methods
Maybe you are looking for
-
Hyperlink issues in InDesign CS5 and CS6
This might be obvious, but it's driving me insane. I'm highlighting text and linking to external URL's from InDesign. In InDesign it seems to keep rewriting the hyperlinks? When I highlight and change it to a specific URL, I'll highlight another on
-
Output of RFC FM in background job
Hello, I have a report which call an RFC FM. The FM calls a class which write some output using write statement. How can this output be captured in the spool request of job for my report? Is it possible? Regards, Ahmed
-
URL longer than it needs to be.
I've created a web site, www.shadyhollowstingrays.com. The name of the site in iWeb is Shady Hollow Stingrays. For some reason iWeb has created a folder at the root of my site called shady_hollow_stingrays so now every URL is longer than it needs t
-
hi, i have a sharepoint custom list with Title and image attachments, now i want to display image attachments in div based on the title.
-
Mixed up messages in conversation view on C3-01
Has anyone else noticed that from time to time the text messages when viewed in a converstaion format (chat listing for each sender's name) can get mixed up? So one user's latest text is showed in the conversation of a text message conversation with