public void writeStartElement(String prefix, String local, String namespace) throws XMLStreamException { if (prefix == null || prefix.isEmpty()) { writeStartElement(namespace, local); } else { isOverlaidStack.add(0, isOverlaid); if (isOverlaid) { Element nd = getCurrentNode(); Node nd2 = null; if (nd == null) { nd2 = getDocument().getDocumentElement(); } else { nd2 = nd.getFirstChild(); && namespace.equals(nd2.getNamespaceURI()) && userData == null) { adjustOverlaidNode(nd2, prefix); setChild((Element)nd2, false); if (nd2.getFirstChild() == null) {
public void writeStartElement(String namespace, String local) throws XMLStreamException { isOverlaidStack.add(0, isOverlaid); if (isOverlaid) { Element nd = getCurrentNode(); Node nd2 = null; if (nd == null) { nd2 = getDocument().getDocumentElement(); } else { nd2 = nd.getFirstChild(); } while (nd2 != null) { if (nd2.getNodeType() == Node.ELEMENT_NODE && local.equals(nd2.getLocalName()) && namespace.equals(nd2.getNamespaceURI())) { setChild((Element)nd2, false); return; } nd2 = nd2.getNextSibling(); } } isOverlaid = false; super.writeStartElement(namespace, local); }
public void writeStartElement(String prefix, String local, String namespace) throws XMLStreamException { if (prefix == null || prefix.equals("")) { writeStartElement(namespace, local); } else { isOverlaidStack.add(0, isOverlaid); if (isOverlaid) { Element nd = getCurrentNode(); Node nd2 = null; if (nd == null) { nd2 = getDocument().getDocumentElement(); } else { nd2 = nd.getFirstChild(); } while (nd2 != null) { if (nd2.getNodeType() == Node.ELEMENT_NODE && local.equals(nd2.getLocalName()) && namespace.equals(nd2.getNamespaceURI())) { setChild((Element)nd2, false); return; } nd2 = nd2.getNextSibling(); } } isOverlaid = false; super.writeStartElement(prefix, local, namespace); } }
@Override public void writeEndElement() throws XMLStreamException { if (isOverlaid) { Node nd = getCurrentNode().getFirstChild(); while (nd != null) { try { getCurrentNode().setUserData("new", null, null); } catch (Throwable t) { //ignore } nd = nd.getNextSibling(); } } isOverlaid = isOverlaidStack.remove(0); super.writeEndElement(); textOverlay = null; } public void writeStartElement(String local) throws XMLStreamException {
protected void adjustOverlaidNode(Node nd2, String pfx) { String namespace = nd2.getNamespaceURI(); try { if (namespace != null && namespace.equals(getEnvelopeURI())) { adjustPrefix((Element)nd2, pfx); if ("Envelope".equals(nd2.getLocalName())) { adjustPrefix(getEnvelope().getHeader(), pfx); } } } catch (SOAPException e) { //ignore, fallback } super.adjustOverlaidNode(nd2, pfx); }
writer = new OverlayW3CDOMStreamWriter(ctx.getOwnerDocument(), element); return appendNewChild(reader, wrapped, contextDocument, writer, element);
protected void createAndAddElement(String prefix, String local, String namespace) { if (part == null) { super.createAndAddElement(prefix, local, namespace); return; super.createAndAddElement(prefix, local, namespace);
public void writeStartElement(String local) throws XMLStreamException { isOverlaidStack.add(0, isOverlaid); if (isOverlaid) { Element nd = getCurrentNode(); Node nd2 = null; if (nd == null) { nd2 = getDocument().getDocumentElement(); } else { nd2 = nd.getFirstChild(); } while (nd2 != null) { if (nd2.getNodeType() == Node.ELEMENT_NODE && local.equals(nd2.getLocalName()) && StringUtils.isEmpty(nd2.getNamespaceURI())) { setChild((Element)nd2, false); return; } nd2 = nd2.getNextSibling(); } } isOverlaid = false; super.writeStartElement(local); }
@Override public void writeEndElement() throws XMLStreamException { if (isOverlaid) { Node nd = getCurrentNode().getFirstChild(); while (nd != null) { try { getCurrentNode().setUserData("new", null, null); } catch (Throwable t) { //ignore } nd = nd.getNextSibling(); } } isOverlaid = isOverlaidStack.remove(0); super.writeEndElement(); textOverlay = null; } public void writeStartElement(String local) throws XMLStreamException {
protected void adjustOverlaidNode(Node nd2, String pfx) { String namespace = nd2.getNamespaceURI(); try { if (namespace != null && namespace.equals(getEnvelopeURI())) { adjustPrefix((Element)nd2, pfx); if ("Envelope".equals(nd2.getLocalName())) { adjustPrefix(getEnvelope().getHeader(), pfx); } } } catch (SOAPException e) { //ignore, fallback } super.adjustOverlaidNode(nd2, pfx); }
writer = new OverlayW3CDOMStreamWriter(ctx.getOwnerDocument(), element); return appendNewChild(reader, wrapped, contextDocument, writer, element);
protected void createAndAddElement(String prefix, String local, String namespace) { if (part == null) { super.createAndAddElement(prefix, local, namespace); return; super.createAndAddElement(prefix, local, namespace);
@Override public void writeEndElement() throws XMLStreamException { if (isOverlaid) { Node nd = getCurrentNode().getFirstChild(); while (nd != null) { try { getCurrentNode().setUserData("new", null, null); } catch (Throwable t) { //ignore } nd = nd.getNextSibling(); } } isOverlaid = isOverlaidStack.remove(0); super.writeEndElement(); textOverlay = null; } public void writeStartElement(String local) throws XMLStreamException {
public void writeStartElement(String prefix, String local, String namespace) throws XMLStreamException { if (prefix == null || prefix.isEmpty()) { writeStartElement(namespace, local); } else { isOverlaidStack.add(0, isOverlaid); if (isOverlaid) { Element nd = getCurrentNode(); Node nd2 = null; if (nd == null) { nd2 = getDocument().getDocumentElement(); } else { nd2 = nd.getFirstChild(); && namespace.equals(nd2.getNamespaceURI()) && userData == null) { adjustOverlaidNode(nd2, prefix); setChild((Element)nd2, false); if (nd2.getFirstChild() == null) {
@Override public void writeEndElement() throws XMLStreamException { if (isOverlaid) { Node nd = getCurrentNode().getFirstChild(); while (nd != null) { try { getCurrentNode().setUserData("new", null, null); } catch (Throwable t) { //ignore } nd = nd.getNextSibling(); } } isOverlaid = isOverlaidStack.remove(0); super.writeEndElement(); textOverlay = null; } public void writeStartElement(String local) throws XMLStreamException {
public void writeStartElement(String prefix, String local, String namespace) throws XMLStreamException { if (prefix == null || prefix.equals("")) { writeStartElement(namespace, local); } else { isOverlaidStack.add(0, isOverlaid); if (isOverlaid) { Element nd = getCurrentNode(); Node nd2 = null; if (nd == null) { nd2 = getDocument().getDocumentElement(); } else { nd2 = nd.getFirstChild(); && namespace.equals(nd2.getNamespaceURI()) && userData == null) { adjustOverlaidNode(nd2, prefix); setChild((Element)nd2, false); if (nd2.getFirstChild() == null) {
@Override protected void createAndAddElement(String prefix, String local, String namespace) { super.createAndAddElement(prefix, local, namespace); if (isOverlaid) { try { //mark this as new so we don't consider this for overlaying getCurrentNode().setUserData("new", "new", null); } catch (Throwable t) { //ignore } } }
public void writeStartElement(String namespace, String local) throws XMLStreamException { isOverlaidStack.add(0, isOverlaid); if (isOverlaid) { Element nd = getCurrentNode(); Node nd2 = null; if (nd == null) { nd2 = getDocument().getDocumentElement(); } else { nd2 = nd.getFirstChild(); && namespace.equals(nd2.getNamespaceURI()) && userData == null) { adjustOverlaidNode(nd2, ""); setChild((Element)nd2, false); if (nd2.getFirstChild() == null) {
@Override protected void createAndAddElement(String prefix, String local, String namespace) { super.createAndAddElement(prefix, local, namespace); if (isOverlaid) { try { //mark this as new so we don't consider this for overlaying getCurrentNode().setUserData("new", "new", null); } catch (Throwable t) { //ignore } } }
public void writeStartElement(String namespace, String local) throws XMLStreamException { isOverlaidStack.add(0, isOverlaid); if (isOverlaid) { Element nd = getCurrentNode(); Node nd2 = null; if (nd == null) { nd2 = getDocument().getDocumentElement(); } else { nd2 = nd.getFirstChild(); && namespace.equals(nd2.getNamespaceURI()) && userData == null) { adjustOverlaidNode(nd2, ""); setChild((Element)nd2, false); if (nd2.getFirstChild() == null) {