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

◆ IsXDRField()

bool System.Data.XDRSchema.IsXDRField ( XmlElement node,
XmlElement typeNode )
inlinepackage

Definition at line 190 of file XDRSchema.cs.

191 {
192 int minOccurs = 1;
193 int maxOccurs = 1;
195 {
196 return false;
197 }
198 for (XmlNode xmlNode = typeNode.FirstChild; xmlNode != null; xmlNode = xmlNode.NextSibling)
199 {
200 if (XMLSchema.FEqualIdentity(xmlNode, "element", "urn:schemas-microsoft-com:xml-data") || XMLSchema.FEqualIdentity(xmlNode, "attribute", "urn:schemas-microsoft-com:xml-data"))
201 {
202 return false;
203 }
204 }
205 if (XMLSchema.FEqualIdentity(node, "element", "urn:schemas-microsoft-com:xml-data"))
206 {
208 if (maxOccurs == -1 || maxOccurs > 1)
209 {
210 return false;
211 }
212 }
213 return true;
214 }
bool IsTextOnlyContent(XmlElement node)
Definition XDRSchema.cs:168
void GetMinMax(XmlElement elNode, ref int minOccurs, ref int maxOccurs)
Definition XDRSchema.cs:415
virtual ? XmlNode FirstChild
Definition XmlNode.cs:120

References System.Xml.Dictionary, System.Data.XMLSchema.FEqualIdentity(), System.Xml.XmlNode.FirstChild, System.Data.XDRSchema.GetMinMax(), and System.Data.XDRSchema.IsTextOnlyContent().

Referenced by System.Data.XDRSchema.HandleTable().