code: public XSDocument type(String typeNS, String typeLocalpart) throws SAXException{
          xml.addAttribute("type", xml.toQName(typeNS, typeLocalpart));
          return this;
      }
docs: type="qname($typeNS, $typeLocalpart)"