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

◆ StartElement()

void System.Xml.XmlBaseWriter.StartElement ( ref string prefix,
string localName,
string ns,
XmlDictionaryString xNs )
inlineprivateinherited

Definition at line 1193 of file XmlBaseWriter.cs.

1194 {
1195 if (IsClosed)
1196 {
1197 ThrowClosed();
1198 }
1199 if (_documentState == DocumentState.Epilog)
1200 {
1202 }
1203 if (localName == null)
1204 {
1205 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName"));
1206 }
1207 if (localName.Length == 0)
1208 {
1210 }
1211 if (_writeState == WriteState.Attribute)
1212 {
1214 }
1215 FlushBase64();
1216 AutoComplete(WriteState.Element);
1217 Element element = EnterScope();
1218 if (ns == null)
1219 {
1220 if (prefix == null)
1221 {
1222 prefix = string.Empty;
1223 }
1225 if (ns == null)
1226 {
1228 }
1229 }
1230 else if (prefix == null)
1231 {
1233 if (prefix == null)
1234 {
1235 prefix = string.Empty;
1236 _nsMgr.AddNamespace(string.Empty, ns, xNs);
1237 }
1238 }
1239 else
1240 {
1242 }
1244 element.LocalName = localName;
1245 }
static string XmlOnlyOneRoot
Definition SR.cs:480
static string XmlUndefinedPrefix
Definition SR.cs:506
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string InvalidLocalNameEmpty
Definition SR.cs:346
static string XmlInvalidWriteState
Definition SR.cs:450
Definition SR.cs:7
string AddNamespace(string uri, XmlDictionaryString uriDictionaryString)
void AddNamespaceIfNotDeclared(string prefix, string uri, XmlDictionaryString uriDictionaryString)
readonly NamespaceManager _nsMgr
void AutoComplete(WriteState writeState)

References System.Xml.XmlBaseWriter._documentState, System.Xml.XmlBaseWriter._nsMgr, System.Xml.XmlBaseWriter._writeState, System.Xml.XmlBaseWriter.NamespaceManager.AddNamespace(), System.Xml.XmlBaseWriter.NamespaceManager.AddNamespaceIfNotDeclared(), System.Xml.ArgumentException, System.Xml.XmlBaseWriter.AutoComplete(), System.Xml.Dictionary, System.Xml.XmlBaseWriter.NamespaceManager.EnterScope(), System.Xml.XmlBaseWriter.FlushBase64(), System.SR.Format(), System.SR.InvalidLocalNameEmpty, System.Xml.XmlBaseWriter.IsClosed, System.Xml.XmlBaseWriter.NamespaceManager.LookupNamespace(), System.Xml.XmlBaseWriter.NamespaceManager.LookupPrefix(), System.prefix, System.Xml.XmlBaseWriter.ThrowClosed(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.SR.XmlInvalidWriteState, System.SR.XmlOnlyOneRoot, and System.SR.XmlUndefinedPrefix.

Referenced by System.Xml.XmlBaseWriter.WriteStartElement(), and System.Xml.XmlBaseWriter.WriteStartElement().