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

◆ WriteDecl()

void System.Xml.XmlWellFormedWriter.Namespace.WriteDecl ( XmlWriter writer,
XmlRawWriter rawWriter )
inlinepackage

Definition at line 164 of file XmlWellFormedWriter.cs.

165 {
166 if (rawWriter != null)
167 {
168 rawWriter.WriteNamespaceDeclaration(prefix, namespaceUri);
169 return;
170 }
171 if (prefix.Length == 0)
172 {
173 writer.WriteStartAttribute(string.Empty, "xmlns", "http://www.w3.org/2000/xmlns/");
174 }
175 else
176 {
177 writer.WriteStartAttribute("xmlns", prefix, "http://www.w3.org/2000/xmlns/");
178 }
179 writer.WriteString(namespaceUri);
180 writer.WriteEndAttribute();
181 }

References System.Xml.XmlWellFormedWriter.Namespace.namespaceUri, System.Xml.XmlWellFormedWriter.Namespace.prefix, and System.writer.

Referenced by System.Xml.XmlWellFormedWriter.StartElementContent().