FormatElementName static method

String FormatElementName(
  1. String namespacePrefix,
  2. String localElementName
)
Formats the name of the element. The namespace prefix. Name of the local element.

Implementation

/* private */
static String FormatElementName(
    String namespacePrefix, String localElementName) {
  return namespacePrefix == null || namespacePrefix.isEmpty
      ? localElementName
      : namespacePrefix + ":" + localElementName;
}