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

◆ PushElement()

void System.Xml.Schema.XNodeValidator.PushElement ( XElement e,
ref string xsiType,
ref string xsiNil )
inlineprivate

Definition at line 224 of file XNodeValidator.cs.

225 {
228 if (xAttribute == null)
229 {
230 return;
231 }
232 do
233 {
234 xAttribute = xAttribute.next;
235 if (xAttribute.IsNamespaceDeclaration)
236 {
237 string text = xAttribute.Name.LocalName;
238 if (text == "xmlns")
239 {
240 text = string.Empty;
241 }
243 continue;
244 }
245 XName name = xAttribute.Name;
246 if (name == xsiTypeName)
247 {
248 xsiType = xAttribute.Value;
249 }
250 else if (name == xsiNilName)
251 {
252 xsiNil = xAttribute.Value;
253 }
254 }
255 while (xAttribute != e.lastAttr);
256 }
XmlNamespaceManager namespaceManager
virtual void AddNamespace(string prefix, string uri)

References System.Xml.XmlNamespaceManager.AddNamespace(), System.Xml.Linq.XElement.lastAttr, System.Xml.Schema.XNodeValidator.namespaceManager, System.Xml.XmlNamespaceManager.PushScope(), System.text, System.Xml.Schema.XNodeValidator.xsiNilName, and System.Xml.Schema.XNodeValidator.xsiTypeName.

Referenced by System.Xml.Schema.XNodeValidator.ValidateElement().