public void attribute(int prefix, String localName, String value) { String qname; String nsUri; if(prefix==-1) { nsUri = ""; qname = localName; } else { nsUri = nsContext.getNamespaceURI(prefix); String p = nsContext.getPrefix(prefix); if(p.length()==0) // this is more likely a bug in the application code (NamespacePrefixMapper implementation) // this only happens when it tries to assign "" prefix to a non-"" URI, // which is by itself violation of namespace rec. But let's just be safe. // See http://forums.java.net/jive/thread.jspa?messageID=212598#212598 qname = localName; else qname = p +':'+localName; } atts.addAttribute( nsUri, localName, qname, "CDATA", value ); }
public void attribute(int prefix, String localName, String value) { String qname; String nsUri; if(prefix==-1) { nsUri = ""; qname = localName; } else { nsUri = nsContext.getNamespaceURI(prefix); String p = nsContext.getPrefix(prefix); if(p.length()==0) // this is more likely a bug in the application code (NamespacePrefixMapper implementation) // this only happens when it tries to assign "" prefix to a non-"" URI, // which is by itself violation of namespace rec. But let's just be safe. // See http://forums.java.net/jive/thread.jspa?messageID=212598#212598 qname = localName; else qname = p +':'+localName; } atts.addAttribute( nsUri, localName, qname, "CDATA", value ); }
public void attribute(int prefix, String localName, String value) { String qname; String nsUri; if(prefix==-1) { nsUri = ""; qname = localName; } else { nsUri = nsContext.getNamespaceURI(prefix); String p = nsContext.getPrefix(prefix); if(p.length()==0) // this is more likely a bug in the application code (NamespacePrefixMapper implementation) // this only happens when it tries to assign "" prefix to a non-"" URI, // which is by itself violation of namespace rec. But let's just be safe. // See http://forums.java.net/jive/thread.jspa?messageID=212598#212598 qname = localName; else qname = p +':'+localName; } atts.addAttribute( nsUri, localName, qname, "CDATA", value ); }
public void attribute(int prefix, String localName, String value) { String qname; String nsUri; if(prefix==-1) { nsUri = ""; qname = localName; } else { nsUri = nsContext.getNamespaceURI(prefix); String p = nsContext.getPrefix(prefix); if(p.length()==0) // this is more likely a bug in the application code (NamespacePrefixMapper implementation) // this only happens when it tries to assign "" prefix to a non-"" URI, // which is by itself violation of namespace rec. But let's just be safe. // See http://forums.java.net/jive/thread.jspa?messageID=212598#212598 qname = localName; else qname = p +':'+localName; } atts.addAttribute( nsUri, localName, qname, "CDATA", value ); }
a.addAttribute( atts.getURI(i).intern(), atts.getLocalName(i).intern(),
a.addAttribute( auri, alocal,
attributes.addAttribute( xsiURI, "schemaLocation", prefix + ":schemaLocation", "CDATA", attributes.addAttribute( xsiURI, "noNamespaceSchemaLocation", prefix + ":noNamespaceSchemaLocation", "CDATA",
a.addAttribute( auri, alocal,
a.addAttribute( auri, alocal,