Attr.isSpecified() as Boolean
Whether this attribute is specified explicitly or was defaulted from a schema.
cts.doc("example.xml").getElementById("ex1"). getAttributeNS("http://www.w3.org/XML/1998/namespace","lang").isSpecified