Skip to content

there is no easy way to gather all children, including Text children #24

Description

@aappddeevv

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 of XmlReader.read pushes a NodeSeq argument, you are a bit stuck.

scala.xml Node.descendant returns all children (entire tree) including Text nodes, but Node \ "_" does not. So you are forced to hop through nodeReader. This is not urgent, but it seems like a better .children that is comprehensive would be nice.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions