on 05-22-2008 10:48 AM
hi all,
I wana make a data type of this form
Employee_MT 0..1
EmpRec 0..Unbounded
EmployeeId 0..1
FullName 0..1
AddressLine1 0..1
but then im not able to maintain it as it is not accepting the attribute as element.
i wana insert a new line at alower virson but the catagory should be element. but its comming as
attribute. how to do it.
Hi,
If you want the same below DT.
copy it and import as XSD.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="Http://Namespace.com" targetNamespace="Http://Namespace.com">
<xsd:complexType name="Employee">
<xsd:sequence>
<xsd:element name="Employee_MT" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
131f861027e511dd8b640016e69bcda4
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="EmpRec" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
131f861127e511dda4e80016e69bcda4
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="EmployeeId" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
131f861227e511ddcc380016e69bcda4
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="FullName" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
131f861327e511dd9b560016e69bcda4
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="AddressLine1" type="xsd:string" minOccurs="0" maxOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
131f861427e511ddab930016e69bcda4
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Change the Name space.
Regards,
Ramesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
just don't specify the type when u r going to insert new line
regards
chandrakanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Employee_MT 0..1------This u need not create, when u create the DT itself this will come
EmpRec 0..Unbounded----To Create this,Right click on Employee_DT 0..1 and say Insert SubElement.And dont select any Type for this( Like XSD:String)
EmployeeId 0..1----To create All these 3, Right click on EmpRec 0..Unbounded & say Insert Subelemet .And select Type for this( Like XSD:String)
FullName 0..1
AddressLine1 0..1
Regards
Seshagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.