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

◆ LoadAttributeNode()

XmlAttribute System.Xml.Schema.Parser.LoadAttributeNode ( )
inlineprivate

Definition at line 370 of file Parser.cs.

371 {
372 XmlReader reader = _reader;
373 XmlAttribute xmlAttribute = _dummyDocument.CreateAttribute(reader.Prefix, reader.LocalName, reader.NamespaceURI);
374 while (reader.ReadAttributeValue())
375 {
376 switch (reader.NodeType)
377 {
378 case XmlNodeType.Text:
380 break;
381 case XmlNodeType.EntityReference:
383 break;
384 default:
385 throw XmlLoader.UnexpectedNodeType(reader.NodeType);
386 }
387 }
388 return xmlAttribute;
389 }
readonly XmlDocument _dummyDocument
Definition Parser.cs:36
XmlEntityReference LoadEntityReferenceInAttribute()
Definition Parser.cs:391
override? XmlNode AppendChild(XmlNode newChild)
virtual XmlText CreateTextNode(string? text)
XmlAttribute CreateAttribute(string name)
virtual ? XmlNode AppendChild(XmlNode newChild)
Definition XmlNode.cs:739

References System.Xml.Schema.Parser._dummyDocument, System.Xml.Schema.Parser._reader, System.Xml.XmlAttribute.AppendChild(), System.Xml.XmlNode.AppendChild(), System.Xml.XmlDocument.CreateAttribute(), System.Xml.XmlDocument.CreateTextNode(), System.Xml.Dictionary, System.Xml.Schema.Parser.LoadEntityReferenceInAttribute(), System.Xml.XmlReader.LocalName, System.Xml.XmlReader.NamespaceURI, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Prefix, System.Xml.XmlReader.ReadAttributeValue(), System.Xml.XmlLoader.UnexpectedNodeType(), and System.Xml.XmlReader.Value.

Referenced by System.Xml.Schema.Parser.LoadElementNode().