xmlslurper
Iterate all children with a given name using GPathResult returned by XmlSlurper
I\'ve parsed some html using XmlSlurper. Now I want to iterate all the children with a given element name.[详细]
2023-01-17 05:14 分类:问答Groovy XMLSlurper issue
I want to parse with XmlSlurper a HTML document which I read using HTTPBuilder. Initialy I tried to do it this way:[详细]
2023-01-16 22:35 分类:问答Groovy Xml Parsing with namespaces
I\'ve been trying to do some xml modifications with groovy\'s XML Slurper. Basically, i\'m going through the xml and looking for tags or attributes that have ? as the value and then replacing it wit[详细]
2023-01-14 21:23 分类:问答Sorting XML in Groovy
I have looked at the documentation on sorting XML with Groovy def records = new XmlParser().parseText(XmlExamples.CAR_RECORDS)[详细]
2023-01-13 02:23 分类:问答Groovy delete a tag in a XMLSlurper, replaceNode {} does nothing
I am parsing some XML with XMLSlurper (groovy 1.7.4) and I need to delete a tag (not make it empty!). Here is a code sample illustrating it:[详细]
2023-01-11 05:50 分类:问答replace XmlSlurper tag with arbitrary XML
I am trying to replace specific XmlSlurper tags with arbitrary XML strings. The best way I have managed to come up with to do this is:[详细]
2023-01-03 13:50 分类:问答XmlSlurper NodeChild that represents a body tag?
I would like to get a Groovy NodeChild that represents, e.g., a body tag. However, if I do html=new XmlSlurper().parseText(blah)[详细]
2023-01-03 08:35 分类:问答Groovier way to find next XmlSlurper element in parent?
I am using: def idx=parent.item.children().indexOf(myElement) if (idx+1<parent.children().size()) { def message=parent.children()[idx+1][详细]
2023-01-03 06:18 分类:问答Groovy pretty print XmlSlurper output from HTML?
I am using several different versions to do this but all seem to result in this error: [Fatal Error] :1:171: The prefix \"xmlns\" cannot be bound to any namespace explicitly; neither can the namespac[详细]
2023-01-03 00:03 分类:问答mkp.yieldUnescaped not working
I am really stuck he开发者_Python百科re.I am creating an XML document with Groovy 1.7 and everything is working except one section is being escaped when it shouldn\'t.[详细]
2023-01-02 01:40 分类:问答