src/lib/Parser.js
/**
  Consumes one or more `Name` characters if possible.

  @returns {string}
    `Name` characters, or an empty string if none were consumed.

  @see https://www.w3.org/TR/2008/REC-xml-20081126/#NT-Name
  */
Consumes one or more `Name` characters if possible.
Consumes one or more ` Name ` characters if possible .
consumeName() {
    return syntax.isNameStartChar(this.scanner.peek())
      ? this.scanner.consumeMatchFn(syntax.isNameChar)
      : emptyString;
  }
consumeName ( ) { return syntax . isNameStartChar ( this . scanner . peek ( ) ) ? this . scanner . consumeMatchFn ( syntax . isNameChar ) : emptyString ; }
Consumes one or more `Name` characters if possible.
Consumes one or more ` Name ` characters if possible .