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)); }
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; }