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

◆ ReadTypedValue()

object System.Xml.XmlValidatingReaderImpl.ReadTypedValue ( )
inline

Definition at line 634 of file XmlValidatingReaderImpl.cs.

635 {
636 if (_validationType == ValidationType.None)
637 {
638 return null;
639 }
640 switch (_outerReader.NodeType)
641 {
642 case XmlNodeType.Attribute:
644 case XmlNodeType.Element:
645 {
646 if (SchemaType == null)
647 {
648 return null;
649 }
651 if (xmlSchemaDatatype != null)
652 {
654 {
655 XmlNodeType nodeType;
656 do
657 {
658 if (!_outerReader.Read())
659 {
661 }
662 nodeType = _outerReader.NodeType;
663 }
664 while (nodeType == XmlNodeType.CDATA || nodeType == XmlNodeType.Text || nodeType == XmlNodeType.Whitespace || nodeType == XmlNodeType.SignificantWhitespace || nodeType == XmlNodeType.Comment || nodeType == XmlNodeType.ProcessingInstruction);
665 if (_outerReader.NodeType != XmlNodeType.EndElement)
666 {
668 }
669 }
671 }
672 return null;
673 }
674 case XmlNodeType.EndElement:
675 return null;
676 default:
678 {
679 return null;
680 }
681 return Value;
682 }
683 }
static string Xml_InvalidNodeType
Definition SR.cs:88
static string Xml_InvalidOperation
Definition SR.cs:18
Definition SR.cs:7
XmlNodeType NodeType
Definition XmlReader.cs:62
readonly XmlTextReaderImpl _coreReaderImpl

References System.Xml.XmlValidatingReaderImpl._coreReaderImpl, System.Xml.XmlValidatingReaderImpl._outerReader, System.Xml.XmlValidatingReaderImpl._validationType, System.Xml.XmlTextReaderImpl.InternalTypedValue, System.Xml.XmlReader.IsEmptyElement, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Read(), System.Xml.XmlValidatingReaderImpl.SchemaType, System.Xml.XmlTextReaderImpl.V1Compat, System.Xml.XmlValidatingReaderImpl.Value, System.SR.Xml_InvalidNodeType, System.SR.Xml_InvalidOperation, and System.Xml.XmlException.

Referenced by System.Xml.XmlValidatingReader.ReadTypedValue().