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

◆ ParsePartialContent()

XmlNamespaceManager System.Xml.XmlLoader.ParsePartialContent ( XmlNode parentNode,
string innerxmltext,
XmlNodeType nt )
inlinepackage

Definition at line 613 of file XmlLoader.cs.

614 {
615 _doc = parentNode.OwnerDocument;
616 XmlParserContext context = GetContext(parentNode);
618 try
619 {
620 _preserveWhitespace = true;
621 bool isLoading = _doc.IsLoading;
622 _doc.IsLoading = true;
623 if (nt == XmlNodeType.Entity)
624 {
625 XmlNode xmlNode = null;
626 while (_reader.Read() && (xmlNode = LoadNodeDirect()) != null)
627 {
628 parentNode.AppendChildForLoad(xmlNode, _doc);
629 }
630 }
631 else
632 {
633 XmlNode xmlNode2 = null;
635 {
636 parentNode.AppendChildForLoad(xmlNode2, _doc);
637 }
638 }
640 }
641 finally
642 {
643 _reader.Close();
644 }
645 return context.NamespaceManager;
646 }
override? XmlDocument OwnerDocument
XmlReader CreateInnerXmlReader(string xmlFragment, XmlNodeType nt, XmlParserContext context, XmlDocument doc)
Definition XmlLoader.cs:771
XmlNode LoadNodeDirect()
Definition XmlLoader.cs:379
XmlNode LoadNode(bool skipOverWhitespace)
Definition XmlLoader.cs:88
XmlDocument _doc
Definition XmlLoader.cs:9
XmlParserContext GetContext(XmlNode node)
Definition XmlLoader.cs:564
virtual void Close()
Definition XmlReader.cs:528

References System.Xml.XmlLoader._doc, System.Xml.XmlLoader._preserveWhitespace, System.Xml.XmlLoader._reader, System.Xml.XmlNode.AppendChildForLoad(), System.Xml.XmlReader.Close(), System.Xml.XmlLoader.CreateInnerXmlReader(), System.Xml.Dictionary, System.Xml.XmlLoader.GetContext(), System.Xml.XmlDocument.IsLoading, System.Xml.XmlLoader.LoadNode(), System.Xml.XmlLoader.LoadNodeDirect(), System.Xml.XmlParserContext.NamespaceManager, System.Xml.XmlNode.OwnerDocument, and System.Xml.XmlReader.Read().

Referenced by System.Xml.XmlLoader.ExpandEntity(), System.Xml.XmlLoader.ExpandEntityReference(), System.Xml.XmlLoader.LoadInnerXmlAttribute(), and System.Xml.XmlLoader.LoadInnerXmlElement().