Groovy Node.depthFirst() returning a List of Nodes and Strings?
问题 I'm hoping someone will just point out something obvious that I'm missing here. I feel like I've done this a hundred times and for some reason tonight, the behavior coming from this is throwing me for a loop. I'm reading in some XML from a public API. I want to extract all the text from a certain node (everything within 'body'), which also includes a variety of child nodes. Simple example: <xml> <metadata> <article> <body> <sec> <title>A Title</title> <p> This contains <italic>italics</italic