public void startDescription(String about, String prefix, String uri) throws SAXException { this.prefix = prefix; this.uri = uri; startPrefixMapping(prefix, uri); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(RDF, "about", "rdf:about", "CDATA", about); startElement(RDF, "Description", "rdf:Description", attributes); }
public void property(String name, String value) throws SAXException { String qname = prefix + ":" + name; startElement(uri, name, qname, EMPTY_ATTRIBUTES); characters(value.toCharArray(), 0, value.length()); endElement(uri, name, qname); }
/** * Starts an XMP document by setting up the namespace mappings and * writing out the following header: * <pre> * <rdf:RDF> * </pre> */ @Override public void startDocument() throws SAXException { super.startDocument(); startPrefixMapping("rdf", RDF); startPrefixMapping("xmp", XMP); startElement(RDF, "RDF", "rdf:RDF", EMPTY_ATTRIBUTES); }
public void startDescription(String about, String prefix, String uri) throws SAXException { this.prefix = prefix; this.uri = uri; startPrefixMapping(prefix, uri); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(RDF, "about", "rdf:about", "CDATA", about); startElement(RDF, "Description", "rdf:Description", attributes); }
public void startDescription(String about, String prefix, String uri) throws SAXException { this.prefix = prefix; this.uri = uri; startPrefixMapping(prefix, uri); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(RDF, "about", "rdf:about", "CDATA", about); startElement(RDF, "Description", "rdf:Description", attributes); }
public void property(String name, String value) throws SAXException { String qname = prefix + ":" + name; startElement(uri, name, qname, EMPTY_ATTRIBUTES); characters(value.toCharArray(), 0, value.length()); endElement(uri, name, qname); }
public void property(String name, String value) throws SAXException { String qname = prefix + ":" + name; startElement(uri, name, qname, EMPTY_ATTRIBUTES); characters(value.toCharArray(), 0, value.length()); endElement(uri, name, qname); }
/** * Starts an XMP document by setting up the namespace mappings and * writing out the following header: * <pre> * <rdf:RDF> * </pre> */ @Override public void startDocument() throws SAXException { super.startDocument(); startPrefixMapping("rdf", RDF); startPrefixMapping("xmp", XMP); startElement(RDF, "RDF", "rdf:RDF", EMPTY_ATTRIBUTES); }
/** * Starts an XMP document by setting up the namespace mappings and * writing out the following header: * <pre> * <rdf:RDF> * </pre> */ @Override public void startDocument() throws SAXException { super.startDocument(); startPrefixMapping("rdf", RDF); startPrefixMapping("xmp", XMP); startElement(RDF, "RDF", "rdf:RDF", EMPTY_ATTRIBUTES); }