举个例子:
<pous>
<pou>
<interface>
...
</interface>
<body>
<FBD>
...
</FBD>
</body>
</pou>
<pou>
<interface>
...
</interface>
<body>
<SFC>
...
</SFC>
</body>
</pou>
</pous>
我知道如何使用 atTag 函数获取所有“pou”:
atTag:: (ArrowXml a) => String -> a XmlTree XmlTree
atTag tag = deep (isElem >>> hasName tag)
但是如何只提取带有 SFC 标签的“pou”?有干净的方法吗?
先感谢您!