ReadElementStringValueWithNamespace method

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

Implementation

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

  String? value = null;

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

  return value;
}