public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { switch (level++) { case 0: final String tag = getTagName(); if (!XmlRpcWriter.EXTENSIONS_URI.equals(pURI) || !tag.equals(pLocalName)) { throw new SAXParseException("Expected " + new QName(XmlRpcWriter.EXTENSIONS_URI, tag) + ", got " + new QName(pURI, pLocalName), locator); } handler = getExtHandler(); handler.startDocument(); for (int i = 0; i < prefixes.size(); i += 2) { handler.startPrefixMapping((String) prefixes.get(i), (String) prefixes.get(i+1)); } break; default: handler.startElement(pURI, pLocalName, pQName, pAttrs); break; } }
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { switch (level++) { case 0: final String tag = getTagName(); if (!XmlRpcWriter.EXTENSIONS_URI.equals(pURI) || !tag.equals(pLocalName)) { throw new SAXParseException("Expected " + new QName(XmlRpcWriter.EXTENSIONS_URI, tag) + ", got " + new QName(pURI, pLocalName), locator); } handler = getExtHandler(); handler.startDocument(); for (int i = 0; i < prefixes.size(); i += 2) { handler.startPrefixMapping((String) prefixes.get(i), (String) prefixes.get(i+1)); } break; default: handler.startElement(pURI, pLocalName, pQName, pAttrs); break; } }
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { switch (level++) { case 0: final String tag = getTagName(); if (!XmlRpcWriter.EXTENSIONS_URI.equals(pURI) || !tag.equals(pLocalName)) { throw new SAXParseException("Expected " + new QName(XmlRpcWriter.EXTENSIONS_URI, tag) + ", got " + new QName(pURI, pLocalName), locator); } handler = getExtHandler(); handler.startDocument(); for (int i = 0; i < prefixes.size(); i += 2) { handler.startPrefixMapping((String) prefixes.get(i), (String) prefixes.get(i+1)); } break; default: handler.startElement(pURI, pLocalName, pQName, pAttrs); break; } }