Skip to content

Permit XML definition of white space  #39

@Arithmeticus

Description

@Arithmeticus

I am using XML Unit 2.9.2 within the context of a .NET 4.72 application.

The method NormalizeWhitespace() is keyed to the Unicode property Zs, which targets more than a dozen characters. But the specifications for XML define white space as only four characters: x9, xA, xD, x20, and that's the basis for standard technologies in the XML stack (e.g., XPath).

I can see the utility for the current XML Unit approach to whitespace, but I’m in a position where I need to use the more restrictive official XML definition. Could XML Unit 2 and 3 be enhanced to allow users to choose between definitions of whitespace?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions