Quantcast
Viewing all articles
Browse latest Browse all 15889

problem inserting values in xml schema collection

I am trying to insert value in schema collection but it is giving error.This is my schema collection

create xml schema collection productionemployee
as
'<xsd:schema targetNamespace="http://www.jdtechnologies.com"
    xmlns="http://www.jdtechnologies.com"
    elementFormDefault="qualified"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
    <xsd:element name="employeedetails">
       <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="employeeid" type="xsd:int"/>
                <xsd:element name="employeename" type="xsd:string"/>
            </xsd:sequence>
       </xsd:complexType>
    </xsd:element>
    </xsd:schema>'
=================================================Table=========================
create table productstore
(
productid int,
productname xml(productionemployee)
)

============================================Insert command=======================

insert into productstore values(1,'<?xml version="1.0"?><
xmlns="http://www.jdtechnologies.com">
<employeedetails><employeeid> 1</employeeid> <employeename>somil<employeename></employeedetails>')

can anyone please let me know what i am doing wrong here???

Thanks in advance

somillohani


Viewing all articles
Browse latest Browse all 15889

Trending Articles