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

◆ ReplaceRange()

override XmlWriter System.Xml.DocumentXPathNavigator.ReplaceRange ( XPathNavigator lastSiblingToReplace)
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 1412 of file DocumentXPathNavigator.cs.

1413 {
1415 {
1416 if (lastSiblingToReplace == null)
1417 {
1418 throw new ArgumentNullException("lastSiblingToReplace");
1419 }
1420 throw new NotSupportedException();
1421 }
1422 CalibrateText();
1423 documentXPathNavigator.CalibrateText();
1424 XmlNode source = _source;
1425 XmlNode xmlNode = documentXPathNavigator._source;
1426 if (source == xmlNode)
1427 {
1428 switch (source.NodeType)
1429 {
1430 case XmlNodeType.Attribute:
1431 case XmlNodeType.Document:
1432 case XmlNodeType.DocumentFragment:
1434 case XmlNodeType.Text:
1435 case XmlNodeType.CDATA:
1436 case XmlNodeType.Whitespace:
1437 case XmlNodeType.SignificantWhitespace:
1439 break;
1440 }
1441 }
1442 else
1443 {
1444 if (xmlNode.IsText)
1445 {
1447 }
1449 {
1451 }
1452 }
1453 DocumentXmlWriter documentXmlWriter = new DocumentXmlWriter(DocumentXmlWriterType.ReplaceToFollowingSibling, source, _document);
1457 return new XmlWellFormedWriter(documentXmlWriter, documentXmlWriter.Settings);
1458 }
static string Xpn_BadPosition
Definition SR.cs:1316
Definition SR.cs:7
static bool IsFollowingSibling(XmlNode left, [NotNullWhen(true)] XmlNode right)
static XmlNamespaceManager GetNamespaceManager(XmlNode node, XmlDocument document)
DocumentXPathNavigator(XmlDocument document, XmlNode node)

References System.Xml.DocumentXPathNavigator._document, System.Xml.DocumentXPathNavigator._source, System.Xml.DocumentXPathNavigator.CalibrateText(), System.Xml.Dictionary, System.Xml.DocumentXPathNavigator.GetNamespaceManager(), System.Xml.DocumentXPathNavigator.IsFollowingSibling(), System.source, and System.SR.Xpn_BadPosition.