Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetAttributeXsd() [1/2]

SchemaAttDef System.Xml.Schema.SchemaInfo.GetAttributeXsd ( SchemaElementDecl ed,
XmlQualifiedName qname,
ref bool skip )
inlinepackage

Definition at line 269 of file SchemaInfo.cs.

270 {
272 SchemaAttDef attributeXsd = GetAttributeXsd(ed, qname, null, out attributeMatchState);
273 switch (attributeMatchState)
274 {
275 case AttributeMatchState.UndeclaredAttribute:
276 throw new XmlSchemaException(System.SR.Sch_UndeclaredAttribute, qname.ToString());
277 case AttributeMatchState.ProhibitedAnyAttribute:
278 case AttributeMatchState.ProhibitedAttribute:
279 throw new XmlSchemaException(System.SR.Sch_ProhibitedAttribute, qname.ToString());
280 case AttributeMatchState.AnyAttributeSkip:
281 skip = true;
282 break;
283 }
284 return attributeXsd;
285 }
static string Sch_ProhibitedAttribute
Definition SR.cs:950
static string Sch_UndeclaredAttribute
Definition SR.cs:414
Definition SR.cs:7
SchemaAttDef GetAttributeXsd(SchemaElementDecl ed, XmlQualifiedName qname, XmlSchemaObject partialValidationType, out AttributeMatchState attributeMatchState)

References System.Xml.Dictionary, System.Xml.Schema.SchemaInfo.GetAttributeXsd(), System.SR.Sch_ProhibitedAttribute, System.SR.Sch_UndeclaredAttribute, and System.Xml.XmlQualifiedName.ToString().