W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

RE: DOM3 - schema mapping

From: Rahman, Rezaur <rezaur.rahman@intel.com>
Date: Fri, 18 May 2001 15:40:46 -0700
Message-ID: <638EC1B28663D211AC3E00A0C96B78A808E75785@orsmsx40.jf.intel.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT