ReadElementValueWithNamespace<T> method

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

Implementation

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

  T? value = null;

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

  return value;
}