Function XMLParser.hasAttribute

Check whether the current element has a certain attribute.

bool hasAttribute (
  const(String) name
) nothrow @nogc const;