Extractvalue giving ORA-00932 when used in PL/SQL

Hi,
When I use the extractvalue function from within PL/SQL I get this error:
ORA-00932: inconsistent datatypes: expected NUMBER got
SINAPP.body.contentType1898_T
The same SQL statement run from SQL Plus gives me the correct result. Is there any difference in calling this function from within PL/SQL?
This is my SQL:
select extractvalue (value(p),
'/NewsML/NewsItem/NewsComponent/ContentItem/DataContent/body/body.content')
into story from sin_xml_cx_temp p where
extract(value(p),
'/NewsML/NewsItem/NewsComponent/AdministrativeMetadata/FileName/text()').getStringval() = '39039859.xml';
The Oracle version we are using is 9.2.0.3
Here is the XML schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.sin.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sin.com" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified">
<!-- enabling xml:lang attribute -->
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:complexType name="AdministrativeMetadataType">
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="FileName" type="FileNameType" minOccurs="0"/>
<xs:element name="SystemIdentifier" type="SystemIdentifierType" minOccurs="0"/>
<xs:element name="Provider" type="ProviderType" minOccurs="0"/>
<xs:element name="Creator" type="CreatorType" minOccurs="0"/>
<xs:element name="Source" type="SourceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Contributor" type="ContributorType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<!-- All attributes are optional by default!!! -->
</xs:complexType>
<xs:complexType name="AssociatedWithType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="NewsItem" type="xs:string"/>
</xs:complexType>
<xs:complexType name="BasisForChoiceType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Rank" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
<!-- The simpleContent element contains extensions or restrictions on a text-only complex
type or on a simple type as content and contains no elements. -->
</xs:complexType>
<!-- A mixed complex type element can contain attributes, elements, and text -->
<xs:complexType name="ByLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="CatalogType">
<xs:sequence>
<xs:element name="Resource" type="ResourceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="TopicUse" type="TopicUseType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Href" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CharacteristicsType">
<xs:sequence>
<xs:element name="SizeInBytes" type="SizeInBytesType" minOccurs="0"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CommentType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="TranslationOf" type="xs:IDREF"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="ContentItemType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="MediaType" type="MediaTypeType" minOccurs="0"/>
<xs:element name="Format" type="FormatType" minOccurs="0"/>
<xs:element name="MimeType" type="MimeTypeType" minOccurs="0"/>
<xs:element name="Notation" type="NotationType" minOccurs="0"/>
<xs:element name="Characteristics" type="CharacteristicsType" minOccurs="0"/>
<xs:choice minOccurs="0">
<xs:element name="Encoding" type="EncodingType"/>
<xs:element name="DataContent" type="DataContentType"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Href" type="xs:string"/>
</xs:complexType>
<xs:complexType name="ContributorType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CopyrightType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="CopyrightHolder" type="CopyrightHolderType"/>
<xs:element name="CopyrightDate" type="CopyrightDateType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CopyrightDateType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="CopyrightHolderType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="CopyrightLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="CreatorType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CreditLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="DataContentType" mixed="true">
<xs:sequence>
<xs:element name="head" type="headType"/>
<xs:element name="body" type="bodyType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="DateAndTimeType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="DateId" type="xs:string"/>
<xs:complexType name="DateLabelType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="DateLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="DefaultVocabularyForType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Context" type="xs:string" use="required"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="DeleteType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="DuidRef" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="DerivedFromType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="NewsItem" type="xs:string"/>
</xs:complexType>
<xs:complexType name="DescriptionType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="Variant" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="DescriptiveMetadataType">
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="Language" type="LanguageType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Genre" type="GenreType" minOccurs="0"/>
<xs:element name="SubjectCode" type="SubjectCodeType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="OfInterestTo" type="OfInterestToType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="TopicOccurrence" type="TopicOccurrenceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="EncodingType">
<xs:choice minOccurs="0">
<xs:element name="Encoding" type="EncodingType"/>
<xs:element name="DataContent" type="DataContentType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Notation" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="EndDateType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="FileNameType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="FirstCreatedType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="FormalNameType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="FormatType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="FutureStatusType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="GenreType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="GeographyType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="HeadLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="IdentificationType">
<xs:sequence>
<xs:element name="NewsIdentifier" type="NewsIdentifierType"/>
<xs:element name="NameLabel" type="NameLabelType" minOccurs="0"/>
<xs:element name="DateLabel" type="DateLabelType" minOccurs="0"/>
<xs:element name="Label" type="LabelType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="InsertAfterType" mixed="true">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="DuidRef" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="InsertBeforeType" mixed="true">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="DuidRef" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="InstructionType">
<xs:sequence>
<xs:element name="RevisionStatus" type="RevisionStatusType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="KeywordLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="LabelType">
<xs:sequence>
<xs:element name="LabelType" type="LabelTypeType"/>
<xs:element name="LabelText" type="LabelTextType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="LabelTextType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="LabelTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="LanguageType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="LimitationsType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="MediaTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="MetadataType">
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="MetadataType" type="MetadataTypeType"/>
<xs:element name="Property" type="PropertyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="MetadataTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="MimeTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NameLabelType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="NewsComponentType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="TopicSet" type="TopicSetType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Role" type="RoleType" minOccurs="0"/>
<xs:element name="BasisForChoice" type="BasisForChoiceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="NewsLines" type="NewsLinesType" minOccurs="0"/>
<xs:element name="AdministrativeMetadata" type="AdministrativeMetadataType" minOccurs="0"/>
<xs:element name="RightsMetadata" type="RightsMetadataType" minOccurs="0"/>
<xs:element name="DescriptiveMetadata" type="DescriptiveMetadataType" minOccurs="0"/>
<xs:element name="Metadata" type="MetadataType" minOccurs="0" maxOccurs="unbounded"/>
<xs:choice minOccurs="0">
<xs:choice maxOccurs="unbounded">
<xs:element name="NewsItem" type="NewsItemType"/>
<xs:element name="NewsItemRef" type="NewsItemRefType"/>
</xs:choice>
<xs:element name="NewsComponent" type="NewsComponentType" maxOccurs="unbounded"/>
<xs:element name="ContentItem" type="ContentItemType" maxOccurs="unbounded"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Essential" default="no">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="yes"/>
<xs:enumeration value="no"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="EquivalentsList" default="no">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="yes"/>
<xs:enumeration value="no"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="NewsEnvelopeType">
<xs:sequence>
<xs:element name="TransmissionId" type="TransmissionIdType" minOccurs="0"/>
<xs:element name="SentFrom" type="SentFromType" minOccurs="0"/>
<xs:element name="SentTo" type="SentToType" minOccurs="0"/>
<xs:element name="DateAndTime" type="DateAndTimeType"/>
<xs:element name="NewsService" type="NewsServiceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="NewsProduct" type="NewsProductType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Priority" type="PriorityType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsIdentifierType">
<xs:sequence>
<xs:element name="ProviderId" type="ProviderIdType"/>
<xs:element ref="DateId"/>
<xs:element name="NewsItemId" type="NewsItemIdType"/>
<xs:element name="RevisionId" type="RevisionIdType"/>
<xs:element ref="PublicIdentifier"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NewsItemType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="Identification" type="IdentificationType"/>
<xs:element name="NewsManagement" type="NewsManagementType"/>
<xs:choice minOccurs="0">
<xs:element name="NewsComponent" type="NewsComponentType"/>
<xs:element name="Update" type="UpdateType" maxOccurs="unbounded"/>
<xs:element name="TopicSet" type="TopicSetType"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="NewsItemIdType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="NewsItemRefType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="NewsItem" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsItemTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsLineType">
<xs:sequence>
<xs:element name="NewsLineType" type="NewsLineTypeType"/>
<xs:element name="NewsLineText" type="NewsLineTextType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsLineTextType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="NewsLineTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsLinesType">
<xs:sequence>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="HeadLine" type="HeadLineType"/>
<xs:element name="SubHeadLine" type="SubHeadLineType" minOccurs="0"/>
</xs:sequence>
<xs:element name="ByLine" type="ByLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="DateLine" type="DateLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="CreditLine" type="CreditLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="CopyrightLine" type="CopyrightLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="RightsLine" type="RightsLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="SeriesLine" type="SeriesLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="SlugLine" type="SlugLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="KeywordLine" type="KeywordLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="NewsLine" type="NewsLineType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:element name="NewsML" xdb:defaultTable="SIN_XML_CX_TEMP">
<xs:complexType>
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="TopicSet" type="TopicSetType" minOccurs="0" maxOccurs="unbounded"/>
<xs:sequence>
<xs:element name="NewsEnvelope" type="NewsEnvelopeType"/>
<xs:element name="NewsItem" type="NewsItemType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:complexType name="NewsManagementType">
<xs:sequence>
<xs:element name="NewsItemType" type="NewsItemTypeType"/>
<xs:element name="FirstCreated" type="FirstCreatedType"/>
<xs:element name="ThisRevisionCreated" type="ThisRevisionCreatedType"/>
<xs:element name="Status" type="StatusType"/>
<xs:element name="StatusWillChange" type="StatusWillChangeType" minOccurs="0"/>
<xs:element name="Urgency" type="UrgencyType" minOccurs="0"/>
<xs:element name="RevisionHistory" type="RevisionHistoryType" minOccurs="0"/>
<xs:element name="DerivedFrom" type="DerivedFromType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="AssociatedWith" type="AssociatedWithType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Instruction" type="InstructionType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsProductType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsServiceType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NotationType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="OfInterestToType">
<xs:sequence>
<xs:element name="Relevance" type="RelevanceType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="OriginType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
<xs:attribute name="Href" type="xs:string"/>
</xs:complexType>
<xs:complexType name="PartyType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="Topic" type="xs:string"/>
</xs:complexType>
<xs:complexType name="PriorityType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="PropertyType">
<xs:sequence>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
<xs:attribute name="Value" type="xs:string"/>
<xs:attribute name="ValueRef" type="xs:string"/>
<xs:attribute name="AllowedValues" type="xs:string"/>
</xs:complexType>
<xs:complexType name="ProviderType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="ProviderIdType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Vocabulary" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="PublicIdentifier" type="xs:string"/>
<xs:complexType name="RelevanceType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="ReplaceType" mixed="true">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="DuidRef" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="ResourceType">
<xs:sequence>
<xs:element name="Urn" type="UrnType" minOccurs="0"/>
<xs:element name="Url" type="UrlType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="DefaultVocabularyFor" type="DefaultVocabularyForType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="RevisionHistoryType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Href" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="RevisionIdType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="PreviousRevision" type="xs:string" use="required"/>
<xs:attribute name="Update" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="RevisionStatusType">
<xs:sequence>
<xs:element name="Status" type="StatusType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Revision" type="xs:string"/>
</xs:complexType>
<xs:complexType name="RightsHolderType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="RightsLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="RightsMetadataType">
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="Copyright" type="CopyrightType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="UsageRights" type="UsageRightsType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="RoleType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SentFromType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SentToType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SeriesLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="SizeInBytesType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="SlugLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="SourceType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="NewsItem" type="xs:string"/>
</xs:complexType>
<xs:complexType name="StartDateType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="StatusType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="StatusWillChangeType">
<xs:sequence>
<xs:element name="FutureStatus" type="FutureStatusType"/>
<xs:element name="DateAndTime" type="DateAndTimeType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubHeadLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="SubjectType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubjectCodeType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:choice>
<xs:element name="Subject" type="SubjectType"/>
<xs:element name="SubjectMatter" type="SubjectMatterType"/>
<xs:element name="SubjectDetail" type="SubjectDetailType"/>
</xs:choice>
<xs:element name="SubjectQualifier" type="SubjectQualifierType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubjectDetailType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubjectMatterType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubjectQualifierType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SystemIdentifierType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="ThisRevisionCreatedType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="TopicType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="TopicType" type="TopicTypeType" maxOccurs="unbounded"/>
<xs:element name="FormalName" type="FormalNameType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Description" type="DescriptionType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Details" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicOccurrenceType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
<xs:attribute name="Topic" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicSetType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="TopicSetRef" type="TopicSetRefType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Topic" type="TopicType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicSetRefType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="TopicSet" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicUseType">
<xs:attribute name="Topic" type="xs:string" use="required"/>
<xs:attribute name="Context" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TransmissionIdType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Repeat" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="UpdateType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="InsertBefore" type="InsertBeforeType"/>
<xs:element name="InsertAfter" type="InsertAfterType"/>
<xs:element name="Replace" type="ReplaceType"/>
<xs:element name="Delete" type="DeleteType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="UrgencyType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="UrlType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="UrnType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="UsageRightsType">
<xs:sequence>
<xs:element name="UsageType" type="UsageTypeType" minOccurs="0"/>
<xs:element name="Geography" type="GeographyType" minOccurs="0"/>
<xs:element name="RightsHolder" type="RightsHolderType" minOccurs="0"/>
<xs:element name="Limitations" type="LimitationsType" minOccurs="0"/>
<xs:element name="StartDate" type="StartDateType" minOccurs="0"/>
<xs:element name="EndDate" type="EndDateType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="UsageTypeType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="bodyType">
<xs:sequence>
<xs:element name="body.head" type="body.headType" xdb:SQLName="BODY_HEAD"/>
<xs:element name="body.content" type="body.contentType" xdb:SQLName="BODY_CONTENT"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="body.contentType">
<xs:choice maxOccurs="unbounded">
<xs:element ref="p"/>
<xs:element ref="pre"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="body.headType">
<xs:sequence>
<xs:element ref="distributor"/>
</xs:sequence>
</xs:complexType>
<xs:element name="distributor" type="xs:string"/>
<xs:complexType name="headType">
<xs:sequence>
<xs:element name="meta" type="metaType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="metaType">
<xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
<xs:attribute name="content" type="xs:string" use="required"/>
</xs:complexType>
<xs:element name="p" type="xs:string"/>
<xs:element name="pre" type="xs:string"/>
</xs:schema>

Hi,
When I use the extractvalue function from within PL/SQL I get this error:
ORA-00932: inconsistent datatypes: expected NUMBER got
SINAPP.body.contentType1898_T
The same SQL statement run from SQL Plus gives me the correct result. Is there any difference in calling this function from within PL/SQL?
This is my SQL:
select extractvalue (value(p),
'/NewsML/NewsItem/NewsComponent/ContentItem/DataContent/body/body.content')
into story from sin_xml_cx_temp p where
extract(value(p),
'/NewsML/NewsItem/NewsComponent/AdministrativeMetadata/FileName/text()').getStringval() = '39039859.xml';
The Oracle version we are using is 9.2.0.3
Here is the XML schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.sin.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sin.com" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified">
<!-- enabling xml:lang attribute -->
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:complexType name="AdministrativeMetadataType">
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="FileName" type="FileNameType" minOccurs="0"/>
<xs:element name="SystemIdentifier" type="SystemIdentifierType" minOccurs="0"/>
<xs:element name="Provider" type="ProviderType" minOccurs="0"/>
<xs:element name="Creator" type="CreatorType" minOccurs="0"/>
<xs:element name="Source" type="SourceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Contributor" type="ContributorType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<!-- All attributes are optional by default!!! -->
</xs:complexType>
<xs:complexType name="AssociatedWithType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="NewsItem" type="xs:string"/>
</xs:complexType>
<xs:complexType name="BasisForChoiceType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Rank" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
<!-- The simpleContent element contains extensions or restrictions on a text-only complex
type or on a simple type as content and contains no elements. -->
</xs:complexType>
<!-- A mixed complex type element can contain attributes, elements, and text -->
<xs:complexType name="ByLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="CatalogType">
<xs:sequence>
<xs:element name="Resource" type="ResourceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="TopicUse" type="TopicUseType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Href" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CharacteristicsType">
<xs:sequence>
<xs:element name="SizeInBytes" type="SizeInBytesType" minOccurs="0"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CommentType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="TranslationOf" type="xs:IDREF"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="ContentItemType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="MediaType" type="MediaTypeType" minOccurs="0"/>
<xs:element name="Format" type="FormatType" minOccurs="0"/>
<xs:element name="MimeType" type="MimeTypeType" minOccurs="0"/>
<xs:element name="Notation" type="NotationType" minOccurs="0"/>
<xs:element name="Characteristics" type="CharacteristicsType" minOccurs="0"/>
<xs:choice minOccurs="0">
<xs:element name="Encoding" type="EncodingType"/>
<xs:element name="DataContent" type="DataContentType"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Href" type="xs:string"/>
</xs:complexType>
<xs:complexType name="ContributorType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CopyrightType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="CopyrightHolder" type="CopyrightHolderType"/>
<xs:element name="CopyrightDate" type="CopyrightDateType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CopyrightDateType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="CopyrightHolderType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="CopyrightLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="CreatorType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="CreditLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="DataContentType" mixed="true">
<xs:sequence>
<xs:element name="head" type="headType"/>
<xs:element name="body" type="bodyType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="DateAndTimeType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="DateId" type="xs:string"/>
<xs:complexType name="DateLabelType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="DateLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="DefaultVocabularyForType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Context" type="xs:string" use="required"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="DeleteType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="DuidRef" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="DerivedFromType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="NewsItem" type="xs:string"/>
</xs:complexType>
<xs:complexType name="DescriptionType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="Variant" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="DescriptiveMetadataType">
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="Language" type="LanguageType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Genre" type="GenreType" minOccurs="0"/>
<xs:element name="SubjectCode" type="SubjectCodeType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="OfInterestTo" type="OfInterestToType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="TopicOccurrence" type="TopicOccurrenceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="EncodingType">
<xs:choice minOccurs="0">
<xs:element name="Encoding" type="EncodingType"/>
<xs:element name="DataContent" type="DataContentType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Notation" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="EndDateType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="FileNameType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="FirstCreatedType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="FormalNameType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="FormatType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="FutureStatusType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="GenreType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="GeographyType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="HeadLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="IdentificationType">
<xs:sequence>
<xs:element name="NewsIdentifier" type="NewsIdentifierType"/>
<xs:element name="NameLabel" type="NameLabelType" minOccurs="0"/>
<xs:element name="DateLabel" type="DateLabelType" minOccurs="0"/>
<xs:element name="Label" type="LabelType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="InsertAfterType" mixed="true">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="DuidRef" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="InsertBeforeType" mixed="true">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="DuidRef" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="InstructionType">
<xs:sequence>
<xs:element name="RevisionStatus" type="RevisionStatusType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="KeywordLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="LabelType">
<xs:sequence>
<xs:element name="LabelType" type="LabelTypeType"/>
<xs:element name="LabelText" type="LabelTextType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="LabelTextType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="LabelTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="LanguageType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="LimitationsType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="MediaTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="MetadataType">
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="MetadataType" type="MetadataTypeType"/>
<xs:element name="Property" type="PropertyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="MetadataTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="MimeTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NameLabelType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="NewsComponentType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="TopicSet" type="TopicSetType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Role" type="RoleType" minOccurs="0"/>
<xs:element name="BasisForChoice" type="BasisForChoiceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="NewsLines" type="NewsLinesType" minOccurs="0"/>
<xs:element name="AdministrativeMetadata" type="AdministrativeMetadataType" minOccurs="0"/>
<xs:element name="RightsMetadata" type="RightsMetadataType" minOccurs="0"/>
<xs:element name="DescriptiveMetadata" type="DescriptiveMetadataType" minOccurs="0"/>
<xs:element name="Metadata" type="MetadataType" minOccurs="0" maxOccurs="unbounded"/>
<xs:choice minOccurs="0">
<xs:choice maxOccurs="unbounded">
<xs:element name="NewsItem" type="NewsItemType"/>
<xs:element name="NewsItemRef" type="NewsItemRefType"/>
</xs:choice>
<xs:element name="NewsComponent" type="NewsComponentType" maxOccurs="unbounded"/>
<xs:element name="ContentItem" type="ContentItemType" maxOccurs="unbounded"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Essential" default="no">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="yes"/>
<xs:enumeration value="no"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="EquivalentsList" default="no">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="yes"/>
<xs:enumeration value="no"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="NewsEnvelopeType">
<xs:sequence>
<xs:element name="TransmissionId" type="TransmissionIdType" minOccurs="0"/>
<xs:element name="SentFrom" type="SentFromType" minOccurs="0"/>
<xs:element name="SentTo" type="SentToType" minOccurs="0"/>
<xs:element name="DateAndTime" type="DateAndTimeType"/>
<xs:element name="NewsService" type="NewsServiceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="NewsProduct" type="NewsProductType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Priority" type="PriorityType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsIdentifierType">
<xs:sequence>
<xs:element name="ProviderId" type="ProviderIdType"/>
<xs:element ref="DateId"/>
<xs:element name="NewsItemId" type="NewsItemIdType"/>
<xs:element name="RevisionId" type="RevisionIdType"/>
<xs:element ref="PublicIdentifier"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NewsItemType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="Identification" type="IdentificationType"/>
<xs:element name="NewsManagement" type="NewsManagementType"/>
<xs:choice minOccurs="0">
<xs:element name="NewsComponent" type="NewsComponentType"/>
<xs:element name="Update" type="UpdateType" maxOccurs="unbounded"/>
<xs:element name="TopicSet" type="TopicSetType"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="NewsItemIdType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="NewsItemRefType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="NewsItem" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsItemTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsLineType">
<xs:sequence>
<xs:element name="NewsLineType" type="NewsLineTypeType"/>
<xs:element name="NewsLineText" type="NewsLineTextType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsLineTextType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="NewsLineTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsLinesType">
<xs:sequence>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="HeadLine" type="HeadLineType"/>
<xs:element name="SubHeadLine" type="SubHeadLineType" minOccurs="0"/>
</xs:sequence>
<xs:element name="ByLine" type="ByLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="DateLine" type="DateLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="CreditLine" type="CreditLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="CopyrightLine" type="CopyrightLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="RightsLine" type="RightsLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="SeriesLine" type="SeriesLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="SlugLine" type="SlugLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="KeywordLine" type="KeywordLineType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="NewsLine" type="NewsLineType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:element name="NewsML" xdb:defaultTable="SIN_XML_CX_TEMP">
<xs:complexType>
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="TopicSet" type="TopicSetType" minOccurs="0" maxOccurs="unbounded"/>
<xs:sequence>
<xs:element name="NewsEnvelope" type="NewsEnvelopeType"/>
<xs:element name="NewsItem" type="NewsItemType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:complexType name="NewsManagementType">
<xs:sequence>
<xs:element name="NewsItemType" type="NewsItemTypeType"/>
<xs:element name="FirstCreated" type="FirstCreatedType"/>
<xs:element name="ThisRevisionCreated" type="ThisRevisionCreatedType"/>
<xs:element name="Status" type="StatusType"/>
<xs:element name="StatusWillChange" type="StatusWillChangeType" minOccurs="0"/>
<xs:element name="Urgency" type="UrgencyType" minOccurs="0"/>
<xs:element name="RevisionHistory" type="RevisionHistoryType" minOccurs="0"/>
<xs:element name="DerivedFrom" type="DerivedFromType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="AssociatedWith" type="AssociatedWithType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Instruction" type="InstructionType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsProductType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NewsServiceType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="NotationType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="OfInterestToType">
<xs:sequence>
<xs:element name="Relevance" type="RelevanceType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="OriginType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
<xs:attribute name="Href" type="xs:string"/>
</xs:complexType>
<xs:complexType name="PartyType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="Topic" type="xs:string"/>
</xs:complexType>
<xs:complexType name="PriorityType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="PropertyType">
<xs:sequence>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
<xs:attribute name="Value" type="xs:string"/>
<xs:attribute name="ValueRef" type="xs:string"/>
<xs:attribute name="AllowedValues" type="xs:string"/>
</xs:complexType>
<xs:complexType name="ProviderType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="ProviderIdType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Vocabulary" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="PublicIdentifier" type="xs:string"/>
<xs:complexType name="RelevanceType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="ReplaceType" mixed="true">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="DuidRef" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="ResourceType">
<xs:sequence>
<xs:element name="Urn" type="UrnType" minOccurs="0"/>
<xs:element name="Url" type="UrlType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="DefaultVocabularyFor" type="DefaultVocabularyForType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="RevisionHistoryType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Href" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="RevisionIdType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="PreviousRevision" type="xs:string" use="required"/>
<xs:attribute name="Update" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="RevisionStatusType">
<xs:sequence>
<xs:element name="Status" type="StatusType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Revision" type="xs:string"/>
</xs:complexType>
<xs:complexType name="RightsHolderType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="RightsLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="RightsMetadataType">
<xs:sequence>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="Copyright" type="CopyrightType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="UsageRights" type="UsageRightsType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="RoleType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SentFromType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SentToType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SeriesLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="SizeInBytesType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="SlugLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="SourceType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Party" type="PartyType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="NewsItem" type="xs:string"/>
</xs:complexType>
<xs:complexType name="StartDateType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="StatusType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="StatusWillChangeType">
<xs:sequence>
<xs:element name="FutureStatus" type="FutureStatusType"/>
<xs:element name="DateAndTime" type="DateAndTimeType"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubHeadLineType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="SubjectType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubjectCodeType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:choice>
<xs:element name="Subject" type="SubjectType"/>
<xs:element name="SubjectMatter" type="SubjectMatterType"/>
<xs:element name="SubjectDetail" type="SubjectDetailType"/>
</xs:choice>
<xs:element name="SubjectQualifier" type="SubjectQualifierType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubjectDetailType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubjectMatterType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SubjectQualifierType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="SystemIdentifierType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="ThisRevisionCreatedType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="TopicType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="TopicType" type="TopicTypeType" maxOccurs="unbounded"/>
<xs:element name="FormalName" type="FormalNameType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Description" type="DescriptionType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Details" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicOccurrenceType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
<xs:attribute name="Topic" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicSetType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Catalog" type="CatalogType" minOccurs="0"/>
<xs:element name="TopicSetRef" type="TopicSetRefType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Topic" type="TopicType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicSetRefType">
<xs:sequence>
<xs:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="TopicSet" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicTypeType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TopicUseType">
<xs:attribute name="Topic" type="xs:string" use="required"/>
<xs:attribute name="Context" type="xs:string"/>
</xs:complexType>
<xs:complexType name="TransmissionIdType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="Repeat" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="UpdateType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="InsertBefore" type="InsertBeforeType"/>
<xs:element name="InsertAfter" type="InsertAfterType"/>
<xs:element name="Replace" type="ReplaceType"/>
<xs:element name="Delete" type="DeleteType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="UrgencyType">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="FormalName" type="xs:string" use="required"/>
<xs:attribute name="Vocabulary" type="xs:string"/>
<xs:attribute name="Scheme" type="xs:string"/>
</xs:complexType>
<xs:complexType name="UrlType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="UrnType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="UsageRightsType">
<xs:sequence>
<xs:element name="UsageType" type="UsageTypeType" minOccurs="0"/>
<xs:element name="Geography" type="GeographyType" minOccurs="0"/>
<xs:element name="RightsHolder" type="RightsHolderType" minOccurs="0"/>
<xs:element name="Limitations" type="LimitationsType" minOccurs="0"/>
<xs:element name="StartDate" type="StartDateType" minOccurs="0"/>
<xs:element name="EndDate" type="EndDateType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="UsageTypeType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Origin" type="OriginType"/>
</xs:choice>
<xs:attribute name="Duid" type="xs:ID"/>
<xs:attribute name="Euid" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="AssignedBy" type="xs:string"/>
<xs:attribute name="Importance" type="xs:string"/>
<xs:attribute name="Confidence" type="xs:string"/>
<xs:attribute name="HowPresent" type="xs:string"/>
<xs:attribute name="DateAndTime" type="xs:string"/>
</xs:complexType>
<xs:complexType name="bodyType">
<xs:sequence>
<xs:element name="body.head" type="body.headType" xdb:SQLName="BODY_HEAD"/>
<xs:element name="body.content" type="body.contentType" xdb:SQLName="BODY_CONTENT"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="body.contentType">
<xs:choice maxOccurs="unbounded">
<xs:element ref="p"/>
<xs:element ref="pre"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="body.headType">
<xs:sequence>
<xs:element ref="distributor"/>
</xs:sequence>
</xs:complexType>
<xs:element name="distributor" type="xs:string"/>
<xs:complexType name="headType">
<xs:sequence>
<xs:element name="meta" type="metaType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="metaType">
<xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
<xs:attribute name="content" type="xs:string" use="required"/>
</xs:complexType>
<xs:element name="p" type="xs:string"/>
<xs:element name="pre" type="xs:string"/>
</xs:schema>

Similar Messages

  • URGENT : ORA 302000 when using TEXT_IO.fopen

    Hi,
    I get this error ORA 302000 when using TEXT_IO package, the code I use is
    new_file:=text_io.fopen('c:\text.txt','r')
    i don't have the description of this ORA 302000 , pls does anyone have it?

    Hi,
    I know it's been 2 years but it's still up to date for me.
    I tried the suggested piece of code to trace the error but it did not bring anything more
    EXCEPTION
    When Others then
    srw.Message( 2, 'EXCEPTION ' || SQLCODE || ' in common package. Can not open the file ');
    IF SQLCODE = -302000 then
    LOOP
    EXIT WHEN TOOL_ERR.NERRORS = 0;
    SRW.MESSAGE( 667, TO_CHAR(TOOL_ERR.CODE) || ': ' || TOOL_ERR.MESSAGE);
    TOOL_ERR.POP;
    END LOOP;
    END IF;
    srw.Message( 3, 'EXCEPTION ' || SQLCODE || ' in com package. Can not open the file ' || I_Desname || ' : ' || SQLERRM );
    Only Message 2 and 3 are displayed in the trace file
    Any other suggestion?
    Manu

  • Error ORA-06502 When using function REPLACE in PL/SQL

    Hi,
    I have a PL/SQL procedure which gives error 'Error ORA-06502 When using function REPLACE in PL/SQL' when the string value is quite long (I noticed this with a string 9K in length)
    variable var_a is of type CLOB
    and the assignment statement where it gives the error is
    var_a := REPLACE(var_a, '^', ''',''');
    Can anyone please help!
    Thanks

    Even then that shouldn't do so:
    SQL> select overload, position, argument_name, data_type, in_out
      2  from all_arguments
      3  where package_name = 'STANDARD'
      4  and object_name = 'LPAD'
      5  order by 1,2
      6  /
    OVERLOAD   POSITION ARGUMENT_NAME                  DATA_TYPE                      IN_OUT
    1                 0                                VARCHAR2                       OUT
    1                 1 STR1                           VARCHAR2                       IN
    1                 2 LEN                            BINARY_INTEGER                 IN
    1                 3 PAD                            VARCHAR2                       IN
    2                 0                                VARCHAR2                       OUT
    2                 1 STR1                           VARCHAR2                       IN
    2                 2 LEN                            BINARY_INTEGER                 IN
    3                 0                                CLOB                           OUT
    3                 1 STR1                           CLOB                           IN
    3                 2 LEN                            NUMBER                         IN
    3                 3 PAD                            CLOB                           IN
    4                 0                                CLOB                           OUT
    4                 1 STR1                           CLOB                           IN
    4                 2 LEN                            NUMBER                         INI wonder what happened?

  • How to hide system tables when using the Oracle SQL Developer?

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
    Can anyone explain to me how to do these things?
    Thanks,

    Hi,
    I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
    How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
    I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
    Kuljeet

  • ExecuteNonQuery doesnt return number of rows affected when used with PL/SQL

    ExecuteNonQuery doesn't return number of rows affected when used with PL/SQL but returns -1. The documentation says ExecuteNonQuery method of OracleCommand returns the number of raws affected but when used with PL/SQL, it returns -1 even the update statement successfully executes and affects multiple records with no exeptions thrown.
    However, if ExecuteNonQuery is used with update sql statement in the asp.net code it returns number of rows affected correctly. Does anybody know why ExecuteNonQuery behaves like this?
    I am using ODP.NET that comes with Oracle Client 11g. The version is 2.111.6.20 of ODP.NET, Oracle database server is 10g.
    Marat

    You can get the rowcount in the stored procedure via SQL%ROWCOUNT and then pass it out as a parameter.
    For example:
    SQL> create or replace procedure updatesal(v_deptno in number, v_rowsaff out number) as
      2  begin
      3  update emp set sal = sal * 5 where deptno = v_deptno;
      4  v_rowsaff := SQL%ROWCOUNT;
      5  end;
      6  /
    Procedure created.Cheers

  • Correct Way to use Bind variables when using an MS SQL server backend

    Hey,
    I'm having some trouble figuring out how to use bind variables in a view when using an MS SQL server backend. For some reason when I'm using an ApplicationModule that has a MS SQL Server JDBC library loaded and I attempt to click OK when editing the following query:
    SELECT kit_status, component_id
    FROM numbered_inv
    WHERE trialname = :1
    I get an error stating that "SQL Query Error Message Incorrect Syntax near ':'". Is JDeveloper compatible with SQL server for bind variables because this query runs just fine if I replace the :1 with a say "Testing testing".
    Thanks in advance
    Edited by: NullCheck on Dec 15, 2010 2:06 PM

    Gotcha. I had tried %1% %0% ?0 and ?1 and various other permutations none of which worked. Got it working by setting the query to:
    SELECT kit_status, component_id
    FROM numbered_inv
    WHERE trialname = ?
    ORDER BY kit_status
    And then adding a bind variable with "Bind position" set to 0.
    Thanks again Shay!

  • ORA-03113 when using connect by in a report query ?

    Hi,
    Oracle 10g r2, ApEx 4.0.2.
    I have a classic report on page zero, I need the following query to display my data :
    select
         distinct '<input class="radio_report_search_photos" name="radio_selected_photo" type="radio" />' as "Sel",
         phot_id,
         phot_description,
         '<img alt="" id="thumb_'||phot_id||'" class="clickable_thumb" src="#OWNER#.show_photo?v_id_photo='||phot_id||'" />' as "Thumb",
         substr(SYS_CONNECT_BY_PATH(kw_text, ', '),3) keyword_list
    from
         select
              phot_id,
              phot_description,
              kw_id,
              kw_text,
              pkw_kw_id,
              pkw_phot_id,
              count(*) OVER(partition by phot_id ) cnt,
              ROW_NUMBER() OVER(partition by phot_id order by kw_text) seq
         from
              photos,
              photos_keywords,
              keywords
         where
              phot_id = pkw_phot_id
              and pkw_kw_id = kw_id
              and contains(kw_text,nvl(:P0_SEARCH_PHOTO_KW,'%')) > 0
    where
         seq = cnt
    start with
         seq = 1
    connect by prior
         seq+1 = seq
    and prior
         phot_id = phot_idIt works great when executing from any software. I get the expected results.
    But yhen I try to put it in the report region source, I get an ORA-03113 when I apply changes...
    It works if I remove CONNECT BY PRIOR and SYS_CONNECT_BY_PATH from the query.
    Why ?
    Thanks.
    Details :
    url : https://my_host.ch/pls/htmldb_dev/wwv_flow.accept
    Error :
    Fri, 22 Jul 2011 09:25:38 GMT
    ORA-03113: end-of-file on communication channel

    OK I now use xmlagg & xmlelement instead of connect by.
    Sorry for not providing any solution.
    Yann.

  • ORA-00932 while using nvl with trunc function

    What happens when trunc is executed on null?
    I am executing the following query:
    "select nvl(trunc(null),sysdate) from dual"
    and this throws "ORA-00932: inconsistent datatypes: expected NUMBER got DATE, error at Line:1 Column:23".
    Whereas "select nvl(null,sysdate) from dual" returns sysdate correctly.
    Also "select trunc(null) from dual" returns null only. So when the returned null is passed through nvl why am I getting exception?
    This is happening in ver 9.2.0.5.0 and 10.2.0.2.0
    There is another observation, which is an issue that we have found in our code, and while trying to fix that we saw the earlier observation.
    SELECT * FROM orgs, dual where
    trunc(SYSDATE) between trunc(orgs.effective_start_date) and nvl(trunc(orgs.effective_end_date),trunc(sysdate))
    Here effective start date and effective end date for orgs are null for all records.
    When we run this query on ver 9.2.0.5.0, this runs without any exception. But when we run this query on ver 10.2.0.2.0, we get the same exception, "ORA-00932: inconsistent datatypes: expected NUMBER got DATE, error at Line:2 Column:95".
    The join with dual is fake, in actual scenario we have join with other tables, but since we are able to replicate with dual, removed all other details to keep this simple.
    Now if we remove the join with dual, the query works fine in both the env.
    SELECT * FROM orgs where
    trunc(SYSDATE) between trunc(orgs.effective_start_date) and nvl(trunc(orgs.effective_end_date),trunc(sysdate))

    What happens when trunc is executed on null?
    I am executing the following query:
    "select nvl(trunc(null),sysdate) from dual"
    and this throws "ORA-00932: inconsistent datatypes:
    expected NUMBER got DATE, error at Line:1
    Column:23".
    Whereas "select nvl(null,sysdate) from dual" returns
    sysdate correctly.
    Also "select trunc(null) from dual" returns null
    only. So when the returned null is passed through nvl
    why am I getting exception?
    This is happening in ver 9.2.0.5.0 and 10.2.0.2.0The first parameter to NVL is determining the expected datatype of the returned column, with the trunc function defaulting that to NUMBER because it's parameter is NULL. The second parameter to NVL needs to match that datatype which it doesn't because it is a date.
    SQL> select nvl(trunc(sysdate), sysdate) as mydate from dual;
    MYDATE
    26/05/2006 00:00:00
    SQL> select nvl(trunc(null), sysdate) as mydate from dual;
    select nvl(trunc(null), sysdate) as mydate from dual
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected NUMBER got DATE
    SQL> select nvl(trunc(123), sysdate) as mydate from dual;
    select nvl(trunc(123), sysdate) as mydate from dual
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected NUMBER got DATE
    SQL>

  • ORA-01194 and ORA-00604 when using backup controlfile set #2

    Database version Oracle 11.2.0.1
    Enterprise Linux 5.4
    Database is in archivelog mode.
    I'm trying to recover a database according to set #2 of a backup controlfile to trace. Creating the controlfile works fine, but recovering the database fails.
    From what I can gather, the recovery fails because it cannot roll forward - sequence 39 is in the missing online redo logfile. However, the database is opened with the restlogs option, and I understand that it should use the archivelogs in order to roll backwards. Since this is a new controlfile it does not know about archivelogs, but it does not accept to register or use any archivelog files.
    The recovery as outlined in set #2 does not seem to work as advertised. Any ideas?
    Following errors:
    SQL>  CREATE CONTROLFILE REUSE DATABASE "RCAT" RESETLOGS  ARCHIVELOG etc.
    Control file created.
    Tyring to register on of the archivelogs does not work:
    SQL>  ALTER DATABASE REGISTER LOGFILE '/u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc';
    ALTER DATABASE REGISTER LOGFILE '/u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc'
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level
    Applying an existing archivelog during recovery does not work:
    SQL> recover database using backup controlfile until cancel
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc
    ORA-00310: archived log contains sequence 33; sequence 39 required
    ORA-00334: archived log:
    '/u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc'
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u02/RCAT/datafile/o1_mf_system_6959kz7l_.dbf'
    ls -l /u02/fra/RCAT/archivelog/2010_09_19:
    -rw-r----- 1 oracle dba 49313280 Sep 19 00:01 o1_mf_1_33_69bfo5tx_.arc
    -rw-r----- 1 oracle dba   312320 Sep 19 00:03 o1_mf_1_34_69bft63b_.arc
    -rw-r----- 1 oracle dba 20343808 Sep 19 02:10 o1_mf_1_35_69bo6y6j_.arc
    -rw-r----- 1 oracle dba    40960 Sep 19 02:12 o1_mf_1_36_69boc9t8_.arc
    -rw-r----- 1 oracle dba    20992 Sep 19 02:13 o1_mf_1_37_69bofng4_.arc
    -rw-r----- 1 oracle dba   794624 Sep 19 02:15 o1_mf_1_38_69bokwbf_.arcThanks,
    Markus

    Specifying sequence 39 results in the same error message, which is what is what it tries to apply when using "recover until cancel" and typing cancel. But the problem is that sequence 39 was in the online redologs, which were not archived yet.
    SQL> select name, first_change#,next_change# from v$archived_log;
    NAME                                        FIRST_CHANGE# NEXT_CHANGE#
    /u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_34_69bft63b_.arc        1259096     1259295
    /u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_37_69bofng4_.arc        1269876     1269935
    /u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_35_69bo6y6j_.arc        1259295     1269766
    /u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_36_69boc9t8_.arc        1269766     1269876
    /u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_38_69bokwbf_.arc        1269935     1270557
    /u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc        1241003     1259096
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_21_699l4tkj_.arc        1215727     1215730
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_24_699s5pj8_.arc        1215736     1224966
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_26_699s5rp4_.arc        1224969     1224972
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_15_6987rbqp_.arc        1174393     1174511
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_23_699l4xng_.arc        1215733     1215736
    NAME                                        FIRST_CHANGE# NEXT_CHANGE#
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_28_699s5tqt_.arc        1224975     1224987
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_22_699l4w5r_.arc        1215730     1215733
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_29_699s5vw2_.arc        1224987     1224990
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_19_699l4or0_.arc        1215721     1215724
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_25_699s5qd6_.arc        1224966     1224969
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_30_699s5yvs_.arc        1224990     1224999
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_27_699s5stf_.arc        1224972     1224975
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_32_69b2hgvz_.arc        1225003     1241003
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_17_699k5oxl_.arc        1194778     1209476
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_16_699jsxol_.arc        1174511     1194778
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_20_699l4rx2_.arc        1215724     1215727
    NAME                                        FIRST_CHANGE# NEXT_CHANGE#
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_18_699l4msq_.arc        1209476     1215721
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_14_6987mljx_.arc        1162149     1174393
    /u02/fra/RCAT/archivelog/2010_09_18/o1_mf_1_31_699s61sr_.arc        1224999     1225003
    25 rows selectedHow does it actually know about all the archivelogs?
    Edited by: Markus Waldorf on Sep 20, 2010 8:37 AM

  • ORA-15072 when using external redenacy?

    Hello -
    I am getting ORA-15072 (command required at least one failure groups) when using external redundancy. I am using asmlib on Linux, and I have a feeling that it it a multipathing issue. Here are the output from some of my commands:
    [root@ctolinuxpoc01 init.d]# ./oracleasm listdisks
    VOL1
    VOL10
    VOL11
    VOL12
    VOL2
    VOL3
    VOL4
    VOL5
    VOL6
    VOL7
    VOL8
    VOL9
    SQL> select name, path, state from v$asm_disk;
    NAME
    PATH
    STATE
    ORCL:VOL1
    NORMAL
    ORCL:VOL2
    NORMAL
    NAME
    PATH
    STATE
    ORCL:VOL3
    NORMAL
    ORCL:VOL4
    NAME
    PATH
    STATE
    NORMAL
    Why would I be getting ORA-15072 with external redundancy (using asmlib)?
    Thanks in andvance!
    Mike

    The header status is showing as "unknown"... Could this be part of the issue?
    Thanks,
    Mike

  • ORA-22167 when using RETURNING... BULK COLLECT INTO feature

    I posted this on the General Board, but I'm still having the issue. Any help would be appreciated!
    I'm loading raw data into a staging table, and want to perform a series of validations before moving it into the system. Records that fail are marked invalid in the stage table, and then an error message written to another table. When updating the 'invalid' flag in the (database) stage table, I return the record identifier into a pl/sql table, then iterate through said table to insert into my (database) error table. This works great for my first validation, but when I use the pl/sql table for the second validation, I get ORA-22167, which basically complains about the subscript supplied to TRIM being out of range. I've tried DELETEing the pl/sql table, setting it to NULL, re-initializing it... none of which works. I have also tried using a brand new table for each validation, but I still get the same message. What am I missing?
    Psuedo-code is like this (please ignore any syntax errors... real code is syntactically correct) :
    DECLARE
    TYPE RECORD_SEQ_TBL IS TABLE OF fcsf_arc.record_seq_nbr%TYPE;
    lt_bad_fcsf_tbl RECORD_SEQ_TBL := NULL;
    BEGIN
    UPDATE <stg_tbl>
    SET valid_ind = 'N'
    WHERE <error condition 1>
    RETURNING seq_nbr BULK COLLECT INTO lt_bad_fcsf_tbl;
    FORALL j IN lt_bad_fcsf_tbl.FIRST..lt_bad_fcsf_tbl.LAST
    INSERT INTO <error_tbl>
    VALUES ('message', lt_bad_fcsf_tbl(j));
    -- works ok so far...
    -- I've tried various combinations of the next three comments to no avail (including doing nothing at all)
    -- lt_bad_fcsf_tbl.DELETE;
    -- lt_bad_fcsf_tbl := NULL;
    -- lt_bad_fcsf_tbl := RECORD_SEQ_TBL();
    -- now I want to do my second validation
    UPDATE <stg_tbl>
    SET valid_ind = 'N'
    WHERE <error condition 2>
    RETURNING seq_nbr BULK COLLECT INTO lt_bad_fcsf_tbl;
    -- and THAT is where I get the ORA-22167

    Thanks for the pointer, Sy. I'm trying to track down soembody with a valid metalink account... everybody I know that has one is getting 'invalid login' messages.
    In the meantime, I have switched from nested tables to associative arrays, and this change seems to be working (so far).
    Thanks again for your feedback!

  • ORA-00932 Error using 11g and the SDO_RELATE function. Works fine in 10g

    Hello,
    If I run this query in Oracle 11g:
    SELECT M.FID, MAX(M.VERSION) AS VERSION
    FROM SW_PB.A_ROADNODEINFORMATION M, SW_PB.ROADNODE N
    WHERE M.REFERENCETOROADNODE = N.FID
    AND M.NODEVERSION = N.VERSION
    AND M.CATALOGUEID <= 477
    AND MDSYS.SDO_RELATE( N.GEOM, MDSYS.SDO_GEOMETRY(2003,81989,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(120000,0,160000,40000)),'MASK=ANYINTERACT QUERYTYPE=WINDOW') = 'TRUE'
    GROUP BY M.FID;
    I get an error regarding the N.GEOM field. The error is as follows:
    ORA-00932: inconsistent datatypes: expected - got MDSYS.SDO_ELEM_INFO_ARRAY
    The same query runs fine on a 10g database with the same data. I've even truncated the N table and still get the error. I've rebuilt the index but it makes no difference and the metadata is exactly the same for this table as it is for other tables that are involved in a similar query.
    It looks like a bug to me but just wondered if anyone else had come across this?
    Thanks,
    Peter.

    Thanks for the reply. I'm really sorry but I haven't created trace files like this for a very long time and have forgotten the best way to read them. This is the start of the trace file, any help with reformatting it would be greatly appreciated.
    Thanks,
    Peter.
    *** 2009-04-23 17:09:22.902
    ----- Error Stack Dump -----
    *** 2009-04-23 17:09:22.917
    ORA-00932: inconsistent datatypes: expected - got MDSYS.SDO_ELEM_INFO_ARRAY
    ----- Current SQL Statement for this session (sql_id=br02jqdwy2utk) -----
    SELECT M.FID, MAX(M.VERSION) AS VERSION
    FROM SW_PB.A_ROADNODEINFORMATION M, SW_PB.ROADNODE N
    WHERE M.REFERENCETOROADNODE = N.FID
    AND M.NODEVERSION = N.VERSION
    AND M.CATALOGUEID <= 477
    AND MDSYS.SDO_RELATE( N.GEOM, MDSYS.SDO_GEOMETRY(2003,81989,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(120000,0,160000,40000)),'MASK=ANYINTERACT QUERYTYPE=WINDOW') = 'TRUE'
    GROUP BY M.FID
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    skdstdst()+114      CALLrel  kgdsdst()+0 FB783A0 2
    ksedst1()+91        CALLrel  skdstdst()+0
    ksedst()+50         CALLrel  ksedst1()+0 0 1
    dbkedDefDump()+298  CALLrel  ksedst()+0 0
    5
    ksedmp()+40         CALLrel  dbkedDefDump()+0 3 0
    _dbkdaKsdActDriver(  CALLreg  00000000             3
    )+841
    _dbgdaExecuteAction  CALLreg  00000000             7B50420 FB79A4C
    ()+63
    dbgdaRunAction()+3  CALLrel  dbgdaExecuteAction 7B50420 4D4C148 20C0002
    02 ()+0 FB79A4C
    dbgdRunActions()+4  CALLrel  dbgdaRunAction()+0 7B50420 A789E54
    4
    dbgdProcessEventAc  CALLrel  dbgdRunActions()+0 7B50420 A789E74
    tions()+446
    __VInfreq__dbgdChkE CALLrel _dbgdProcessEventAc  7B50420 120A3370 A789F64
    ventKgErr()+237 tions()+0
    dbkdChkEventRdbmsE  CALLrel  dbgdChkEventKgErr( 7B50420 A7C06F4 3A4
    rr()+33 )+0
    __PGOSF99__ksfpec() CALLrel _dbkdChkEventRdbmsE  3A4
    +110 rr()+0
    _dbgePostErrorKGE()  CALLreg  00000000             120A3370 3A4
    +1601
    dbkePostKGEkgsf() CALLrel _dbgePostErrorKGE()  120A3370 A772020 3A4
    +49 +0
    _kgeade()+268        CALLreg  00000000             120A3370 A772020 3A4
    kgesev()+54         CALLrel  kgeade()+0
    kgesec2()+18        CALLrel  kgesev()+0 120A3370 A772020 3A4 2
    FB7A200
    qctErr932()+217     CALLrel  kgesec2()+0 120A3370 A772020 3A4 1 1
    FB7A468 1 19 FB7A218
    qctErrConvertDataT  CALLrel  qctErr932()+0 995FBCC0 120A3370 F6 FB7A468
    ype()+82 7B C2E85B4 995FBCC0 120A3370
    FB7A468 0 0 FB7A468 0 204
    qecgby()+240        CALLrel  qctErrConvertDataT 995FBCC0 120A3370 F6 0 0 7B
    ype()+0 C2E85B4
    qecpqbcheck()+75    CALLrel  qecgby()+0
    qecdrv()+161        CALLrel  qecpqbcheck()+0 C2ECD7C 0 0 0
    qecdrv()+74         CALLrel  qecdrv()+0
    kkqcttcalo()+383    CALLrel  qecdrv()+0 C2EFBAC
    kkqctdrvGBP()+1841  CALLrel  kkqcttcalo()+0 C2EFBAC 0 C2EFBAC 166A5D4 0 2
    __VInfreq__kkqgbpTr CALLrel _kkqctdrvGBP()+0     A730DD8
    avChkTran()+193
    _qksqbApplyToQbcLoc  CALLreg  00000000             A730DD8 FB7A9BC
    ()+536
    qksqbApplyToQbc()+  CALLrel  qksqbApplyToQbcLoc
    67 ()+0
    kkqctdrvTD()+1000   CALLrel  qksqbApplyToQbc()+ A730DD8 2EF2DA0 FB7A9BC 0
    0
    kkqgbpdrv()+88      CALLrel  kkqctdrvTD()+0 A754820 995FBDF4 6
    kkqdrv()+1520       CALLrel  kkqgbpdrv()+0 A754820 995FBDF4
    kkqctdrvIT()+698    CALLrel  kkqdrv()+0 A754820 0
    apadrv()+1205       CALLrel  kkqctdrvIT()+0 A754820 995FBDF4
    opitca()+1841       CALLrel  apadrv()+0 995FBDF4
    __PGOSF435__kksFull CALLrel _opitca()+0          A7CC9E4 995FBDF4
    TypeCheck()+15
    _rpiswu2()+560       CALLreg  00000000             FB7B718
    kksLoadChild()+860  CALLrel  rpiswu2()+0 AF495220 5 A77DCBB4 16
    8 94591E54 5 A77DCBE0 0 FB7B670
    615F44 0 FB7B718 0
    kxsGetRuntimeLock(  CALLrel  kksLoadChild()+0 120A3370 AE9130D8 FB7C090
    )+1421
    kksfbc()+8954       CALLrel  kxsGetRuntimeLock( 120A3370 A7CC9E4 FB7C090 3 1
    )+0
    kkspsc0()+1882      CALLrel  kksfbc()+0 A7CC9E4 3 108 FB7D2D8 1BB 0 0
    0
    kksParseCursor()+1  CALLrel  kkspsc0()+0
    43
    opiosq0()+2028      CALLrel  kksParseCursor()+0 FB7C610
    kpooprx()+273       CALLrel  opiosq0()+0 3 E FB7C734 A4
    kpoal8()+729        CALLrel  kpooprx()+0 FB7F214 FB7D2D8 1BA 1 0 A4
    _opiodr()+1224       CALLreg  00000000             5E 1C FB7F210
    _ttcpip()+2733       CALLreg  00000000             5E 1C FB7F210 0
    _opitsk()+1278       CALL???  00000000            
    opiino()+1067       CALLrel  opitsk()+0 0 0
    _opiodr()+1224       CALLreg  00000000             3C 4 FB7FC28
    opidrv()+807        CALLrel  opiodr()+0 3C 4 FB7FC28 0
    sou2o()+45          CALLrel  opidrv()+0 3C 4 FB7FC28
    opimaireal()+130 CALLrel _sou2o()+0           FB7FC1C 3C 4 FB7FC28
    opimai()+92         CALLrel  opimai_real()+0 2 FB7FC54
    OracleThreadStart@  CALLrel  opimai()+0
    4()+764
    77E6482C CALLreg 00000000
    00000000 CALL??? 00000000

  • ORA-00932 when trying to pass ARRAY from Java SP to PL/SQL

    Hi all
    I am trying to pass ARRAYs back and forth between PL/SQL and Java stored procedures. But I keep getting:
    ORA-00932: inconsistent datatypes: expected a return value that is an instance of a user defined Java class convertible to an Oracle type got an object that could not be converted
    Here's my PL/SQL:
    create or replace type CONTENTP.sentences_array as VARRAY(1000) of CLOB
    -- I've also tried .. as TABLE of CLOB and varray/table of VARCHAR2
    declare
    proc_clob CLOB;
    arr SENTENCES_ARRAY;
    begin
    SELECT document_body
    into proc_clob
    from documents
    where document_id = 618784;
    arr := processdocument.sentencesplit (proc_clob);
    end;
    PROCESSDOCUMENT package definition:
    CREATE OR REPLACE PACKAGE CONTENTP.PROCESSDOCUMENT AS
    FUNCTION sentenceSplit(Param1 CLOB)
    return SENTENCES_ARRAY
    AS
    LANGUAGE java
    NAME 'com.contentp.documents.ProcessDocument.sentenceSplit(oracle.sql.CLOB) return oracle.sql.ARRAY';
    FUNCTION removeHTML(Param1 CLOB)
    return CLOB
    AS
    LANGUAGE java
    NAME 'com.contentp.documents.ProcessDocument.removeHTML(oracle.sql.CLOB) return oracle.sql.CLOB';
    end;
    Java sentenceSplit code:
    public static oracle.sql.ARRAY sentenceSplit ( CLOB text) throws IOException, SQLException
    Connection conn = new OracleDriver().defaultConnection();
    String[] arrSentences = sent.getsentences ( CLOBtoString (text) );
    ArrayDescriptor arrayDesc =
    ArrayDescriptor.createDescriptor ("SENTENCES_ARRAY", conn);
    ARRAY ARRSentences = new ARRAY (arrayDesc, conn, arrSentences);
    return ARRSentences;
    I have confirmed that the String[] arrSentences contains a valid string array. So the problem seems to be the creation and passing of ARRSentences.
    I have looked at pages and pages of documents and example code, and can't see anything wrong with my declaration of ARRSentences. I'm at a loss to explain what's wrong.
    Thanks in advance - any help is much appreciated!

    I am trying to do something similar but seems like getting stuck at registerOutParameter for this.
    Type definition:
    CREATE OR REPLACE
    type APL_CCAM9.VARCHARARRAY as table of VARCHAR2(100)
    Java Stored Function code:
    public static ARRAY fetchData (ARRAY originAreaCds, ARRAY serviceCds, ARRAY vvpcs) {
    Connection connection = null;
         ARRAY array = null;
         try {
         connection = new OracleDriver ().defaultConnection();
         connection.setAutoCommit(false);
    ArrayDescriptor adString = ArrayDescriptor.createDescriptor("VARCHARARRAY", connection);
    String[] result = new String [2];
    result[0] = "Foo";
    result[1] = "Foo1";
    array = new ARRAY (adString, connection, result);
    connection.commit ();
    return array;
    } catch (SQLException sqlexp) {
    try {
    connection.rollback();
    } catch (SQLException exp) {
    return array;
    Oracle Stored Function:
    function FETCH_TRADE_DYN_DATA (AREA_CDS IN VARCHARARRAY, SERVICE_CDS IN VARCHARARRAY,VV_CDS IN VARCHARARRAY) return VARCHARARRAY AS LANGUAGE JAVA NAME 'com.apl.ccam.oracle.js.dalc.TDynAllocation.fetchData (oracle.sql.ARRAY, oracle.sql.ARRAY, oracle.sql.ARRAY) return oracle.sql.ARRAY';
    Java Code calling Oracle Stored Procedure:
    ocs = (OracleCallableStatement) oraconn.prepareCall(queryBuf.toString());
                   ArrayDescriptor adString = ArrayDescriptor.createDescriptor("VARCHARARRAY", oraconn);
                   String[] originAreaCds = sTDynAllocationVO.getGeogAreaCds();
                   ARRAY areaCdArray = new ARRAY (adString, oraconn, originAreaCds);
                   ocs.registerOutParameter(1, OracleTypes.ARRAY);
                   ocs.setArray (2, areaCdArray);
                   String[] serviceCds = sTDynAllocationVO.getServiceCds();
                   ARRAY serviceCdsArray = new ARRAY (adString, oraconn, serviceCds );
                   ocs.setArray (3, serviceCdsArray);
                   String[] vvpcs = sTDynAllocationVO.getVesselVoyagePortCdCallNbrs();
                   ARRAY vvpcsArray = new ARRAY (adString, oraconn, vvpcs);
                   ocs.setArray (4, vvpcsArray);
    ocs.execute();
    ARRAY results = ocs.getARRAY(1);
    Error I get:
    Parameter Type Conflict: sqlType=2003
    Thanks for help in advance.

  • Alarm Clock giving weird notification when using song

    When using my alarm clock with the new song feature, I am getting a notification that says "Download over cellular? Additional fees may apply when downloading songs over cellular." Options are Cancel or Download. The songs I have chosen are already on my iPhone so there should be 0 reason to have to download anything. Please advise.
    Thank you,
    Andrew

    Goto Settings--> General--> Cellular--> Is your cellular Data on? I turned mine off and it fixed the problem. You may also want to check Settings--> iTunes&App stores--> Use cellular Data and set to off so you don't eat up data on wifi. Some people have had big charges when left on. 

  • Sqlldr producing ora-1008 when using conventional mode

    On 9.2.0.8 Solaris 9,
    When performing the load using direct mode it works. only when using conventional mode i get the error.
    any ideas?
    10x,

    Don't use reserved words (CHAR,which is a format specification) as column names:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e22490/ldr_field_list.htm#i1015797

Maybe you are looking for