Suppose we have XML structure like in following example. Basically, it is a text that is saved in nodes such that each node represents one line from actual text.
<parent>
<node>Line 1</node>
<node>Line 2</node>
<node>- Line 3</node>
<node>- Line 4</node>
<node>Line 5</node>
<node>1. Line 6</node>
<node>2. Line 7</node>
</parent>
Is there any efficient way to transform these in a such way that lines that begin with '-' are transformed to unordered list, lines that begin with numbers are transformed to ordered list?
No comments:
Post a Comment