Share via


XmlUtil Class

Definition

Utilities for working with XML

public static class XmlUtil
type XmlUtil = class
Public Class XmlUtil
Inheritance
XmlUtil

Methods

CheckReaderOnEntry(XmlReader, String)

Checks if the XmlReader is pointing to an expected element.

CheckReaderOnEntry(XmlReader, String, String)

Checks if the XmlReader is pointing to an expected element.

EqualsQName(XmlQualifiedName, String, String)

Determines if a Qualified names equals a name / namespace pair.

GetXsiTypeAsQualifiedName(XmlReader)

Gets the xsi:type as a XmlQualifiedName for the current element.

IsNil(XmlReader)

Determines if the reader has an attribute that is 'nil'

IsStartElement(XmlReader, String, ICollection<String>)

Determine if reader is at expected element in one of the listed namespace in namespaceList.

LogReadException(String, Exception, Object[])

Sends formatted XmlReadException to the Logger.

LogReadException(String, Object[])

Sends formatted XmlReadException to the Logger.

LogValidationException(String, Exception, Object[])

Sends formatted XmlValidationException to the Logger.

LogValidationException(String, Object[])

Sends formatted XmlValidationException to the Logger.

LogWriteException(String, Exception, Object[])

Sends formatted XmlWriteException to the Logger.

LogWriteException(String, Object[])

Sends formatted XmlWriteException to the Logger.

NormalizeEmptyString(String)

Normalizes an empty string to 'null'.

ResolveQName(XmlReader, String)

Determines if the prefix on a name maps to a namespace that is in scope the reader.

ValidateXsiType(XmlReader, String, String)

Validates that element the reader is positioned on has an xsi:type attribute with a specific name and type.

ValidateXsiType(XmlReader, String, String, Boolean)

Validates that element the reader is positioned on has an xsi:type attribute with a specific name and type.

Applies to