Skip to content

XML Comments #144

@premek

Description

@premek

Allowing to work with XML comments would be a nice enhancement, however I'm not sure how would it fit into the current API.

Comment nodes are parsed by the XML parser but are discarded here

if (node.getNodeType() == Node.ELEMENT_NODE) {

So methods like children() gets only the elements, not the comments. (Which is correct by default but would be nice to be able to get commments too maybe)

Possible use case example:

  • delete selected nodes from xml file including the comment right before them

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions