- From: Rahman, Rezaur <rezaur.rahman@intel.com>
- Date: Fri, 18 May 2001 15:40:46 -0700
- To: "'Manish Balsara'" <manishb@aumsoft.com>, www-dom@w3.org
Since DOM3 Content Model does not support complex data types except few
basic types, this schema will show up as an element declaration
(CMElementDeclaration) of type "STRING_DATATYPE" and will contain one
attribute. So the structure will look something like this.
CMElementDeclaration e1 = {
elementType = STRING_DATATYPE;
isPCDataOnly = false;
tagName = "SOAPStructArray";
contentType = ANY_CONTENTTYPE;
CMChildren = {null} ; // we do not have any specific children
defined for soapenc:arrayType
CMNamedNodeMap = {a1};
}
DOM CM attributeDeclaration wont be able to model wsdl n1:arrayType
attribute. So a1 would look like
CMAttributeDeclaration a1 ={
attrName = arrayType;
attrType = "STRING_DATATYPE";
attributeValue = "s0:SOAPStruct[]";//? default value, whatever
default value is understood by your schema processor.
enumAttr = null;
ownerElement = {e1};
constraintType = DEFAULT_VALUE_CONSTRAINT;
}
Hope that helps.
regards
Reza
> -----Original Message-----
> From: Manish Balsara [mailto:manishb@aumsoft.com]
> Sent: Friday, May 18, 2001 6:48 AM
> To: www-dom@w3.org
> Subject: DOM3 - schema mapping
>
>
> I have been struggling to map the following schema to DOM3
> Content models.
>
> <complexType name="ArrayOfSOAPStruct">
> <complexContent mixed="false">
> <restriction base="soapenc:Array">
> <attribute n1:arrayType="s0:SOAPStruct[]"
> ref="soapenc:arrayType"
> xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>
> </restriction>
> </complexContent>
> </complexType>
>
> <element name="SOAPStructArray" type="ArrayOfSOAPStruct"/>
>
>
> Would appreciate any help. thanks
>
> manish
>
>
Received on Friday, 18 May 2001 18:42:16 UTC