Registering XML Schema error
Hi team,The purpose of the mail of my project is to load data from the file in tables Oracle XML stream. I did it following the steps went perfectly well...
I did following steps.
(1) create the DIRECTORY xml_dir as 'c:\xmldata ';
(2) create table xmltab XMLType;
(3) following packages are carried out by schema 'Sys '.
(1) dbmslob. SQL;
(2) prvtlob. PLB;
(4) a xmldata folder is created under "c:\". "and with data_file.xml file is stored in it.
5) insert in xmltab values (XMLType (bfilename ('XML_DIR', 'data_file.xml'), nls_charset_id ('AL32UTF8')));
When I try to run following select statement "No. lines selected" message; Although there is an element in the xml data file.
SELECT OBJECT_VALUE
FROM xmltab
WHERE existsNode (OBJECT_VALUE, ' / ConsolidatedAssetHeader [AssetSourceSystem = "CAPS"]') = 1
Now, I think that in order to use all functions like existsNode and exctractValue I have to save the schema in DB.
This is the XML schema file.
"< xsd: Schema targetNamespace =" "schemas-dart - com:sql:ConsolidatedAssetHeader" xmlns:schema = "schemas-dart - com:sql:ConsolidatedAssetHeader" container = "http://www.w3.org/2001/XMLSchema" xmlns:sqltypes = "http://schemas.microsoft.com/sqlserver/2004/sqltypes" elementFormDefault = "qualified" >
< xsd: import namespace = "http://schemas.microsoft.com/sqlserver/2004/sqltypes" schemaLocation = "http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd" / >
-< xsd: element name = "ConsolidatedAssetHeader" >
-< xsd: complexType >
-< xsd: SEQUENCE >
< xsd: element name = "InternalId" type = "sqltypes:int" / >
-< xsd: element name = "DCN" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "30" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
< xsd: element name = "EventDateLastChanged" type = "SqlTypes: DateTime" minOccurs = "0" / >
-< xsd: element name = "FinancialStatusIndicator" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "InScopeIndicator" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationPriorityIndicator" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "PhysicalInstallDate" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetComment" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "255" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetContractExtension" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetContractNumber" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetDescription" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
< xsd: element name = "AssetFinancialInstallDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
< xsd: element name = "AssetFinancialRemovalDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
-< xsd: element name = "AssetFinancialStatus" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetName" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "255" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetParentSource" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetParentSourceID" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
< xsd: element name = "AssetPhysicalInstallDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
< xsd: element name = "AssetPhysicalRemovalDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
-< xsd: element name = "AssetPhysicalStatus" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetPhysicalStatusIndicator" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSerialIndicator" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSerialNumber" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSource" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSourceID" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSourceIndicator" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSourceSystem" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSourceType" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetTag" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "BillabilityIndicator" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "InScopeFlag" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "IP address" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "NetworkNumber" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "SubnetAddress" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
< xsd: ELEMENT ref = "Schema: ConsolidatedAssetLocation" minOccurs = "0" maxOccurs = "unbounded" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
+ < xsd: element name = "ConsolidatedAssetLocation" >
-< xsd: complexType >
-< xsd: SEQUENCE >
< xsd: element name = "InternalId" type = "sqltypes:int" minOccurs = "0" / >
< xsd: element name = "ParentId" type = "sqltypes:int" minOccurs = "0" / >
-< xsd: element name = "AssetLocationIDBillTo" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetLocationIDShipTo" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetLocationIDSoldTo" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSourceDt" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSourceIDDt" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "AssetSourceSystemDt" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "ContractNumberExtensionDt" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationBillToAddress" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationBillToAddressLine2" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationBillToAddressLine3" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationBillToCity" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationBillToCountry" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationBillToAddressLine4" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationBillToState" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationBillToZip" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationPriorityIndicator" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationShipToAddress" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationShipToAddressLine2" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationShipToAddressLine3" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationShipToAddressLine4" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationShipToCity" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationShipToCountry" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationShipToState" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationShipToZip" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationSoldToAddress" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationSoldToAddressLine2" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationSoldToAddressLine3" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationSoldToAddressLine4" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "150" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationSoldToCity" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationSoldToCountry" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationSoldToState" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "LocationSoldToZip" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "PartySource" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
-< xsd: element name = "PartySourceID" minOccurs = "0" >
-< xsd:simpleType >
-xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
< xsd: element name = "RowCreateDateTime" type = "SqlTypes: DateTime" minOccurs = "0" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: Schema >
I use the suite package registry scheme, which is in error
BEGIN
() DBMS_XMLSCHEMA.registerSchema
"schemas-dart - com:sql:ConsolidatedAssetHeader',
XDBURIType('http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd').getClob(),
TRUE,
TRUE,
FAKE,
(TRUE);
END;
Following error.
BEGIN
ERROR on line 1:
ORA-31001: handle or path of the invalid resource name
'http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd '.
ORA-06512: at "SYS." XDBURITYPE", line 4
ORA-06512: at line 2
Can you please tell me what changes should I do to fix this error? Is there any specific location where should I put my schema file?
Thanks in advance
Murielle
OK, finally, the missing piece of the puzzle! :)
You do not actually use the schema that you have a hard time to register.
Besides, only a fragment of the example document "temp.xml" conforms to the schema.
So we're back to what said in the very first posts of this thread: question of the namespace, and also (now) incorrect XPath expressions.
Try below example (no necessary schema):
SQL> CREATE TABLE test_table OF XMLTYPE
2 XMLTYPE STORE AS SECUREFILE BINARY XML;
Table created
SQL>
SQL> INSERT INTO test_table
2 VALUES(
3 XMLType(bfilename('TEST_DIR','temp.xml'), nls_charset_id('AL32UTF16'))
4 );
1 row inserted
SQL>
SQL> SELECT x.*
2 FROM test_table t,
3 XMLTable(
4 XMLNamespaces(default 'http://BAROutboundXML'),
5 '/BAROutboundXML/Row/ConsolidatedAssetHeader'
6 passing t.object_value
7 columns InternalId number path 'InternalId',
8 DCN number path 'DCN'
9 ) x
10 WHERE x.InternalId = 1275
11 ;
INTERNALID DCN
---------- ----------
1275 1111111
Since there are several elements of "ConsolidatedAssetHeader" by the document, you cannot use extractValue (because it works on a single node).
XMLTable is used instead, so that each "ConsolidatedAssetHeader" is actually mapped to a line separated from the relational.
Tags: Database
Similar Questions
-
Hello
Setup
I nested XSD schemas:
1. a XSD library, which contains definitions for common objects
2. a work-XSD, which includes the XSD library and describes the business objects.
= > Work-XSD has a dependency to the XSD library
= > Deletion of 'objects' in the library-XSD or even remove the XSD library could / should lead to a work not valid-XSD (I guess...)
Oracle
I found in the DBMS_XMLSCHEMA package:
= > So there is something like a 'status of XML schema '.DBMS_XMLSCHEMA.COMPILESCHEMA: Used to re-compile an already registered XML schema. This is useful for bringing a schema in an invalid state to a valid state.
Question
Where can I find the "State of an XML schema. ?
The USER_XML_SCHEMAS - view does not contain any status or something like that
XML schemas are not present in the "USER_OBJECTS" - see (where a State is present)
Thanks in advance
Good bye
StefanTry this
select * from all_xml_schemas ax , all_objects ao where ax.int_objname=ao.object_name;
-
Error during xml schema register
Hello
I am trying to register as a result of xml schema,
BEGIN
() dbms_xmlschema.registerSchema
"ocastatus.xsd,"
' <? XML version = "1.0"? >
< xsd: Schema
targetNamespace = "http://xmlbeans.apache.org/ocastatus."
xmlns = "http://xmlbeans.apache.org/ocastatus."
elementFormDefault = "qualified".
container = "http://www.w3.org/2001/XMLSchema".
xmlns:xdb = "http://xmlns.oracle.com/xdb" >
< xsd: element name = "ocaStatus" type = "OCASTATUS_TYPEType" / >
< xsd: complexType name = "OCASTATUS_TYPEType" xdb:SQLType = "OCASTATUS_TYPE" >
< xsd: SEQUENCE >
< xsd: element name = "status" type = "STATUS_TYPEType" xdb:SQLName = "status" maxOccurs = "unbounded" xdb:SQLCollType = "STATUS_V" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< xsd: complexType name = "STATUS_TYPEType" xdb:SQLType = "STATUS_TYPE" >
< xsd: SEQUENCE >
< xsd: element name = "statusCode" type = "xsd: double ' xdb:SQLName = 'statusCode' xdb:SQLType = 'NUMBER' / >
< xsd: element name = "statusDate' xdb:SQLName = 'statusDate' xdb:SQLType = 'VARCHAR2' >
< xsd:simpleType >
< xsd:restriction base = "XSD: String" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
< xsd: element name = "userId" xdb:SQLName = 'userId' xdb:SQLType = 'VARCHAR2' >
< xsd:simpleType >
< xsd:restriction base = "XSD: String" >
< xsd:maxLength value = "50" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
< xsd: element name = "comment" xdb:SQLName = "comment" xdb:SQLType = "VARCHAR2" >
< xsd:simpleType >
< xsd:restriction base = "XSD: String" >
< xsd:maxLength value = "100" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: Schema > ',
true,
true,
(false);
END;
In doing so, I'm following error.
ORA-20001: enable_hierarchy_internal
ORA-06512: at "XDB". DBMS_XDBZ', line 28
ORA-06512: at line 1
ORA-06512: at "XDB". DBMA_XMLSCHEMA_INT', line 3
ORA-06512: at "XDB". DBMA_XMLSCHEMA', line 14
ORA-06512: at line 2
Provider code error 20001 on line: 1
I have no idea about this error. I don't know if it is related to the privileges of the user.
The user that I use has privileges, more
CREATE SESSION
CREATE TABLE
CREATE THE CLUSTER
CREATE SEQUENCES
CREATE PROCEDURE
CREATE THE TRIGGER
CREATE THE TYPE
OPERATOR TO CREATE
CREATE INDEXTYPE
Help, please.
Thanks in advance.Hello
From a previous post by mdrake.
Required privileges are:
Grant create any directory, drop any directory, connect, resources, alter session, create the view & USERNAME identified by PASSWORD &
/HTH,
Chris
-
I am trying to save the xml schema and get error
SQL > START
(2) DBMS_XMLSCHEMA.registerSchema
3 SCHEMAURL = > "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd"
4 SCHEMADOC = > bfilename('XMLDIR','fgdc-std-001-1998.dtd'),
5 CSID = > nls_charset_id ('AL32UTF8'));
6 END;
6 N
BEGIN
*
ERROR on line 1:
ORA-31011: XML parsing failed
ORA-19202: an error has occurred in the processing of XML
LPX-00247: invalid declaration DTD (Document Type)
Error on line 45
ORA-06512: at "XDB". DBMS_XMLSCHEMA_INT', line 37
ORA-06512: at "XDB". DBMS_XMLSCHEMA', line 61
ORA-06512: at "XDB". DBMS_XMLSCHEMA", line 126
ORA-06512: at line 2
the xml code that I am trying register is
<? XML version = "1.0" encoding = "ISO-8859-1? >
<! DOCTYPE metadata SYSTEM "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd" >
< metadata >
< idinfo >
< quote >
< citeinfo >
< source > FDM < / original >
< pubdate > 20040512 < / pubdate >
< pubtime > 09000000 < / pubtime >
< title > BAS_EASEMENT < / title >
etc.
Pls help me for the recording of the xml schema.If your DTD is valid...
.. then the following may help...
Re: conversion of xmltype, error ORA-31011
See the last comment on this mentioned by Mark Drake
-- -- Turn off DTD Validation -- alter session set events ='31156 trace name context forever, level 2 /
-
In the Studio of BEA WorkSpace XML schema Validation error
When I validate my XML schemas through the BEA WorkSpace Studio Version: version 1.1: 1090602 identifier the track happens error:
Reference file contains errors (file:/MyPath/MyXMLSchema1.xsd).
For more information, click with the right button on the message and select "show details...". »
See details:
The below errors were detected during the validation of the 'MyXMLSchema1.xsd' file via the file 'MyXMLSchema2.xsd '.
In most cases, these errors can be detected by validating 'MyXMLSchema1.xsd' directly.
However, it is possible that errors occur only when MyXMLSchema1.xsd is posted under MyXMLSchema2.xsd.
CBC-resolve: could not resolve the name 'srv:Services' component 'type definition' a (e)
When I validate my XML schemas through the oepe_11gR1PS4 (Eclipse platform Version: 3.6.2 Build id: M20110210-1200) no errors not found.
My project is a (project ALSB) OSB.
What is happen?BEA WorkSpace Studio Version: version 1.1: 1090602 identifier use xerces bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org.apache.xerces_2.8.0.v200606131651
oepe_11gR1PS4 (Eclipse platform Version: 3.6.2 Build id: M20110210-1200) use xerces Oracle\Middleware_10.3.5\oepe_11gR1PS4\plugins\org.apache.xerces_2.9.0.v201005080400.jar
If you replace the follow-up files:
bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org. Apache.xerces_2.8.0.v200606131651\resolver.jar
bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org. Apache.xerces_2.8.0.v200606131651\xercesImpl.jar
bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org. Apache.xerces_2.8.0.v200606131651\xml-APIs.jarfor:
Oracle\Middleware_10.3.5\oepe_11gR1PS4\plugins\org. Apache.xerces_2.9.0.v201005080400.jarBEA WorkSpace Studio Version: version 1.1: 1090602 identifier is validated without errors (the same oepe_11gR1PS4 behavior)
-
XML Schema register corrupts table
Hello
We have a problem when trying to re register the schema. The table check constraint valid is corrupt after that register us the schema.
The steps are below:
1. the table:
CREATE TABLE MYTABLE
(
IDENTIFICATION NUMBER,
Branch_Xml Xmltype)
XmlType BRANCH_XML Store as an object / relational
XmlSchema 'branch.xsd' element 'branch '.
/
ALTER TABLE MYTABLE add constraint VALID_BRANCH Check (Xmlisvalid (Branch_Xml) = 1);
ALTER Table MYTABLE add 'BRANCHES_PK' CONSTRAINT PRIMARY KEY (ID);
2 save the diagram below:
Start
DBMS_XMLSCHEMA. REGISTERSCHEMA)
schemaurl = > "branch.xsd"
schemadoc = > BFILENAME ('XML_SCHEMAS ','branch.xsd ')
);
end;
3. then, when we try to re register the xsd above, this doesn't MYTABLE corrupted.
SQL error: ORA-04063: a table "MYTABLE" error
Thanks for the help in advance.
Kind regards
Sandeep
Published by: user10359771 on March 25, 2010 02:17But in a practical scenario, there should be a way to register the schema in XSD format could change over time.
-
To its relevant xml schema xml file validation error
Hi all
I have 3 files to schema files to xml where I generated an XML using PLSQL. I get this error when I try to validate the xml schema file:
' ' * WMWROOT ' UNDECLARED *. Can someone help me with this, I included the main schema file and also the generated XML.
XML schema file:
Itemdownload.xsd:
<? XML version = "1.0" encoding = "utf-8"? >
< xs: Schema id = "Elementtelecharger" targetNamespace = "http://www.manh.com/ILSNET/Interface" elementFormDefault = "qualified".
xmlns = "http://www.manh.com/ILSNET/Interface" xmlns: XS = "http://www.w3.org/2001/XMLSchema" version = "2007" >
< xs: include schemaLocation = "Item.xsd" / > "
< xs: element name = "WMWROOT" nillable = "true" type = "WMWROOT" / >
< name XS: complexType = "WMWROOT" >
< xs: SEQUENCE >
< xs: ELEMENT minOccurs = "0" maxOccurs = "1" name = "WMWDATA" type = "WMWDATA" / >
< / xs: SEQUENCE >
< / xs: complexType >
< xs: element name = "WMWDATA" nillable = "true" type = "WMWDATA" / >
< name XS: complexType = "WMWDATA" >
< xs: SEQUENCE >
< xs: ELEMENT minOccurs = "0" maxOccurs = "1" name = "Items" type = "ItemList" / >
< / xs: SEQUENCE >
< / xs: complexType >
< xs: element name = "Items" nillable = "false" type = "ItemList" / >
< name XS: complexType "ItemList" = >
< xs: SEQUENCE >
< xs: ELEMENT minOccurs = "1" maxOccurs = "unbounded" name = "Item" nillable = "true" type = "Item" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: Schema >
The generated xml file is:
<? XML version = "1.0"? >
< WMWROOT >
< WMWDATA >
elements <>
< item > < Action > save < / Action > < UserDef8 > 10074 < / UserDef8 > < Y Active > < / assets > < AvailableOnWeb > N < / AvailableOnWeb > < company > OR: ResMed Corp < / company > < cost > 285.93 < / cost > < Desc > HP DESKJET PRINTER (EMBLA) < / Desc > < HarmCode > < UserDef8 > 10074 < / UserDef8 > < / HarmCode > < point > R145-794 < / Item > < InventoryTracking > Y < / InventoryTracking > < LongDesc > HP DESKJET PRINTER (EMBLA) < / LongDesc > < LotControlled > Y < / LotControlled > < SerialNumTrackOutbound > 7 < / SerialNumTrackOutbound > < StorageTemplate > < model > each < / model > < / StorageTemplate > < xrefs > < Xref > < XRefItem > < / XRefItem > < / XRef > < / XRefs > < / Item >
< item > < Action > Save < / Action > < UserDef8 > 80862 < / UserDef8 > < Y Active > < / assets > < AvailableOnWeb > N < / AvailableOnWeb > < company > UO: ResMed Corp < / company > < cost > 54.27 < / cost > < Desc > Mirage Micro mask MED & amp; LG-Internet Pkg < / Desc > < HarmCode > < UserDef8 > 80862 < / UserDef8 > < / HarmCode > < point > 16359 < / Item > < InventoryTracking > Y < / InventoryTracking > < LongDesc > Mirage Micro mask MED & amp; LG-Internet Pkg < / LongDesc > < LotControlled > Y < / LotControlled > < SerialNumTrackOutbound > N < / SerialNumTrackOutbound > < StorageTemplate > < model > each < / model > < / StorageTemplate > < xrefs > < Xref > < XRefItem > 619498163597 < / XRefItem > < / XRef > < / XRefs > < / Item >
< / object >
< / WMWDATA >
< / WMWROOT >
I can provide you with 2 other if necessary dependent schemas. Please answer me!I don't know how this issue applies to the XML DB, but I'll answer anyway.
Your schema resides in the
targetNamespace = "http://www.manh.com/ILSNET/Interface."
namespace, so by default, all definitions can be found in this namespace
The generated XML is in no namespace. That's why you see the error
'WMWROOT' UNDECLARED
Since the schema has no definitions in the same XML namespace uses. You must put your XML file in the same namespace as the schema in order for validation to work, through the
xmlns = "http://www.manh.com/ILSNET/Interface." -
Hello
I use the suite of xml schema to generate an XMLType table,
Here is the XML that I intend to generate<?xml version="1.0" encoding="utf-16"?> <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="Attorney" type="AttorneyType"/> <xsd:complexType name="AttorneyType"> <xsd:sequence> <xsd:element name="Metadata" type="MetadataType" /> <xsd:element name="Address" type="AddressType" /> <xsd:element name="Email" type="EmailType" /> <xsd:element name="Fax" type="FaxType" /> <xsd:element name="Internet" type="InternetType" /> <xsd:element name="Name" type="NameType" /> <xsd:element name="NarrativeText" type="xsd:string" /> <xsd:element name="Phone" type="PhoneType" /> <xsd:element name="PracticeArea" type="PracticeAreaType" /> <xsd:element name="Source" type="SourceType" /> <xsd:element name="WestProductCategory" type="xsd:string" /> </xsd:sequence> <xsd:attribute name="active" type="xsd:boolean" /> </xsd:complexType> <xsd:complexType name="SourceType"> <xsd:sequence> <xsd:element name="Dataset" type="xsd:string" /> <xsd:element name="SourceId" type="xsd:int" /> <xsd:element name="SourceName" type="xsd:string" /> </xsd:sequence> </xsd:complexType> <xsd:complexType name="PracticeAreaType"> <xsd:sequence> <xsd:element name="Description" type="xsd:string" /> <xsd:element name="PracticeAreaCode" type="xsd:int" /> <xsd:element name="TopicalCode" type="xsd:int" /> </xsd:sequence> <xsd:attribute name="new" type="xsd:boolean" /> </xsd:complexType> <xsd:complexType name="PhoneType"> <xsd:sequence> <xsd:element name="Description" type="xsd:string" /> <xsd:element name="Notes" type="xsd:string" /> <xsd:element name="Number" type="xsd:string" /> </xsd:sequence> <xsd:attribute name="new" type="xsd:boolean" /> </xsd:complexType> <xsd:complexType name="NameType"> <xsd:sequence> <xsd:element name="firstName" type="xsd:string" /> <xsd:element name="lastName" type="xsd:string" /> <xsd:element name="middleName" type="xsd:string" /> </xsd:sequence> <xsd:attribute name="new" type="xsd:boolean" /> </xsd:complexType> <xsd:complexType name="InternetType"> <xsd:sequence> <xsd:element name="Description" type="xsd:string" /> <xsd:element name="Notes" type="xsd:string" /> <xsd:element name="Url" type="xsd:string" /> </xsd:sequence> <xsd:attribute name="new" type="xsd:boolean" /> </xsd:complexType> <xsd:complexType name="FaxType"> <xsd:sequence> <xsd:element name="Description" type="xsd:string" /> <xsd:element name="Notes" type="xsd:string" /> <xsd:element name="Number" type="xsd:string" /> </xsd:sequence> <xsd:attribute name="new" type="xsd:boolean" /> </xsd:complexType> <xsd:complexType name="EmailType"> <xsd:sequence> <xsd:element name="Description" type="xsd:string" /> <xsd:element name="Notes" type="xsd:string" /> <xsd:element name="Url" type="xsd:string" /> </xsd:sequence> <xsd:attribute name="new" type="xsd:boolean" /> </xsd:complexType> <xsd:complexType name="AddressType"> <xsd:sequence> <xsd:element name="City" type="xsd:string" /> <xsd:element name="Country" type="xsd:string" /> <xsd:element name="Line" type="xsd:string" /> <xsd:element name="State" type="xsd:string" /> <xsd:element name="Zip" type="xsd:int" /> </xsd:sequence> <xsd:attribute name="new" type="xsd:boolean" /> </xsd:complexType> <xsd:complexType name="MetadataType"> <xsd:sequence> <xsd:element name="CreatedTS" type="xsd:decimal" /> <xsd:element name="Deceased" type="xsd:boolean" /> <xsd:element name="DirectoryType" type="xsd:int" /> <xsd:element name="Disbarred" type="xsd:boolean" /> <xsd:element name="EntityInstanceUuid" type="xsd:string" /> <xsd:element name="EntityType" type="xsd:string" /> <xsd:element name="FamilyUuid" type="xsd:string" /> <xsd:element name="FirmSite" type="xsd:string" /> <xsd:element name="ImageID" type="xsd:string" /> <xsd:element name="MemberAssociations" type="xsd:string" /> <xsd:element name="ModifiedBy" type="xsd:string" /> <xsd:element name="ModifiedTS" type="xsd:decimal" /> <xsd:element name="OrgType" type="xsd:string" /> <xsd:element name="OrgUuids" type="xsd:string" /> <xsd:element name="Organization" type="xsd:string" /> <xsd:element name="Practicing" type="xsd:boolean" /> <xsd:element name="ProfileUuid" type="xsd:string" /> <xsd:element name="Retired" type="xsd:boolean" /> <xsd:element name="Role" type="xsd:string" /> <xsd:element name="Type" type="xsd:string" /> <xsd:element name="Uuid" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:schema>
The schema gets registered without any error but when I try to create the table using the xml schema, I get the following error.<Attorney active="true"> <Metadata> <CreatedTS>1198773095000</CreatedTS> <Deceased>false</Deceased> <DirectoryType>1</DirectoryType> <Disbarred>false</Disbarred> <EntityInstanceUuid> I1ccc6d800cbb11dd86d5f687b7443f19</EntityInstanceUuid> <EntityType>ACTRESS</EntityType> <FamilyUuid>Ia5958e30ca6111d8b6ca908fe47590bb</FamilyUuid> <FirmSite></FirmSite> <ImageID></ImageID> <MemberAssociations></MemberAssociations> <ModifiedBy>Bermuda</ModifiedBy> <ModifiedTS>1208463367255</ModifiedTS> <OrgType></OrgType> <OrgUuids></OrgUuids> <Organization></Organization> <Practicing>true</Practicing> <ProfileUuid>I1e3bd97e1dd211b2af25f90092082940</ProfileUuid> <Retired>false</Retired> <Role>US Private Practice</Role> <Type>ATTORNEY</Type> <Uuid>I1ccc6d800cbb11dd86d5f687b7443f19</Uuid> </Metadata> <Address new="false"> <City>California</City> <Country>United States of America</Country> <Line>100 Wall Street</Line> <State>CA</State> <Zip>10005</Zip> </Address> <Email new="false"> <Description>Email Address</Description> <Notes>Email Address</Notes> <Url>[email protected]</Url> </Email> <Fax new="false"> <Description>Fax Number</Description> <Notes>Fax Number</Notes> <Number>(212) 687-0659</Number> </Fax> <Internet new="false"> <Description>Internet URL</Description> <Notes>Internet URL</Notes> <Url>http://www.harrisbeach.com</Url> </Internet> <Name new="false"> <firstName>Katrina</firstName> <lastName>Kaif</lastName> <middleName>T</middleName> </Name> <NarrativeText>Katrina Kaif (born Katrina Turquotte on 16 July 1984) is a British Indian actress and model who has appeared in Bollywood, Telugu and Malayalam films.</NarrativeText> <Phone new="false"> <Description>Phone Number</Description> <Notes>Phone Number</Notes> <Number>(212) 313-5439</Number> </Phone> <PracticeArea new="false"> <Description>Litigation Appeals</Description> <PracticeAreaCode>934</PracticeAreaCode> <TopicalCode>934</TopicalCode> </PracticeArea> <Source> <Dataset>release-5-old</Dataset> <SourceId>0337159902</SourceId> <SourceName>WLD</SourceName> </Source> <WestProductCategory></WestProductCategory> </Attorney>
I checked the pattern several times. Everything seems to go well with the schema, or I'm missing something.ORA-19003 : Missing XML root element name
Please help me to identify the problem.
Thank you.Hello
It works fine for me, using the following statement:
CREATE TABLE test_table OF XMLTYPE XMLTYPE STORE AS OBJECT RELATIONAL XMLSCHEMA "http://xmlns.oracle.com/xdb/schemas/DEV/test_otn.xsd" ELEMENT "Attorney";
where 'test_otn.xsd' is the XML schema you provided.
Could you post the statement you are running?
-
XML parsing error - "Please help."
Use livecycle designer for some time, I'm quite new to XML.
I added a normal button with send to my form be sent by e-mail feature and it works well.
However, we would like to have email pre-fill the subject line and the body with a set of instructions for our users.
After many searches google and forum, I have the line of XML
submit format = "pdf" textEncoding = "UTF-16" xdpContent = 'pdf datasets xfdf' target = "mailto: " [email protected] "subject ="Form completed for approval - traveler - travel Date"& body = amp" (email body) "/ > ".
but I get the following error: XML parsing error: not well-formed (invalid token) (error code 4), line 10220, column 202 of the file
relates to the 'after the word Date.
Does anyone know how can I fix? and if this is going to do what I'm trying to achieve?
Thank you
Hello
the submit element does not support the attribute of the subject, there is only a target attribute that contains a version of the string after the mailto scheme.
Change you xml source in it.
-
How to read the data with different XML schemas within the unique connection?
- I have Oracle database 11g
- I access it via JDBC: Slim, version 11.2.0.3, same as xdb.
- I have several tables, each has an XMLType column, all based on patterns.
- There are three XML schemas different registered in the DB
- Maybe I need to read the XML data in multiple tables.
- If all the XMLTypes have the same XML schema, there is no problem,
- If patterns are different, the second reading will throw BindXMLException.
- If I reset the connection between the readings of the XMLType column with different schemas, it works.
The question is: How can I configure the driver, or the connection to be able to read the data with different XML schemas without resetting the connection (which is expensive).
Code to get data from XMLType is the implementation of case study:
1 ResultSet resultSet = statement.executeQuery( sql ) ;
2 String result = null ;
3 while(resultSet.next()) {
4 SQLXML sqlxml = resultSet.getSQLXML(1) ;
5 result = sqlxml.getString() ;
6 sqlxml.free();
7 }
8 resultSet.close();
9 return result ;It turns out, that I needed to serialize the XML on the server and read it as BLOB. Like this:
1 final Statement statement = connection.createStatement() ; 2 final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ; 3 ResultSet resultSet = statement.executeQuery( sql ) ; 4 String result = null ; 5 while(resultSet.next()) { 6 Blob blob = resultSet.getBlob( 1 ); 7 InputStream inputStream = blob.getBinaryStream(); 8 result = new Scanner( inputStream ).useDelimiter( "\\A" ).next(); 9 inputStream.close(); 10 blob.free(); 11 } 12 resultSet.close(); 13 statement.close(); 14 15 System.out.println( result ); 16 return result ; 17
Then it works. Still, can't get it work with XMLType in resultset. On the customer XML unwrapping explodes trying to pass to another XML schema. JDBC/XDB problem?
-
Cannot export XML schema objects
Hello
I have a problem when you attempt to export objects from XML schema.
I have a data pump job that runs every day, last week, I added a few XML objects to the DB and now the data pump produces the following errors:
Output
Export: Release * 10.2.0.3.0 *-64 bit Production on Thursday, April 21, 2011 05:00:01
Copyright (c) 2003, 2005, Oracle. All rights reserved.
;;;
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With the options of partitioning and Data Mining
Departure 'SYS '. "' SYS_EXPORT_FULL_05 ': ' / * AS SYSDBA" logfile = parallel export_full.log = 12 dumpfile=exp_file%U.dmp full = y filesize = 2000 M
Current estimation using BLOCKS method...
Treatment of DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA object type
ORA-39139: data pump does not support the XMLSchema objects. TABLE_DATA: "USER01". "' application252_TAB ' will be ignored.
ORA-39139: data pump does not support the XMLSchema objects. TABLE_DATA: "USER01". "' application263_TAB ' will be ignored.
ORA-39139: data pump does not support the XMLSchema objects. TABLE_DATA: "USER01". "' tbl_form_data266_TAB ' will be ignored.
Total estimation using BLOCKS method: 131.8 GB
Object DATABASE_EXPORT/TABLESPACE of treatment type
...
I read about the error ORA-39139
It is said the old exp rather than the data pump user to export the XML schema objects
But when I run
exp file = my_dump.dmp tables = USER01.application252_TAB
as / sysdba
I get the following error:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With the options of partitioning and Data Mining
Export in US7ASCII and AL16UTF16 NCHAR character set
Server uses the character WE8ISO8859P15 (possible character set conversion) set
About to export specified tables by conventional means...
EXP-00011: USER01. TBL_FORM_DATA266_TAB does not exist
Export completed successfully with warnings.
The table seems to have disappeared from DB.
EG if I do
sqlplus USER01/pass
SQL > desc tbl_form_data266_TAB
ERROR:
ORA-04043: tbl_form_data266_TAB of the object does not exist
Any ideas?
G.Please see:
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/exp_imp.htm#CEGFIAGETable name restrictions
The following restrictions apply to the names of the tables:
* By default, the names of tables in a database are stored as uppercase. If you have a table in lowercase or lowercase name and you want to retain the respect of the case for the name of the table, you must put the name in quotes. The name must match exactly the name of the table stored in the database.
Some operating systems require that the quotes on the command line should be preceded by an escape character. Here are examples of how respect for the case can be stored in different modes of export.o using the command line:
TABLES = "------'Emp\'"o in interactive mode:
Table (T) export: "Emp".o parameter file:
TABLES = ""Emp" -
XML Parsing Error: syntax error
Hello
We are on Apps - 11.5.10.2
DB - 10.2.0.4
OS-RHEL 4.6
XML Parsing Error: syntax error
Location: http://rfdbs3.midbs.com:8000/OA_CGI/FNDWRR.exe?temp_id=670171076
Number of line 1, column 31:
Steps to follow:
1 developed a report in 10 g
2 developed a rtf
3 Registed the report in XML Publisher
4. run simultaneous applications
Whil runs the program Im getting the above error
If I create its working fine office xml file
Thank you
Valla
Published by: user13025265 on December 28, 2010 21:471 developed a report in 10 g
Since you're on 11.5.10.2, you must use Developer 6i that reports 10g is not certified with 11i
Thank you
Hussein -
ORA-00600 when saving an XML schema
Hi all, my situation: when saving a schema, the following error message appears:
[ORA-00600: internal error code, arguments: [qmtsGetCompilationContext1], [], [], [], [], [], []]
ORA-06512: at "XDB". DBMS_XMLSCHEMA_INT', line 37
ORA-06512: at "XDB". DBMS_XMLSCHEMA', line 61
ORA-06512: at "XDB". DBMS_XMLSCHEMA", line 126
ORA-06512: at line 2
I am on a test computer, laptop with Windows XP 32-bit and Oracle 10.2.0.4.0
The command is:
BEGIN
DBMS_XMLSCHEMA.registerSchema (SCHEMAURL = > 'http://hl7.ifc.cnr.it/hl7/schemas/CDAR2/infrastructure/cda/POCD_MT000040.xsd',)
SCHEMADOC = > BFILENAME ("DATA_PUMP_DIR', 'POCD_MT000040.xsd'),
CSID = > NLS_CHARSET_ID ("AL32UTF8'));
END;
The diagram includes various include files, and it's quite 87K.
Thank you to everyone,
FabrizioThere are a few known bugs associated with it. It is usually related to the schemas with complex cyclic dependencies (for example a b imported, imports imports c and c a b). Some of them are set at 11.1.x, you can see if your drawings with sign up. A bug that comes to mind is 5038284, which is fixed at 11.1 and has been backported to 10.2.0.4.0. You will probably need to open a tar and provide all of the XML schemas to determine if this fix solves your problem and ask a rear port.
-
Madam/Sir,
I log on this site everyday to make a contribution (http://theanimalrescuesite.greatergood.com/clickToGive/home.faces?siteId=3) and during the last three days, I was unable to connect. Today, I get this message: XML parsing error: State unexpected location parser: jar:file:///C:/Program%20Files%20 (x 86) /Mozilla%20Firefox/browser/omni.ja!/chrome/browser/content/browser/abt
Best regards
Peter
What Firefox locale (UI language) do you use?
Try a clean reinstall and delete the program folder before Firefox to (re) install a new copy of the current version of Firefox.
- Download the installer of Firefox and save the file to the desktop
https://www.Mozilla.org/en-us/Firefox/all/
If possible to uninstall your current version of Firefox to clean the Windows registry and settings in the security software.
- Do NOT remove the "personal data" when you uninstall your current version of Firefox, because this will remove all profile folders and you lose personal data such as bookmarks and passwords including data profiles created by other versions of Firefox.
Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.
- (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
- (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.
- It is important to remove the Firefox program folder to delete all the files and make sure that there is no problem with the files that were the remains after uninstallation.
- http://KB.mozillazine.org/Uninstalling_Firefox
Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but do NOT delete personal data when you uninstall Firefox which removes all Firefox profile folders and you lose your data.
- Download the installer of Firefox and save the file to the desktop
-
Error after installing FF34 on FF33: XML Parsing Error: undefined entity WebIDE
Hello
After installing FF34 on FF33 I get a window with this message when I close windows firefox closes too:XML parsing error: undefined entity
Location: chrome://browser/content/browser.xul
Line number 320, column 5: key < = "" command = "tools: WebIDE ' id = 'key_webide' keycode =" & amp; webide.keycode; "p =" ">."
< / key >^
What Firefox locale (UI language) do you use?
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.
- Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
- Do NOT click on the reset button on the startup window Mode safe
Maybe you are looking for
-
How to make an update of location to a group of photos at the same time?
How to make an update of location to a group of photos at the same time? This used to be a feature in iPhoto. I use El Capitan 10.11.6 and Photos 1.5
-
I reinstalled Firefox >; 7 times... I don't want Yahoo.
It maintains redirect my Web pages with the DNS lookup errors... Ebay, RX8club.com.au, steam, even Mozilla site can "access" because of course Yahoo hates Google. How the hell can I remove ALL TRACES of f * n * yahoo from Firefox. Or should I simply
-
Test serial modbus communication
Hello I would like to test server-serial communication modbus master running on the CRIO (9012) and the serial modbus slave server communication. Issues related to the: Is this possible? Two VI run simultaneously? If so, what am I doing wrong The CRI
-
error message 151/151 (registry\machine\components)
the above message came on my laptop E-system 4115C, which means that it's like that while loading Vista
-
When you try to restore the backup files, receive the error code 0 x 80070015 in Vista
I backed up my system on an external hard drive to reinstall windows vista home. When I try to restore the files to a backup location get a meesege saying device is not ready and the error code 0 x 80070015. I was told that vista home edition is unab