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

◆ ElementValueWithoutWS()

void System.Xml.Xsl.XsltOld.Processor.ElementValueWithoutWS ( XPathNavigator nav,
StringBuilder builder )
inlineprivate

Definition at line 449 of file Processor.cs.

450 {
451 bool flag = Stylesheet.PreserveWhiteSpace(this, nav);
452 if (!nav.MoveToFirstChild())
453 {
454 return;
455 }
456 do
457 {
458 switch (nav.NodeType)
459 {
460 case XPathNodeType.Text:
461 case XPathNodeType.SignificantWhitespace:
462 builder.Append(nav.Value);
463 break;
464 case XPathNodeType.Whitespace:
465 if (flag)
466 {
467 builder.Append(nav.Value);
468 }
469 break;
470 case XPathNodeType.Element:
472 break;
473 }
474 }
475 while (nav.MoveToNext());
476 nav.MoveToParent();
477 }
void ElementValueWithoutWS(XPathNavigator nav, StringBuilder builder)
Definition Processor.cs:449
bool PreserveWhiteSpace(Processor proc, XPathNavigator node)

References System.Xml.Xsl.XsltOld.Processor.ElementValueWithoutWS(), System.Xml.XPath.XPathNavigator.MoveToFirstChild(), System.Xml.XPath.XPathNavigator.MoveToNext(), System.Xml.XPath.XPathNavigator.MoveToParent(), System.Xml.XPath.XPathNavigator.NodeType, System.Xml.Xsl.XsltOld.Stylesheet.PreserveWhiteSpace(), and System.Xml.XPath.XPathItem.Value.

Referenced by System.Xml.Xsl.XsltOld.Processor.ElementValueWithoutWS(), and System.Xml.Xsl.XsltOld.Processor.ValueOf().