public static void registerDefaultPrefixes() throws XMLSecurityException {
  setDefaultPrefix("http://www.w3.org/2000/09/xmldsig#","ds");
  setDefaultPrefix("http://www.w3.org/2001/04/xmlenc#","xenc");
  setDefaultPrefix("http://www.w3.org/2009/xmlenc11#","xenc11");
  setDefaultPrefix("http://www.xmlsecurity.org/experimental#","experimental");
  setDefaultPrefix("http://www.w3.org/2002/04/xmldsig-filter2","dsig-xpath-old");
  setDefaultPrefix("http://www.w3.org/2002/06/xmldsig-filter2","dsig-xpath");
  setDefaultPrefix("http://www.w3.org/2001/10/xml-exc-c14n#","ec");
  setDefaultPrefix("http://www.nue.et-inf.uni-siegen.de/~geuer-pollmann/#xpathFilter","xx");
}

public static void registerDefaultPrefixes ( ) throws XMLSecurityException { setDefaultPrefix ( "http://www.w3.org/2000/09/xmldsig#" , "ds" ) ; setDefaultPrefix ( "http://www.w3.org/2001/04/xmlenc#" , "xenc" ) ; setDefaultPrefix ( "http://www.w3.org/2009/xmlenc11#" , "xenc11" ) ; setDefaultPrefix ( "http://www.xmlsecurity.org/experimental#" , "experimental" ) ; setDefaultPrefix ( "http://www.w3.org/2002/04/xmldsig-filter2" , "dsig-xpath-old" ) ; setDefaultPrefix ( "http://www.w3.org/2002/06/xmldsig-filter2" , "dsig-xpath" ) ; setDefaultPrefix ( "http://www.w3.org/2001/10/xml-exc-c14n#" , "ec" ) ; setDefaultPrefix ( "http://www.nue.et-inf.uni-siegen.de/~geuer-pollmann/#xpathFilter" , "xx" ) ; }
this method registers the default prefixes .
