Skip to content

Do not ignore XML comments when parsing #508

Closed
@dubinsky

Description

@dubinsky

scala-xml uses scala.xml.Comment to represent XML comments if they are present in the XML literals, and allows constructing comment nodes explicitly; when parsing XML not from a literal, scala.xml.factory.XMLLoader does not set
an instance of org.xml.sax.ext.LexicalHandler as an "http://xml.org/sax/properties/lexical-handler" property on the underlying parser, and does not provide any factory methods that such lexical handler could call from its comment() method.

As a result, comments present in the XML being loaded get ignored.

Are there any plans to fix this?

Thanks!

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