public void attribute(String uri, String local, String value) throws SAXException { int prefix; if(uri.length()==0) { // default namespace. don't need prefix prefix = -1; } else { prefix = nsContext.getPrefixIndex(uri); } try { out.attribute(prefix,local,value); } catch (IOException e) { throw new SAXException2(e); } catch (XMLStreamException e) { throw new SAXException2(e); } }
/** * Switches to the "marshal child texts/elements" mode. * This method has to be called after the 1st pass is completed. */ public void endAttributes() throws SAXException, IOException, XMLStreamException { if(!seenRoot) { seenRoot = true; if(schemaLocation!=null || noNsSchemaLocation!=null) { int p = nsContext.getPrefixIndex(WellKnownNamespace.XML_SCHEMA_INSTANCE); if(schemaLocation!=null) out.attribute(p,"schemaLocation",schemaLocation); if(noNsSchemaLocation!=null) out.attribute(p,"noNamespaceSchemaLocation",noNsSchemaLocation); } } out.endStartTag(); }
public void attribute(String uri, String local, String value) throws SAXException { int prefix; if(uri.length()==0) { // default namespace. don't need prefix prefix = -1; } else { prefix = nsContext.getPrefixIndex(uri); } try { out.attribute(prefix,local,value); } catch (IOException e) { throw new SAXException2(e); } catch (XMLStreamException e) { throw new SAXException2(e); } }
/** * Switches to the "marshal child texts/elements" mode. * This method has to be called after the 1st pass is completed. */ public void endAttributes() throws SAXException, IOException, XMLStreamException { if(!seenRoot) { seenRoot = true; if(schemaLocation!=null || noNsSchemaLocation!=null) { int p = nsContext.getPrefixIndex(WellKnownNamespace.XML_SCHEMA_INSTANCE); if(schemaLocation!=null) out.attribute(p,"schemaLocation",schemaLocation); if(noNsSchemaLocation!=null) out.attribute(p,"noNamespaceSchemaLocation",noNsSchemaLocation); } } out.endStartTag(); }
public void attribute(String uri, String local, String value) throws SAXException { int prefix; if(uri.length()==0) { // default namespace. don't need prefix prefix = -1; } else { prefix = nsContext.getPrefixIndex(uri); } try { out.attribute(prefix,local,value); } catch (IOException e) { throw new SAXException2(e); } catch (XMLStreamException e) { throw new SAXException2(e); } }
public void attribute(String uri, String local, String value) throws SAXException { int prefix; if(uri.length()==0) { // default namespace. don't need prefix prefix = -1; } else { prefix = nsContext.getPrefixIndex(uri); } try { out.attribute(prefix,local,value); } catch (IOException e) { throw new SAXException2(e); } catch (XMLStreamException e) { throw new SAXException2(e); } }
/** * Switches to the "marshal child texts/elements" mode. * This method has to be called after the 1st pass is completed. */ public void endAttributes() throws SAXException, IOException, XMLStreamException { if(!seenRoot) { seenRoot = true; if(schemaLocation!=null || noNsSchemaLocation!=null) { int p = nsContext.getPrefixIndex(WellKnownNamespace.XML_SCHEMA_INSTANCE); if(schemaLocation!=null) out.attribute(p,"schemaLocation",schemaLocation); if(noNsSchemaLocation!=null) out.attribute(p,"noNamespaceSchemaLocation",noNsSchemaLocation); } } out.endStartTag(); }
/** * Switches to the "marshal child texts/elements" mode. * This method has to be called after the 1st pass is completed. */ public void endAttributes() throws SAXException, IOException, XMLStreamException { if(!seenRoot) { seenRoot = true; if(schemaLocation!=null || noNsSchemaLocation!=null) { int p = nsContext.getPrefixIndex(WellKnownNamespace.XML_SCHEMA_INSTANCE); if(schemaLocation!=null) out.attribute(p,"schemaLocation",schemaLocation); if(noNsSchemaLocation!=null) out.attribute(p,"noNamespaceSchemaLocation",noNsSchemaLocation); } } out.endStartTag(); }