@Override
    public void elementAttributesProcessed(String name, String nsPrefix, String nsURI) throws Exception {
        NanoXmlBuilder.stop();  // the first element (or its attrs) decides - stop here
    }
@Override
    public void elementAttributesProcessed(String name, String nsPrefix, String nsURI)