Skip to content

Writer concept is not flexible enough #13

Description

@wilzbach

From @Ingrater on November 2, 2016 15:44

I have a xml document that looks like this

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <source>
    <Item>Text1</Item>
    <Item>Text2</Item>
  <source>
<root>

The current writer concept does not allow formatting the document in this style. "afterNode" will be called always, even after text nodes. There is no context given to "afterNode" so its impossible to decide whether or not to place a newline. The same goes for the indentation. The writer concept should be extended to allow for this style of formatting (as its very common)

Copied from original issue: lodo1995/experimental.xml#37

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