Missing MAUX definition in Smile.xsd

The engine.
Post Reply
carlo
Posts: 3
Joined: Mon May 31, 2010 1:27 pm

Missing MAUX definition in Smile.xsd

Post by carlo »

Hi all,

I have created a network with a MAU node in Genie and saved it. The MAU node is persisted as a MAUX node in the XDSL format. The XSD schema for Smile that I downloaded from the website does not define it though.

Here is a (simplified) example:

Code: Select all

<smile>
	<nodes>
		<utility id="Node2">
			<utilities>0.1 0.2 0.3 0.4</utilities>
		</utility>
		<utility id="Node3">
			<utilities>0.1 0.2 0.3 0.4</utilities>
		</utility>


		<maux id="Node1">
			<parents>Node2 Node3</parents>
			<expression>Node2+Node3</expression>
		</maux>


	</nodes>
</smile>

Can anybody please provide me the XSD definition of the MAUX node?

Thanks a lot!
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Missing MAUX definition in Smile.xsd

Post by shooltz[BayesFusion] »

Try the following (we don't use XSD internally, so it's lagging behind the code). Don't forget to add <xs:element ref="maux" /> to the definition of 'node' element.

Code: Select all

<xs:element name="maux">
	<xs:complexType>
		<xs:sequence>
			<xs:element ref="parents" minOccurs="0" maxOccurs="1" />
			<xs:element name="expression" type="xs:string" />
			<xs:element ref="property" minOccurs="0" maxOccurs="unbounded" />
		</xs:sequence>
		<xs:attributeGroup ref="nodeAttributes" />
	</xs:complexType>
</xs:element>
carlo
Posts: 3
Joined: Mon May 31, 2010 1:27 pm

Post by carlo »

That is exactly what I was looking for, thanks a lot!
Post Reply