ReadElementValueWithNamespace<T> method

T? ReadElementValueWithNamespace<T>(
  1. XmlNamespace xmlNamespace,
  2. String? localName
)
Reads the element value. The XML namespace. Name of the local.

Implementation

T? ReadElementValueWithNamespace<T>(
    XmlNamespace xmlNamespace, String? localName) {
  if (!this.IsStartElementWithNamespace(xmlNamespace, localName)) {
    this.ReadStartElementWithNamespace(xmlNamespace, localName);
  }

  T? value = null;

  if (!this.IsEmptyElement) {
    value = this.ReadValue<T>();
  }

  return value;
}