indention and context
when using the module for xml fragments, the indention got messy when it regards the original document. we should add an option to work without the context, so we can set own indention levels. the observed output is like:
<node1>
<some-node>
<correct-indention/>
</node1>
to rewrite the text-nodes at the beginning, we can filter for ^\s*\n\s+$
.
another parameter is needed of course.