List of usage examples for javax.xml XMLConstants XML_NS_PREFIX
String XML_NS_PREFIX
To view the source code for javax.xml XMLConstants XML_NS_PREFIX.
Click Source Link
From source file:org.apache.olingo.commons.core.data.AbstractAtomDealer.java
protected void namespaces(final XMLStreamWriter writer) throws XMLStreamException { writer.writeNamespace(StringUtils.EMPTY, Constants.NS_ATOM); writer.writeNamespace(XMLConstants.XML_NS_PREFIX, XMLConstants.XML_NS_URI); writer.writeNamespace(Constants.PREFIX_METADATA, version.getNamespaceMap().get(ODataServiceVersion.NS_METADATA)); writer.writeNamespace(Constants.PREFIX_DATASERVICES, version.getNamespaceMap().get(ODataServiceVersion.NS_DATASERVICES)); writer.writeNamespace(Constants.PREFIX_GML, Constants.NS_GML); writer.writeNamespace(Constants.PREFIX_GEORSS, Constants.NS_GEORSS); }
From source file:org.apache.olingo.commons.core.serialization.AbstractAtomDealer.java
protected void namespaces(final XMLStreamWriter writer) throws XMLStreamException { writer.writeNamespace(StringUtils.EMPTY, Constants.NS_ATOM); writer.writeNamespace(XMLConstants.XML_NS_PREFIX, XMLConstants.XML_NS_URI); writer.writeNamespace(Constants.PREFIX_METADATA, version.getNamespace(ODataServiceVersion.NamespaceKey.METADATA)); writer.writeNamespace(Constants.PREFIX_DATASERVICES, version.getNamespace(ODataServiceVersion.NamespaceKey.DATASERVICES)); writer.writeNamespace(Constants.PREFIX_GML, Constants.NS_GML); writer.writeNamespace(Constants.PREFIX_GEORSS, Constants.NS_GEORSS); }
From source file:org.opencastproject.mediapackage.XMLCatalogImpl.java
/** * Creates an abstract metadata container. * /* w w w .j a v a2s. co m*/ * @param id * the element identifier withing the package * @param flavor * the catalog flavor * @param uri * the document location * @param size * the catalog size in bytes * @param checksum * the catalog checksum * @param mimeType * the catalog mime type */ protected XMLCatalogImpl(String id, MediaPackageElementFlavor flavor, URI uri, long size, Checksum checksum, MimeType mimeType) { super(id, flavor, uri, size, checksum, mimeType); bindPrefix(XMLConstants.XML_NS_PREFIX, XMLConstants.XML_NS_URI); bindPrefix(XMLConstants.XMLNS_ATTRIBUTE, XMLConstants.XMLNS_ATTRIBUTE_NS_URI); bindPrefix(XSI_NS_PREFIX, XSI_NS_URI); }