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

◆ CheckStandalone()

bool System.Xml.XmlBaseReader.CheckStandalone ( int attr)
inlineprivateinherited

Definition at line 1364 of file XmlBaseReader.cs.

1365 {
1366 XmlAttributeNode xmlAttributeNode = _attributeNodes[attr];
1367 if (!xmlAttributeNode.Prefix.IsEmpty)
1368 {
1369 XmlExceptionHelper.ThrowXmlException(this, new XmlException(System.SR.XmlMalformedDecl));
1370 }
1371 if (xmlAttributeNode.LocalName != "standalone")
1372 {
1373 return false;
1374 }
1375 if (!xmlAttributeNode.Value.Equals2("yes", checkLower: false) && !xmlAttributeNode.Value.Equals2("no", checkLower: false))
1376 {
1377 XmlExceptionHelper.ThrowXmlException(this, new XmlException(System.SR.XmlInvalidStandalone));
1378 }
1379 return true;
1380 }
static string XmlMalformedDecl
Definition SR.cs:458
static string XmlInvalidStandalone
Definition SR.cs:442
Definition SR.cs:7
XmlAttributeNode[] _attributeNodes

References System.Xml.XmlBaseReader._attributeNodes, System.Xml.Dictionary, System.Xml.XmlExceptionHelper.ThrowXmlException(), System.Xml.XmlException, System.SR.XmlInvalidStandalone, and System.SR.XmlMalformedDecl.

Referenced by System.Xml.XmlBaseReader.MoveToDeclaration().