Get Complex Type from XML Schema - CSharp System.Xml

CSharp examples for System.Xml:XML Schema

Description

Get Complex Type from XML Schema

Demo Code


using System.Xml.Schema;
using System.Xml;
using System.Text;
using System.Linq;
using System.Diagnostics;
using System.Collections.Generic;
using System.Collections;
using System;//from  w w w  .j a  v a  2 s  .  co  m

public class Main{
        public static XmlSchemaComplexType GetComplextType(XmlSchemaElement element)
        {
            if (element.ElementSchemaType is XmlSchemaComplexType)
                return element.ElementSchemaType as XmlSchemaComplexType;

            return null;
        }
}

Related Tutorials