End result I need is to have all the text nodes have the same indent. The @name field is not constant size. Parentnode has a varying number of children that must be parsed in the order received. possibleothernodes are not explicitly ordered in all cases.
XML:
<parentnode>
<possibleothernodes1...n/>
<node name="SomeBoldText">
<text>Text1</text>
</node>
<node>
<text>Text2</text>
</node>
<node>
<text>Text3</text>
</node>
<node>
<text>Text4</text>
</node>
<possibleothernodes2...n/>
</parentnode>
I need the resulting HTML to look like
possibleothernodes1
SomeBoldText: Text1
Text2
Text3
Text4
possibleothernodes2
My real goal right now is how do I group Text1,Text2, Text3, Text4 into one div tag, and the @name into a different div tag? With two divs I can just float them to where they need to be.