ReadElementStringValueWithPrefix method

Future<String?> ReadElementStringValueWithPrefix(
  1. String namespacePrefix,
  2. String localName
)
Reads the element value. The namespace prefix. Name of the local.

Implementation

Future<String?> ReadElementStringValueWithPrefix(
    String namespacePrefix, String localName) async {
  if (!this.IsStartElementWithPrefix(namespacePrefix, localName)) {
    await this.ReadStartElement(namespacePrefix, localName);
  }

  String? value = null;

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

  return value;
}