I think this is supposed to be `bibl.setAttributeNS(ns.xml, "id", myXmlid);`