Open aappddeevv opened 4 years ago
Yeah, that does seem like a problem. @aappddeevv, since you have a use case for this maybe you could answer a couple questions:
.children
is already taken do you have any ideas on what this new method should be called? I have a couple of ideas, but none that I love.
Since the
.children
uses\ "_"
which skips Text nodes, there is no easy way to gather just text nodes or more generally, iterate over all nodes, including Text nodes, using the combinators. Since the signature ofXmlReader.read
pushes a NodeSeq argument, you are a bit stuck.scala.xml
Node.descendant
returns all children (entire tree) including Text nodes, butNode \ "_"
does not. So you are forced to hop throughnodeReader
. This is not urgent, but it seems like a better.children
that is comprehensive would be nice.