B
Brad Foster
How do I do this
<Document>
<Title value=1>
<Chapter value=1/>
<Part value=1/>
<Part value=2/>
<Part value=3/>
<Chapter value=2/>
<Chapter value=3/>
<Chapter value=4/>
<Chapter value=5/>
<Title>
<Title value=2>
<Chapter value=1/>
<Part value=1/>
<Part value=2/>
<Part value=3/>
<Chapter value=2/>
<Chapter value=3/>
<Chapter value=4/>
<Chapter value=5/>
<Title>
</Document>
How can I gather all titles and then all chapters ie Chapter 1, Chapter 2,
Chapter 3, Chapter 4, Chapter 5 of Title 1 and Chapter 1, Chapter 2, Chapter
3, Chapter 4, Chapter 5 of Title 2 and do this recursively
That is, I should do a breadth first traversal(which I have done)...now all
I need is to group by a parent
<Document>
<Title value=1>
<Chapter value=1/>
<Part value=1/>
<Part value=2/>
<Part value=3/>
<Chapter value=2/>
<Chapter value=3/>
<Chapter value=4/>
<Chapter value=5/>
<Title>
<Title value=2>
<Chapter value=1/>
<Part value=1/>
<Part value=2/>
<Part value=3/>
<Chapter value=2/>
<Chapter value=3/>
<Chapter value=4/>
<Chapter value=5/>
<Title>
</Document>
How can I gather all titles and then all chapters ie Chapter 1, Chapter 2,
Chapter 3, Chapter 4, Chapter 5 of Title 1 and Chapter 1, Chapter 2, Chapter
3, Chapter 4, Chapter 5 of Title 2 and do this recursively
That is, I should do a breadth first traversal(which I have done)...now all
I need is to group by a parent