protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { String ln = raw[i]; String prefix = raw[i + OFFSET_NS_PREFIX]; String nsURI = raw[i + OFFSET_NS_URI]; w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]); } } }
protected void outputNsAndAttr(Writer w) throws IOException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { w.write(' '); String prefix = raw[i + OFFSET_NS_PREFIX]; if (prefix != null && prefix.length() > 0) { w.write(prefix); w.write(':'); } w.write(raw[i]); // local name w.write("=\""); TextEscaper.writeEscapedAttrValue(w, raw[i + OFFSET_VALUE]); w.write('"'); } } }
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { // First namespace declarations, if any: if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } // Then attributes, if any: if (mAttrs != null && mAttrs.size() > 0) { Iterator it = mAttrs.values().iterator(); while (it.hasNext()) { Attribute attr = (Attribute) it.next(); // Let's only output explicit attribute values: if (!attr.isSpecified()) { continue; } QName name = attr.getName(); String prefix = name.getPrefix(); String ln = name.getLocalPart(); String nsURI = name.getNamespaceURI(); w.writeAttribute(prefix, nsURI, ln, attr.getValue()); } } } }
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { String ln = raw[i]; String prefix = raw[i + OFFSET_NS_PREFIX]; String nsURI = raw[i + OFFSET_NS_URI]; w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]); } } }
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { String ln = raw[i]; String prefix = raw[i + OFFSET_NS_PREFIX]; String nsURI = raw[i + OFFSET_NS_URI]; w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]); } } }
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { String ln = raw[i]; String prefix = raw[i + OFFSET_NS_PREFIX]; String nsURI = raw[i + OFFSET_NS_URI]; w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]); } } }
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { String ln = raw[i]; String prefix = raw[i + OFFSET_NS_PREFIX]; String nsURI = raw[i + OFFSET_NS_URI]; w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]); } } }
@Override protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { String ln = raw[i]; String prefix = raw[i + OFFSET_NS_PREFIX]; String nsURI = raw[i + OFFSET_NS_URI]; w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]); } } }
@Override protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { String ln = raw[i]; String prefix = raw[i + OFFSET_NS_PREFIX]; String nsURI = raw[i + OFFSET_NS_URI]; w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]); } } }
@Override protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { String ln = raw[i]; String prefix = raw[i + OFFSET_NS_PREFIX]; String nsURI = raw[i + OFFSET_NS_URI]; w.writeAttribute(prefix, nsURI, ln, raw[i + OFFSET_VALUE]); } } }
protected void outputNsAndAttr(Writer w) throws IOException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { w.write(' '); String prefix = raw[i + OFFSET_NS_PREFIX]; if (prefix != null && prefix.length() > 0) { w.write(prefix); w.write(':'); } w.write(raw[i]); // local name w.write("=\""); TextEscaper.writeEscapedAttrValue(w, raw[i + OFFSET_VALUE]); w.write('"'); } } }
protected void outputNsAndAttr(Writer w) throws IOException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { w.write(' '); String prefix = raw[i + OFFSET_NS_PREFIX]; if (prefix != null && prefix.length() > 0) { w.write(prefix); w.write(':'); } w.write(raw[i]); // local name w.write("=\""); TextEscaper.writeEscapedAttrValue(w, raw[i + OFFSET_VALUE]); w.write('"'); } } }
@Override protected void outputNsAndAttr(Writer w) throws IOException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { w.write(' '); String prefix = raw[i + OFFSET_NS_PREFIX]; if (prefix != null && prefix.length() > 0) { w.write(prefix); w.write(':'); } w.write(raw[i]); // local name w.write("=\""); TextEscaper.writeEscapedAttrValue(w, raw[i + OFFSET_VALUE]); w.write('"'); } } }
protected void outputNsAndAttr(Writer w) throws IOException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { w.write(' '); String prefix = raw[i + OFFSET_NS_PREFIX]; if (prefix != null && prefix.length() > 0) { w.write(prefix); w.write(':'); } w.write(raw[i]); // local name w.write("=\""); TextEscaper.writeEscapedAttrValue(w, raw[i + OFFSET_VALUE]); w.write('"'); } } }
protected void outputNsAndAttr(Writer w) throws IOException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { w.write(' '); String prefix = raw[i + OFFSET_NS_PREFIX]; if (prefix != null && prefix.length() > 0) { w.write(prefix); w.write(':'); } w.write(raw[i]); // local name w.write("=\""); TextEscaper.writeEscapedAttrValue(w, raw[i + OFFSET_VALUE]); w.write('"'); } } }
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { // First namespace declarations, if any: if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } // Then attributes, if any: if (mAttrs != null && mAttrs.size() > 0) { Iterator it = mAttrs.values().iterator(); while (it.hasNext()) { Attribute attr = (Attribute) it.next(); // Let's only output explicit attribute values: if (!attr.isSpecified()) { continue; } QName name = attr.getName(); String prefix = name.getPrefix(); String ln = name.getLocalPart(); String nsURI = name.getNamespaceURI(); w.writeAttribute(prefix, nsURI, ln, attr.getValue()); } } } }
@Override protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { // First namespace declarations, if any: if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } // Then attributes, if any: if (mAttrs != null && mAttrs.size() > 0) { for (Attribute attr : mAttrs.values()) { // Let's only output explicit attribute values: if (!attr.isSpecified()) { continue; } QName name = attr.getName(); String prefix = name.getPrefix(); String ln = name.getLocalPart(); String nsURI = name.getNamespaceURI(); w.writeAttribute(prefix, nsURI, ln, attr.getValue()); } } } }
@Override protected void outputNsAndAttr(Writer w) throws IOException { if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } String[] raw = mRawAttrs; if (raw != null) { for (int i = 0, len = raw.length; i < len; i += 4) { w.write(' '); String prefix = raw[i + OFFSET_NS_PREFIX]; if (prefix != null && prefix.length() > 0) { w.write(prefix); w.write(':'); } w.write(raw[i]); // local name w.write("=\""); TextEscaper.writeEscapedAttrValue(w, raw[i + OFFSET_VALUE]); w.write('"'); } } }
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { // First namespace declarations, if any: if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } // Then attributes, if any: if (mAttrs != null && mAttrs.size() > 0) { Iterator it = mAttrs.values().iterator(); while (it.hasNext()) { Attribute attr = (Attribute) it.next(); // Let's only output explicit attribute values: if (!attr.isSpecified()) { continue; } QName name = attr.getName(); String prefix = name.getPrefix(); String ln = name.getLocalPart(); String nsURI = name.getNamespaceURI(); w.writeAttribute(prefix, nsURI, ln, attr.getValue()); } } } }