@Override public XMLEventParser allocate(XMLEventParserContext ctx, XMLEvent event) { XMLEventParser defaultParser = null; if (ctx.isStartElement(event, ONLINE_RESOURCE)) defaultParser = new OGCOnlineResource(this.getNamespaceURI()); return ctx.allocate(event, defaultParser); }
public XMLEventParser allocate(XMLEventParserContext ctx, XMLEvent event) { if (ctx.isStartElement(event, CAPABILITY)) return ctx.allocate(event, new WMSCapabilityInformation(this.getNamespaceURI())); else return super.allocate(ctx, event); }