All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nlg.wrapper.stax.NamespaceXMLStreamWriter2 Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package nlg.wrapper.stax;

import org.codehaus.stax2.XMLStreamWriter2;

import javax.xml.stream.XMLStreamException;

public class NamespaceXMLStreamWriter2 extends WrappedXMLStreamWriter2 {
    public NamespaceXMLStreamWriter2(XMLStreamWriter2 delegate) {
        super(delegate);
    }

boolean first=true;
    @Override
    public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException {
        super.writeStartElement(namespaceURI, localName);
        if (first) {
            first = false;

      //      writeNamespace("xsd", "http://www.w3.org/2001/XMLSchema");
      //      writeNamespace("prov", "http://www.w3.org/ns/prov#");
       //     writeNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");

           // setPrefix("xsd", "http://www.w3.org/2001/XMLSchema");
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy