Hello everybody,

in my xml-schema I have got a special type for a vector:

 <!-- a list with doubles -->
 <xs:simpleType name="doublelist">
   <xs:list itemType="xs:double"/>
 </xs:simpleType>

 <!-- the vector type -->
 <xs:simpleType name="geo_vec">
   <xs:restriction base="doublelist">
     <xs:length value="3"/>
   </xs:restriction>
 </xs:simpleType>

<!-- an element-->
<xs:element name="pointin_vec" type="geo_vec"/>

So in instance of "pointin_vec" in the xml file could look like this:

<pointin_vec> 0 100e-3 0</pointin_vec>

The parsing works fine, but how can I read out this three values now? With "DOMNode::getTextContent()" I always only get the first value!

Thank for your help.

Tim

Reply via email to