Properly iterating through XML with namespaces in Groovy
问题 I have the following xml code: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <cms:RelatedConfigurationItemList xmlns:cms="some namespace"> <ConfigurationItem> <name>data</name> <id>data</id> <type>data</type> <relationship>IS CHILD OF</relationship> <ConfigurationItemList> <ConfigurationItem> <name>data</name> <id>data</id> <type>data</type> <relationship>IS CHILD OF</relationship> <ConfigurationItemList/> </ConfigurationItem> <ConfigurationItem>