8000 dom: Entities consisting of whitespace do not capture their contents · Issue #13 · jmdavis/dxml · GitHub
[go: up one dir, main page]

Skip to content

dom: Entities consisting of whitespace do not capture their contents #13

Open

Description

@GooberMan

<Text> </Text>

Single space there. The DOMEntry's children are null.

I tried providing a config that defined SplitEmpty as yes. No dice.

These whitespaces are important in a schema I'm attempting to parse. And even if they weren't, I'd expect it would be up to the user to determine how to handle the text contents inside any given entry.

Activity

  1. jmdavis commented on Aug 9, 2018

    @jmdavis
    Owner

    It is very much by design that there are no EntityType.text entities which contain only whitespace, since it becomes an utter disaster to parse formatted XML if whitespace by itself is treated as data. I don't know what it would take to add an option to leave such whitespace in. I will have to look into it.

  2. added
    enhancement
    on Aug 9, 2018
  3. GooberMan commented on Aug 9, 2018

    @GooberMan
    Author

    Sticking to standards, schema support so that I can use xsd:whiteSpace would be the best option I'd imagine.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0