I have an xml file that has a structure like this
<?xml version="1.0"?>
<shows>
<show>
<title>Show 1</title>
<date>06.05</date>
<time>7</time>
<description>Filling in words to form a description for testing purpose.</description>
<subShows>
<subshow>
<title>Data entry one</title>
<minutes>2</minutes>
<link>http://www.subshow/sub_4.mp3</link>
<downloadlink>http://www.subshow/downloads/sub3.zip</downloadlink>
<size>1</size>
</subshow>
<subshow>
<title>data data entry 2</title>
<minutes>5</minutes>
<link>http://www.subshow/sub1.mp3</link>
<downloadlink>http://www.subshow/downloads/sub.zip</downloadlink>
<size>2.5</size>
</subshow>
</subShows>
</show>
You can see its structure. In order to extract the information from this file I am using 4 for loops all nested inside each other the nested ones only fire if the if statements are true.
My main concern is I have never used 4 nested loops before and I wanted advice on how it will perform under a large xml file.
Loop set up
[list]
[]Loop 1 runs through all the <show> entries.
[]Loop 2 runs through all the children of <show> entries.
[]Loop 3 runs through all the <segment > entries.
[]Loop 4 runs through all the children of <segment > entries.
[/list]
Is there a less process intensive way or will my hit be small and my concerns are just over blown. Any help from someone who uses extraction loops for heavy xml data would be great.