void () { doTest( /* Test: */ """ <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns="http://www.w3.org/1999/xhtml" version="2.0" xmlns:spring="http://www.springframework.org/tags" xmlns:c="http://java.sun.com/jsp/jstl/core"> <html> <c:set var="foo" value="${1}"/> <c:set var="foobar" value="${2}"/> <spring:bind path="test.fieldName"> <jsp:scriptlet></jsp:scriptlet> </spring:bind> </html> </jsp:root>""", /* Expected result: */ """ TAG: name='root' namespace='http://java.sun.com/JSP/Page' ATT: name='xmlns:jsp' value='http://java.sun.com/JSP/Page' ATT: name='xmlns' value='http://www.w3.org/1999/xhtml' ATT: name='version' value='2.0' ATT: name='xmlns:spring' value='http://www.springframework.org/tags' ATT: name='xmlns:c' value='http://java.sun.com/jsp/jstl/core' TAG: name='html' namespace='http://www.w3.org/1999/xhtml' TAG: name='set' namespace='http://java.sun.com/jsp/jstl/core' ATT: name='var' value='foo' ATT: name='value' value='${1}' ENDTAG: name='set' namespace='http://java.sun.com/jsp/jstl/core' TAG: name='set' namespace='http://java.sun.com/jsp/jstl/core' ATT: name='var' value='foobar' ATT: name='value' value='${2}' ENDTAG: name='set' namespace='http://java.sun.com/jsp/jstl/core' TAG: name='bind' namespace='http://www.springframework.org/tags' ATT: name='path' value='test.fieldName' TAG: name='scriptlet' namespace='http://java.sun.com/JSP/Page' ENDTAG: name='scriptlet' namespace='http://java.sun.com/JSP/Page' ENDTAG: name='bind' namespace='http://www.springframework.org/tags' ENDTAG: name='html' namespace='http://www.w3.org/1999/xhtml' ENDTAG: name='root' namespace='http://java.sun.com/JSP/Page' """, XmlBuilder.ProcessingOrder.TAGS_AND_ATTRIBUTES); }