Zipping zippers in Anti-XML
问题 In this question, the asker wants to transform documents like this: <text> The capitals of Bolivia are <blank/> and <blank/>. </text> Into this: <text> The capitals of Bolivia are <input name="blank.1"> and <input name="blank.2">. </text> As I noted in my answer there, Anti-XML's zippers provide a clean solution to this problem. The following, for example, would work for renaming the blank elements: import com.codecommit.antixml._ val q = <text>The capitals of Bolivia are <blank/> and <blank/