if (!"application".equals(attr.getLocalName()))
if (!"application".equals(attr.getLocalName()))
public void endElement(String namespaceURI, String localName, String qName) throws SAXException { _character = false; String name = null; // -- if namespace processing is disabled then the localName might be null, in that case // -- we use the QName if (localName != null && localName.length() > 0) { name = localName; } else { name = getLocalPart(qName); } // --if it is the starting element just returns if (_startingNode.getLocalName().equals(name) && _nodeStack.empty()) return; // --else just add the node we have built to the previous node _node = (AnyNode) _nodeStack.pop(); // -- if the stack is empty, we have a new child for the root node // -- or a new sibling for the first child of the root node if (_nodeStack.empty()) { _startingNode.addChild(_node); _node = _startingNode; } else { AnyNode previousNode = (AnyNode) _nodeStack.peek(); previousNode.addChild(_node); // --the node processing is finished -> come back to the previous node _node = previousNode; } }
public void endElement(String namespaceURI, String localName, String qName) throws SAXException { _character = false; String name = null; //-- if namespace processing is disabled then the localName might be null, in that case //-- we use the QName if (localName != null && localName.length() > 0) { name = localName; } else { name = getLocalPart(qName); } //--if it is the starting element just returns if (_startingNode.getLocalName().equals(name) && _nodeStack.empty()) return; //--else just add the node we have built to the previous node _node = (AnyNode)_nodeStack.pop(); //-- if the stack is empty, we have a new child for the root node //-- or a new sibling for the first child of the root node if (_nodeStack.empty()) { _startingNode.addChild(_node); _node = _startingNode; } else { AnyNode previousNode = (AnyNode) _nodeStack.peek(); previousNode.addChild(_node); //--the node processing is finished -> come back to the previous node _node = previousNode; } }
&& (node.getLocalName().equals(JDOConstants.ANNOTATIONS_TABLE_NAME) || node.getLocalName().equals(JDOConstants.ANNOTATIONS_COLUMN_NAME) || node.getLocalName().equals(JDOConstants.ANNOTATIONS_ONE_TO_ONE_NAME) || node.getLocalName().equals(JDOConstants.ANNOTATIONS_ONE_TO_MANY))) { XMLContext context = new XMLContext(); context.addPackage(JDOConstants.GENERATED_ANNOTATION_CLASSES_PACKAGE); && (node.getLocalName().equals(SOLRJConstants.ANNOTATIONS_FIELD_NAME) || node.getLocalName().equals(SOLRJConstants.ANNOTATIONS_ID_NAME))) { XMLContext context = new XMLContext(); context.addPackage(SOLRJConstants.GENERATED_ANNOTATION_CLASSES_PACKAGE);
sb.append(getLocalName()); sb.append(' ').append(tempNode.getLocalName()).append("='") .append(tempNode.getStringValue()).append('\''); tempNode = tempNode.getNextSibling(); sb.append("</").append(getLocalName()).append('>'); } else { sb.append("/>");
sb.append(getLocalName()); while (tempNode != null) { sb.append(" "); sb.append(tempNode.getLocalName()); sb.append("='"+tempNode.getStringValue()+"'"); tempNode = tempNode.getNextSibling(); sb.append("</"+getLocalName()+">"); } else { sb.append("/>");
String name = node.getLocalName(); String attPrefix = null; while (tempNode != null) { xmlName = tempNode.getLocalName(); String localName = xmlName;
String name = node.getLocalName(); xmlName = tempNode.getLocalName();
String name = node.getLocalName(); String attPrefix = null; while (tempNode != null) { xmlName = tempNode.getLocalName(); String localName = xmlName;
String name = node.getLocalName(); xmlName = tempNode.getLocalName();