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

◆ WriteQualifiedName() [1/2]

override void System.Xml.XmlWellFormedWriter.WriteQualifiedName ( string localName,
string ns )
inline

Definition at line 2273 of file XmlWellFormedWriter.cs.

2274 {
2275 try
2276 {
2277 if (localName == null || localName.Length == 0)
2278 {
2280 }
2281 CheckNCName(localName);
2282 AdvanceState(Token.Text);
2283 string text = string.Empty;
2284 if (ns != null && ns.Length != 0)
2285 {
2286 text = LookupPrefix(ns);
2287 if (text == null)
2288 {
2289 if (_currentState != State.Attribute)
2290 {
2292 }
2293 text = GeneratePrefix();
2295 }
2296 }
2297 if (SaveAttrValue || _rawWriter == null)
2298 {
2299 if (text.Length != 0)
2300 {
2302 WriteString(":");
2303 }
2304 WriteString(localName);
2305 }
2306 else
2307 {
2308 _rawWriter.WriteQualifiedName(text, localName, ns);
2309 }
2310 }
2311 catch
2312 {
2313 _currentState = State.Error;
2314 throw;
2315 }
2316 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xml_EmptyLocalName
Definition SR.cs:294
static string Xml_UndefNamespace
Definition SR.cs:290
Definition SR.cs:7
override void WriteQualifiedName(string localName, string ns)
override void WriteString(string text)
void PushNamespaceImplicit(string prefix, string ns)
override string LookupPrefix(string ns)

References System.Xml.XmlWellFormedWriter._currentState, System.Xml.XmlWellFormedWriter._rawWriter, System.Xml.XmlWellFormedWriter.AdvanceState(), System.Xml.ArgumentException, System.Xml.XmlWellFormedWriter.CheckNCName(), System.SR.Format(), System.Xml.XmlWellFormedWriter.GeneratePrefix(), System.Xml.XmlWellFormedWriter.LookupPrefix(), System.Xml.XmlWellFormedWriter.PushNamespaceImplicit(), System.Xml.XmlWellFormedWriter.SaveAttrValue, System.text, System.Xml.XmlRawWriter.WriteQualifiedName(), System.Xml.XmlWellFormedWriter.WriteString(), System.SR.Xml_EmptyLocalName, and System.SR.Xml_UndefNamespace.