public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { try { if (!pushedContext) namespaceContext.pushContext(); else pushedContext = false; for (int i = 0, len = atts.getLength(); i < len; i++) attributes.addAttribute(makeQName(atts.getURI(i), atts.getLocalName(i), atts.getQName(i)), symbolTable.addSymbol(atts.getType(i)), atts.getValue(i)); schemaValidator.startElement(makeQName(namespaceURI, localName, qName), attributes, null); attributes.removeAllAttributes(); } catch (XNIException e) { throw toSAXException(e); } }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { try { if (!pushedContext) namespaceContext.pushContext(); else pushedContext = false; for (int i = 0, len = atts.getLength(); i < len; i++) attributes.addAttribute(makeQName(atts.getURI(i), atts.getLocalName(i), atts.getQName(i)), symbolTable.addSymbol(atts.getType(i)), atts.getValue(i)); schemaValidator.startElement(makeQName(namespaceURI, localName, qName), attributes, null); attributes.removeAllAttributes(); } catch (XNIException e) { throw toSAXException(e); } }
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { if (fNeedPushNSContext) { fNamespaceContext.pushContext(); } fNeedPushNSContext = true; // Fill element QName fillQName(fElementQName, uri, localName, qName); // Fill XMLAttributes if (atts instanceof Attributes2) { fillXMLAttributes2((Attributes2) atts); } else { fillXMLAttributes(atts); } try { fSchemaValidator.startElement(fElementQName, fAttributes, null); } catch (XMLParseException e) { throw Util.toSAXParseException(e); } catch (XNIException e) { throw Util.toSAXException(e); } }
fSchemaValidator.startElement(fElementQName, fAttributes, null); break; case Node.TEXT_NODE:
fillDeclaredPrefixes(reader); fNamespaceContext.setNamespaceContext(reader.getNamespaceContext()); fSchemaValidator.startElement(fElementQName, fAttributes, null); break; case XMLStreamConstants.END_ELEMENT:
fNamespaceContext.setNamespaceContext(start.getNamespaceContext()); fStAXLocationWrapper.setLocation(start.getLocation()); fSchemaValidator.startElement(fElementQName, fAttributes, null); break; case XMLStreamConstants.END_ELEMENT: