c# - XmlSchemaElement class properties meaning -
maybe missed something, can explain me meaning , differences of following properties of xmlschemaelement class:
- what differences between x
mlschemaelement.elementschematype,xmlschemaelement.elementtype? - what differences between
qualifiedname, schematypename , refname? - how
qualifiedname, schematypename , refnamerelated each other? whenschematypename.isempty == true, meanrefname.isempty == false? - is possible
*namesempty, mean, embedded complextype?
in general need parse xsd , map result internal structure, need rules, allows me generate different types of object. let's if (schematypename.isempty) in elementschematype have simpletype restrictions provided.
- xmlschemaelement.elementtype obsolete since 2.0, otherwise they're same.
qualifiedname represents actual qualified name of element, corresponding xml element in xml instance document have it. schematypename represents name of type given element (could built in xsd such
intor user define type, suchmine). refname indicates particle, while being element, reference globally defined element elsewhere in schema (see below)<xsd:element name="global" type="xsd:string"/> <xsd:group name="some"> <xsd:sequence> <xsd:element name="local" type="xsd:int"/> <xsd:element ref="global" minoccurs="0"/> </xsd:sequence> </xsd:group>unfortunately, not true; e.g., if there no type associated element (by default means xsd:anytype).
- no, see above (anytype).
further, things more complicated. if have element particles under group not referenced anywhere in xsd, funny part psvi properties of element particle under group don't populated... never bothered figure out if feature or bug... did though build visitor using these properties , trying process 1 bit of information finds... me approach proved resilient .net fixes on years...
Comments
Post a Comment