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 (!IsStartElementWithNamespace(xmlNamespace, localName)) {
    await ReadStartElementWithNamespace(xmlNamespace, localName);
  }

  T? value;

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

  return value;
}