示例#1
0
 private String getSchema(Attributes attributes) throws SAXException {
   String schemaUri = attributes.getValue("", "schema");
   if (Uri.hasFragmentId(schemaUri))
     error("schema_fragment_id");
   return Uri.resolve(xmlBaseHandler.getBaseUri(),
                      Uri.escapeDisallowedChars(schemaUri));
 }
示例#2
0
 private String getNs(Attributes attributes, boolean forbidEmpty) throws SAXException {
   String ns = attributes.getValue("", "ns");
   if (ns != null && !Uri.isAbsolute(ns) && (forbidEmpty || !ns.equals("")))
     error("ns_absolute");
   return ns;
 }