Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 14th, 2003, 07:41 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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#.






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to append child node after an node in XML + C# vishnu108mishra XML 5 November 13th, 2007 05:30 AM
Accessing data From a node austinf XML 1 June 7th, 2006 02:16 AM
how to write multiple namespaces in soap envelope monuindia2002 XML 0 March 1st, 2006 02:29 AM
Confused about XML namespaces planoie XSLT 2 June 2nd, 2005 04:23 AM
XML Namespaces billy_bob_the_3rd XML 1 January 31st, 2005 03:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.