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

◆ AddDefaultAttributeInternal()

NodeData System.Xml.XmlTextReaderImpl.AddDefaultAttributeInternal ( string localName,
string ns,
string prefix,
string value,
int lineNo,
int linePos,
int valueLineNo,
int valueLinePos,
bool isXmlAttribute )
inlineprivate

Definition at line 8195 of file XmlTextReaderImpl.cs.

8196 {
8197 NodeData nodeData = AddAttribute(localName, prefix, (prefix.Length > 0) ? null : localName);
8198 if (ns != null)
8199 {
8200 nodeData.ns = ns;
8201 }
8202 nodeData.SetValue(value);
8204 nodeData.lineInfo.Set(lineNo, linePos);
8205 nodeData.lineInfo2.Set(valueLineNo, valueLinePos);
8206 if (nodeData.prefix.Length == 0)
8207 {
8208 if (Ref.Equal(nodeData.localName, _xmlNs))
8209 {
8211 if (!_attrNeedNamespaceLookup && _nodes[_index].prefix.Length == 0)
8212 {
8214 }
8215 }
8216 }
8217 else if (Ref.Equal(nodeData.prefix, _xmlNs))
8218 {
8221 {
8222 string localName2 = nodeData.localName;
8223 for (int i = _index; i < _index + _attrCount + 1; i++)
8224 {
8225 if (_nodes[i].prefix.Equals(localName2))
8226 {
8228 }
8229 }
8230 }
8231 }
8232 else if (isXmlAttribute)
8233 {
8235 }
8236 _fullAttrCleanup = true;
8237 return nodeData;
8238 }
virtual ? string LookupNamespace(string prefix)
XmlNamespaceManager _namespaceManager
void OnXmlReservedAttribute(NodeData attr)
void OnDefaultNamespaceDecl(NodeData attr)
void OnNamespaceDecl(NodeData attr)
NodeData AddAttribute(int endNamePos, int colonPos)

References System.Xml.XmlTextReaderImpl._attrCount, System.Xml.XmlTextReaderImpl._attrNeedNamespaceLookup, System.Xml.XmlTextReaderImpl._fullAttrCleanup, System.Xml.XmlTextReaderImpl._index, System.Xml.XmlTextReaderImpl._namespaceManager, System.Xml.XmlTextReaderImpl._nodes, System.Xml.XmlTextReaderImpl._xmlContext, System.Xml.XmlTextReaderImpl._xmlNs, System.Xml.XmlTextReaderImpl.AddAttribute(), System.Xml.XmlTextReaderImpl.XmlContext.defaultNamespace, System.Xml.Dictionary, System.Xml.Ref.Equal(), System.Xml.XmlNamespaceManager.LookupNamespace(), System.Xml.XmlTextReaderImpl.NodeData.ns, System.Xml.XmlTextReaderImpl.OnDefaultNamespaceDecl(), System.Xml.XmlTextReaderImpl.OnNamespaceDecl(), System.Xml.XmlTextReaderImpl.OnXmlReservedAttribute(), System.prefix, and System.value.

Referenced by System.Xml.XmlTextReaderImpl.AddDefaultAttributeDtd(), and System.Xml.XmlTextReaderImpl.AddDefaultAttributeNonDtd().