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

◆ WriteStartAttribute() [2/3]

override void System.Xml.XmlBinaryNodeWriter.WriteStartAttribute ( string prefix,
string localName )
inline

Definition at line 312 of file XmlBinaryNodeWriter.cs.

313 {
314 if (prefix.Length == 0)
315 {
316 WriteNode(XmlBinaryNodeType.MinAttribute);
317 WriteName(localName);
318 }
319 else
320 {
321 char c = prefix[0];
322 if (prefix.Length == 1 && c >= 'a' && c <= 'z')
323 {
324 WritePrefixNode(XmlBinaryNodeType.PrefixAttributeA, c - 97);
325 WriteName(localName);
326 }
327 else
328 {
329 WriteNode(XmlBinaryNodeType.Attribute);
331 WriteName(localName);
332 }
333 }
334 _inAttribute = true;
335 _wroteAttributeValue = false;
336 }
void WritePrefixNode(XmlBinaryNodeType nodeType, int ch)
void WriteNode(XmlBinaryNodeType nodeType)

References System.Xml.XmlBinaryNodeWriter._inAttribute, System.Xml.XmlBinaryNodeWriter._wroteAttributeValue, System.prefix, System.Xml.XmlBinaryNodeWriter.WriteName(), System.Xml.XmlBinaryNodeWriter.WriteNode(), and System.Xml.XmlBinaryNodeWriter.WritePrefixNode().

Referenced by System.Xml.XmlBinaryNodeWriter.WriteStartAttribute().