Accessing XML Node with multiple namespaces
I have the following XML Schema:
<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema id="UserXSD"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:dttl="http://www.myurl.com/schemas/dttl">
<xsd:element name="MyService">
<xsd:complexType>
<xsd:all>
<xsd:element name="Type">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="Administration"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Name">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="CreateServiceUser"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="CID" minOccurs="0" maxOccurs="1">
<xsd:simpleType>
<xsd:restriction base="xsd:nonNegativeInteger"/>
</xsd:simpleType>
<xsd:annotation>
<xsd:appinfo>
<dttl:ui-label>Client ID</dttl:ui-label>
<dttl:ui-tooltip></dttl:ui-tooltip>
<dttl:ui-Width>100</dttl:ui-Width>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="SID">
<xsd:simpleType>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:annotation>
<xsd:appinfo>
<dttl:ui-label>System ID</dttl:ui-label>
<dttl:ui-tooltip></dttl:ui-tooltip>
<dttl:ui-Width>100</dttl:ui-Width>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Can anyone help me to access the nodes under the dttl namespace that I have using C#.
|