c# - XmlSchemaElement class properties meaning -


maybe missed something, can explain me meaning , differences of following properties of xmlschemaelement class:

  1. what differences between xmlschemaelement.elementschematype , xmlschemaelement.elementtype?
  2. what differences between qualifiedname, schematypename , refname?
  3. how qualifiedname, schematypename , refname related each other? when schematypename.isempty == true, mean refname.isempty == false?
  4. is possible *names empty, 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.

  1. xmlschemaelement.elementtype obsolete since 2.0, otherwise they're same.
  2. 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 int or user define type, such mine). 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> 
  3. unfortunately, not true; e.g., if there no type associated element (by default means xsd:anytype).

  4. 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

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -