protected void declareNamespacesForStartElement() throws XPathException { if (activeDepth == 1) { declareAllNamespaces(); } else { super.declareNamespacesForStartElement(); } }
protected void declareNamespacesForStartElement() throws XPathException { if (activeDepth == 1) { declareAllNamespaces(); } else { super.declareNamespacesForStartElement(); } }
protected void declareNamespacesForStartElement() throws XPathException { if (activeDepth == 1) { declareAllNamespaces(); } else { super.declareNamespacesForStartElement(); } }
protected void declareNamespacesForStartElement() throws XPathException { if (activeDepth == 1) { declareAllNamespaces(); } else { super.declareNamespacesForStartElement(); } }
/** * startContent: Add any namespace undeclarations needed to stop * namespaces being inherited from parent elements */ public void startContent() throws XPathException { nextReceiver.startElement(elementNameCode, elementTypeCode, elementLocationId, elementProperties | ReceiverOptions.NAMESPACE_OK); declareNamespacesForStartElement(); final int length = bufferedAttributes.getLength(); for (int i=0; i<length; i++) { nextReceiver.attribute(bufferedAttributes.getNameCode(i), bufferedAttributes.getTypeAnnotation(i), bufferedAttributes.getValue(i), bufferedAttributes.getLocationId(i), bufferedAttributes.getProperties(i) | ReceiverOptions.NAMESPACE_OK); } acceptAttributes = false; nextReceiver.startContent(); }
/** * startContent: Add any namespace undeclarations needed to stop * namespaces being inherited from parent elements */ public void startContent() throws XPathException { nextReceiver.startElement(elementNameCode, elementTypeCode, elementLocationId, elementProperties | ReceiverOptions.NAMESPACE_OK); declareNamespacesForStartElement(); final int length = bufferedAttributes.getLength(); for (int i=0; i<length; i++) { nextReceiver.attribute(bufferedAttributes.getNameCode(i), bufferedAttributes.getTypeAnnotation(i), bufferedAttributes.getValue(i), bufferedAttributes.getLocationId(i), bufferedAttributes.getProperties(i) | ReceiverOptions.NAMESPACE_OK); } acceptAttributes = false; nextReceiver.startContent(); }
/** * startContent: Add any namespace undeclarations needed to stop * namespaces being inherited from parent elements */ public void startContent() throws XPathException { inStartTag = false; int props = elementProperties | ReceiverOptions.NAMESPACE_OK; if (hasChildren) { props |= ReceiverOptions.HAS_CHILDREN; } nextReceiver.startElement(elementNameCode, elementTypeCode, elementLocationId, props); declareNamespacesForStartElement(); final int length = bufferedAttributes.getLength(); for (int i = 0; i < length; i++) { nextReceiver.attribute(bufferedAttributes.getNodeName(i), bufferedAttributes.getTypeAnnotation(i), bufferedAttributes.getValue(i), bufferedAttributes.getLocation(i), bufferedAttributes.getProperties(i) | ReceiverOptions.NAMESPACE_OK); } acceptAttributes = false; nextReceiver.startContent(); }
/** * startContent: Add any namespace undeclarations needed to stop * namespaces being inherited from parent elements */ public void startContent() throws XPathException { inStartTag = false; int props = elementProperties | ReceiverOptions.NAMESPACE_OK; if (hasChildren) { props |= ReceiverOptions.HAS_CHILDREN; } nextReceiver.startElement(elementNameCode, elementTypeCode, elementLocationId, props); declareNamespacesForStartElement(); final int length = bufferedAttributes.getLength(); for (int i = 0; i < length; i++) { nextReceiver.attribute(bufferedAttributes.getNodeName(i), bufferedAttributes.getTypeAnnotation(i), bufferedAttributes.getValue(i), bufferedAttributes.getLocation(i), bufferedAttributes.getProperties(i) | ReceiverOptions.NAMESPACE_OK); } acceptAttributes = false; nextReceiver.startContent(); }