990 if (xmlType !=
null &&
obj !=
null)
994 return (
obj as string) ??
string.Empty;
1021 if (xmlType !=
null)
1127 if (
text ==
null || ns ==
null)
1826 return string.Empty;
2042 if (typedValue !=
null)
2103 return string.Empty;
2265 if (
task.IsSuccess())
2298 if (
task.IsSuccess())
2694 typedValue =
string.Empty;
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static string Xml_ReadContentAsFormatException
static string Xml_MixedReadElementContentAs
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
static Task CompletedTask
static readonly Task< bool > DoneTaskTrue
static readonly Task< bool > DoneTaskFalse
XmlSchemaInfo attributeSchemaInfo
object typedAttributeValue
async Task< int > ReadElementContentAsBase64Async(byte[] buffer, int index, int count)
static ReadContentAsBinaryHelper CreateOrReset(ReadContentAsBinaryHelper helper, XmlReader reader)
async Task< int > ReadContentAsBase64Async(byte[] buffer, int index, int count)
int ReadContentAsBase64(byte[] buffer, int index, int count)
int ReadContentAsBinHex(byte[] buffer, int index, int count)
int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
int ReadElementContentAsBase64(byte[] buffer, int index, int count)
async Task< int > ReadElementContentAsBinHexAsync(byte[] buffer, int index, int count)
async Task< int > ReadContentAsBinHexAsync(byte[] buffer, int index, int count)
static bool Equal(string strA, string strB)
async Task StartParsingAsync(XmlReader reader, string targetNamespace)
SchemaType FinishParsing()
void StartParsing(XmlReader reader, string targetNamespace)
virtual XmlSchemaDatatypeVariety Variety
XmlSchemaElement? SchemaElement
XmlSchemaAttribute? SchemaAttribute
XmlSchemaContentType ContentType
XmlSchemaValidity Validity
XmlSchemaType? SchemaType
XmlSchemaSimpleType? MemberType
SchemaNames GetSchemaNames(XmlNameTable nt)
XmlSchemaDatatype? Datatype
XmlValueConverter ValueConverter
void SkipToEndElement(XmlSchemaInfo? schemaInfo)
void SetDtdSchemaInfo(IDtdInfo dtdSchemaInfo)
string GetConcatenatedValue()
XmlSchemaContentType CurrentContentType
void ValidateElement(string localName, string namespaceUri, XmlSchemaInfo? schemaInfo)
object? ValidateAttribute(string localName, string namespaceUri, string attributeValue, XmlSchemaInfo? schemaInfo)
void AddSchema(XmlSchema schema)
string GetDefaultAttributePrefix(string attributeNS)
object? ValidateEndElement(XmlSchemaInfo? schemaInfo)
void ValidateEndOfAttributes(XmlSchemaInfo? schemaInfo)
void GetUnspecifiedDefaultAttributes(ArrayList defaultAttributes)
void ValidateWhitespace(string elementValue)
XmlSchemaValidationFlags ValidationFlags
void ValidateText(string elementValue)
static readonly XmlValueConverter Untyped
object ChangeType(bool value, Type destinationType)
float ToSingle(double value)
double ToDouble(bool value)
decimal ToDecimal(string value)
bool ToBoolean(long value)
string ToString(bool value)
DateTime ToDateTime(bool value)
static void SplitQName(string name, out string prefix, out string lname)
AttributePSVIInfo AttInfo
static Uri ToUri(string s)
virtual ? string LookupNamespace(string prefix)
virtual ? string LookupPrefix(string uri)
virtual IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
virtual void AddNamespace(string prefix, string uri)
XmlReaderSettings Clone()
virtual XmlSpace XmlSpace
Exception CreateReadElementContentAsException(string methodName)
string? GetAttribute(string name)
async Task< string > InternalReadContentAsStringAsync()
bool MoveToAttribute(string name)
bool ReadAttributeValue()
Exception CreateReadContentAsException(string methodName)
virtual ? XmlReaderSettings Settings
bool MoveToNextAttribute()
bool MoveToFirstAttribute()
virtual ? IDtdInfo DtdInfo
virtual Task< bool > ReadAsync()
static bool CanReadContentAs(XmlNodeType nodeType)
virtual Task< string > GetValueAsync()
string InternalReadContentAsString()
void Reset(XmlReader reader)
ValidatingReaderNodeData RecordTextNode(string textValue, string originalStringValue, int depth, int lineNo, int linePos)
void RecordEndElementNode()
Task SetToReplayModeAsync()
void SwitchTextNodeAndEndElement(string textValue, string originalStringValue)
override async Task< string > ReadContentAsStringAsync()
void CachingCallBack(XsdCachingReader cachingReader)
XsdValidatingReader(XmlReader reader, XmlResolver xmlResolver, XmlReaderSettings readerSettings, XmlSchemaObject partialValidationType)
override bool MoveToFirstAttribute()
string _xsiSchemaLocation
override XmlNodeType NodeType
override bool MoveToAttribute(string name)
readonly IXmlNamespaceResolver _coreReaderNSResolver
Task< bool > ReadAsync_ReadAhead(Task task)
override bool CanReadBinaryContent
override DateTime ReadContentAsDateTime()
override decimal ReadContentAsDecimal()
AttributePSVIInfo _attributePSVI
override DateTime ReadElementContentAsDateTime()
override Task< object > ReadContentAsObjectAsync()
void SetupValidator(XmlReaderSettings readerSettings, XmlReader reader, XmlSchemaObject partialValidationType)
ValidatingReaderNodeData _cachedNode
string _originalAtomicValueString
override int ReadElementContentAsInt()
XsdCachingReader _cachingReader
ValidatingReaderNodeData CreateDummyTextNode(string attributeValue, int depth)
int _coreReaderAttributeCount
override async Task SkipAsync()
override long ReadContentAsLong()
Task< object > InternalReadContentAsObjectAsync()
override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
XmlSchemaType AttributeXmlType
ValidatingReaderNodeData GetDefaultAttribute(string name, bool updatePosition)
ValidatingReaderNodeData GetDefaultAttribute(string attrLocalName, string ns, bool updatePosition)
object InternalReadContentAsObject(bool unwrapTypedValue)
object InternalReadElementContentAsObject(out XmlSchemaType xmlType, bool unwrapTypedValue, out string originalString)
override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
string _xsiNoNamespaceSchemaLocation
override int ReadContentAsBinHex(byte[] buffer, int index, int count)
override string ReadElementContentAsString()
override async Task< int > ReadContentAsBinHexAsync(byte[] buffer, int index, int count)
object ReadTillEndElement()
XmlSchemaValidator _validator
override string ReadContentAsString()
readonly XmlResolver _xmlResolver
Task<(XmlSchemaType, object)> InternalReadElementContentAsObjectAsync()
override int ReadContentAsInt()
ArrayList _defaultAttributes
override async Task< int > ReadContentAsBase64Async(byte[] buffer, int index, int count)
async Task<(string, object)> InternalReadContentAsObjectTupleAsync(bool unwrapTypedValue)
string GetOriginalAtomicValueStringOfElement()
XmlValueGetter _valueGetter
override long ReadElementContentAsLong()
override bool ReadElementContentAsBoolean()
override string GetAttribute(int i)
override bool MoveToElement()
override string GetAttribute(string name)
override float ReadContentAsFloat()
XsdCachingReader GetCachingReader()
override Task< bool > ReadAsync()
override async Task< object > ReadContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver)
async Task ProcessEndElementEventAsync()
async Task<(XmlSchemaType, object)> InternalReadElementContentAsObjectAsync(bool unwrapTypedValue)
object InternalReadElementContentAsObject(out XmlSchemaType xmlType)
override async Task< string > ReadElementContentAsStringAsync()
async Task<(XmlSchemaType, string, object)> InternalReadElementContentAsObjectTupleAsync(bool unwrapTypedValue)
override string GetAttribute(string name, string namespaceURI)
override object ReadContentAsObject()
override bool ReadAttributeValue()
readonly ValidationEventHandler _validationEvent
readonly IXmlNamespaceResolver _thisNSResolver
override object ReadElementContentAsObject()
override XmlReaderSettings Settings
void ProcessElementEvent()
override double ReadContentAsDouble()
override decimal ReadElementContentAsDecimal()
void ProcessEndElementEvent()
override async Task< int > ReadElementContentAsBase64Async(byte[] buffer, int index, int count)
void ProcessReaderEvent()
override async Task< object > ReadElementContentAsObjectAsync()
async Task< bool > _ReadAsync_Read(Task< bool > task)
override bool MoveToAttribute(string name, string ns)
override async Task< object > ReadElementContentAsAsync(Type returnType, IXmlNamespaceResolver namespaceResolver)
ValidatingReaderNodeData _textNode
async Task< object > InternalReadContentAsObjectAsync(bool unwrapTypedValue)
AttributePSVIInfo GetAttributePSVI(string name)
object InternalReadContentAsObject()
XmlSchemaInfo _xmlSchemaInfo
AttributePSVIInfo GetAttributePSVI(string localName, string ns)
override bool IsEmptyElement
ReadContentAsBinaryHelper _readBinaryHelper
override void MoveToAttribute(int i)
Task< bool > ReadAsync_Read(Task< bool > task)
ValidatingReaderState _savedState
override string LocalName
XmlSchemaType ElementXmlType
void ProcessInlineSchema()
async Task ProcessInlineSchemaAsync()
override bool ReadContentAsBoolean()
bool IsXSDRoot(string localName, string ns)
override string LookupNamespace(string prefix)
override int AttributeCount
Parser _inlineSchemaParser
override object ReadContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver)
override double ReadElementContentAsDouble()
override string NamespaceURI
void ValidateAttributes()
void ClearAttributesInfo()
void ReadAheadForMemberType()
async Task< bool > _ReadAsync_ReadAhead(Task task)
readonly XmlNamespaceManager _nsManager
AttributePSVIInfo AddAttributePSVI(int attIndex)
XmlSchemaInfo AttributeSchemaInfo
AttributePSVIInfo[] _attributePSVINodes
override int ReadContentAsBase64(byte[] buffer, int index, int count)
override object ReadElementContentAs(Type returnType, IXmlNamespaceResolver namespaceResolver)
readonly bool _processInlineSchema
object ReturnBoxedValue(object typedValue, XmlSchemaType xmlType, bool unWrap)
readonly bool _manageNamespaces
override float ReadElementContentAsFloat()
async Task< object > ReadTillEndElementAsync()
object InternalReadContentAsObject(bool unwrapTypedValue, out string originalStringValue)
override bool MoveToNextAttribute()
override Task< string > GetValueAsync()
object InternalReadElementContentAsObject(out XmlSchemaType xmlType, bool unwrapTypedValue)
async Task ProcessElementEventAsync()
static volatile Type s_typeOfString
override void ResolveEntity()
ValidatingReaderState _validationState
override async Task< int > ReadElementContentAsBinHexAsync(byte[] buffer, int index, int count)
Task ProcessReaderEventAsync()
readonly XmlNameTable _coreReaderNameTable
XsdValidatingReader(XmlReader reader, XmlResolver xmlResolver, XmlReaderSettings readerSettings)
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
string? LookupPrefix(string namespaceName)
string? LookupNamespace(string prefix)