Home
Analytics
Maintain hierarchy in xml in output report
StaceyHopk
I need to design a report that can show the hierarchy as shown in the xml file, and have no idea where to start.
I've been ok in the past designing reports that shows all of the elements of that type.... pretty simple using a relative path.... but now need something that maintains the hierarchy
My initial thought would be that the output report could be a table where each indent was a new level but don't know where to begin?
There is no guarantee about how many levels of nested xml elements there could be.
I attach an example xml file to help explain.... assume each xml element has atrributes with them... I just wanted to keep it simple.
Any different ideas appreciated... just a point in the right direction as to where to start would be appreciated ... anything above that even more so!
Find more posts tagged with
Comments
StaceyHopk
with added attachement
StaceyHopk
The idea in
http://www.birt-exchange.org/org/forum/index.php/topic/16822-recursive-subreports/page__hl__tree__fromsearch__1
from pkouzmenko looks hopeful but can't get anything working with instanceof.... anybody got any examples they coiuld point me to?
mwilliams
Can you show some sample data that's more like your actual data? Is there a parent field or level field or anything?
StaceyHopk
as requested....
mwilliams
I haven't been able to get anything to work with instance of, either. If I get something working, I'll let you know. Hopefully someone else will stumble across this thread, who knows more about xPath expressions.
StaceyHopk
thanks