473,379 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Errors in walking through XML

I have code that successfully displays results, but throws an error in
Fx 3 and IE 6.

A sample of the XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mycds>
<cd>
<title>Wolf City</title>
<artist>Amon Duul II</artist>
<artist_id>1</artist_id>
<sequence>1</sequence>
<track_nameSurrounded By The Stars</track_name>
<track_id>2</track_id>
<sequence>2</sequence>
<track_nameGreen Bubble Raincoated Man</track_name>
<track_id>3</track_id>
<sequence>3</sequence>
<track_nameJail-House-Frog</track_name>
<track_id>4</track_id>
<sequence>4</sequence>
<track_nameWolf City</track_name>
<track_id>5</track_id>
<sequence>5</sequence>
<track_nameWie Der Wind Am Ende Einer Strabe</track_name>
<track_id>6</track_id>
<sequence>6</sequence>
<track_nameDeutsch Nepal</track_name>
<track_id>7</track_id>
<sequence>7</sequence>
<track_nameSleepwalker's Timeless Bridge</track_name>
</cd>
</mycds>

I get the sequence and tracks with code like this:
var x=xmlDoc.getElementsByTagName("cd");

function show(i)
{
for (j=0; j < tracks.length; j++)
{
sequence = x[i].getElementsByTagName("sequence")
[j].childNodes[0].nodeValue;
..
..
..
}
}

But that produces the error:
Error: x[i].getElementsByTagName("sequence")[j] is undefined

Note: var i is successfully passed in.

As mentioned, the code works - but throws an error.
Can someone shed some light on why this might be getting the error,
and how to 'correct' it?
Sep 19 '08 #1
7 1190
On Sep 19, 4:22*pm, ane...@canada.com wrote:
I have code that successfully displays results, but throws an error in
Fx 3 and IE 6.

A sample of the XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mycds>
<cd>
* * * * <title>Wolf City</title>
* * * * <artist>Amon Duul II</artist>
* * * * <artist_id>1</artist_id>
* * * * <sequence>1</sequence>
* * * * <track_nameSurrounded By The Stars</track_name>
* * * * <track_id>2</track_id>
* * * * <sequence>2</sequence>
* * * * <track_nameGreen Bubble Raincoated Man</track_name>
* * * * <track_id>3</track_id>
* * * * <sequence>3</sequence>
* * * * <track_nameJail-House-Frog</track_name>
* * * * <track_id>4</track_id>
* * * * <sequence>4</sequence>
* * * * <track_nameWolf City</track_name>
* * * * <track_id>5</track_id>
* * * * <sequence>5</sequence>
* * * * <track_nameWie Der Wind Am Ende Einer Strabe</track_name>
* * * * <track_id>6</track_id>
* * * * <sequence>6</sequence>
* * * * <track_nameDeutsch Nepal</track_name>
* * * * <track_id>7</track_id>
* * * * <sequence>7</sequence>
* * * * <track_nameSleepwalker's Timeless Bridge</track_name>
</cd>
</mycds>
Sorry. I missed the first track:
<track_id>1</track_id>
<sequence>1</sequence>
<track_nameSurrounded By The Stars</track_name>
Sep 19 '08 #2
On Sep 20, 1:22*am, ane...@canada.com wrote:
I have code that successfully displays results, but throws an error in
Fx 3 and IE 6.

A sample of the XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mycds>
<cd>
* * * * <title>Wolf City</title>
* * * * <artist>Amon Duul II</artist>
* * * * <artist_id>1</artist_id>
* * * * <sequence>1</sequence>
* * * * <track_nameSurrounded By The Stars</track_name>
<track_id>1</track_id>
[snip]
</cd>
</mycds>

I get the sequence and tracks with code like this:
var x=xmlDoc.getElementsByTagName("cd");

function show(i)
{
for (j=0; j < tracks.length; j++)
{
sequence = x[i].getElementsByTagName("sequence")
[j].childNodes[0].nodeValue;
.
.
.

}
}

But that produces the error:
Error: x[i].getElementsByTagName("sequence")[j] is undefined

Note: var i is successfully passed in.

As mentioned, the code works - but throws an error.
Can someone shed some light on why this might be getting the error,
and how to 'correct' it?
Where is the declaration of `tracks'? It would better if you posted a
simple test case with minimalistic data and the relevant code instead
of snipping out parts from it. Use firebug to test your application
and inspect the program values at runtime. Most probably, a particular
combination of i and j is non-existent and hence the error. A simple
example like this should do the trick:

<code>//untested

var cds = doc.getElementsByTagName("cds");
if(!cds) return;
for(var i = 0, maxI = cds.length; i < maxI; ++i) {
var cd = cds[i];
// grab the title, artist, artist id
var seqs = cd.getElementsByTagName("sequence");
var tracks = cd.getElementsByTagName("track_name");
for(var j = 0, maxJ = seqs.length; j < maxJ; ++j) {
var seq = seqs[j].firstChild.nodeValue;
var trackName = tracks[j].firstChild.nodeValue;
// grab hold of track_id in the same way
}
}

</code>

/sasuke
Sep 20 '08 #3
On Sep 20, 1:08*am, sasuke <database...@gmail.comwrote:
On Sep 20, 1:22*am, ane...@canada.com wrote:
I have code that successfully displays results, but throws an error in
Fx 3 and IE 6.
A sample of the XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<mycds>
<cd>
* * * * <title>Wolf City</title>
* * * * <artist>Amon Duul II</artist>
* * * * <artist_id>1</artist_id>
* * * * <sequence>1</sequence>
* * * * <track_nameSurrounded By The Stars</track_name>
* * * * <track_id>1</track_id>
* * * * [snip]
</cd>
</mycds>
I get the sequence and tracks with code like this:
var x=xmlDoc.getElementsByTagName("cd");
function show(i)
{
for (j=0; j < tracks.length; j++)
{
sequence = x[i].getElementsByTagName("sequence")
[j].childNodes[0].nodeValue;
.
.
.
}
}
But that produces the error:
Error: x[i].getElementsByTagName("sequence")[j] is undefined
Note: var i is successfully passed in.
As mentioned, the code works - but throws an error.
Can someone shed some light on why this might be getting the error,
and how to 'correct' it?

Where is the declaration of `tracks'? It would better if you posted a
simple test case with minimalistic data and the relevant code instead
of snipping out parts from it. Use firebug to test your application
and inspect the program values at runtime. Most probably, a particular
combination of i and j is non-existent and hence the error. A simple
example like this should do the trick:

<code>//untested

var cds = doc.getElementsByTagName("cds");
if(!cds) return;
for(var i = 0, maxI = cds.length; i < maxI; ++i) {
* var cd = cds[i];
* // grab the title, artist, artist id
* var seqs = cd.getElementsByTagName("sequence");
* var tracks = cd.getElementsByTagName("track_name");
* for(var j = 0, maxJ = seqs.length; j < maxJ; ++j) {
* * var seq = seqs[j].firstChild.nodeValue;
* * var trackName = tracks[j].firstChild.nodeValue;
* * // grab hold of track_id in the same way
* }

}

</code>

/sasuke
I should know better. Here is a 'working' script, but still throws an
error. The xml file is as above:
<code>
<html>
<head>

<script type="text/javascript">

var xmlDoc;

if (window.ActiveXObject)
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{
xmlDoc=document.implementation.createDocument(""," ",null);
}
else
{
alert('Your browser cannot handle this script');
}

xmlDoc.async=false;
xmlDoc.load("mycd.xml");

var x=xmlDoc.getElementsByTagName("cd");
function show(i)
{
var txt="";
var artist=(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
var title=(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
var tracks=xmlDoc.getElementsByTagName("track_name")
[0].childNodes[0].nodeValue;

var txt="Artist: "+artist+"<br />Title: "+title+"<br />";
var sequence ="";
for (j=0; j < tracks.length; j++)
{
var sequence = x[i].getElementsByTagName("sequence")
[j].childNodes[0].nodeValue;
var track_name=x[i].getElementsByTagName("track_name")
[j].childNodes[0].nodeValue;
txt=txt+"[" + sequence + "] " + track_name + "<br />";
document.getElementById("show").innerHTML=txt;
}
}
</script>
</head>

<body>
<script type="text/javascript">
document.write("<table border='1'>");
document.write("<tr>");
document.write("<td align='center'>Disk Number</td>");//
document.write("<td align='center'>Artist</td>");
document.write("<td align='center'>Title</td>");
document.write("</tr>");

for (var i=0;i<x.length;i++)
{
document.write("<tr onclick='show(" + i + ");'>");
document.write("<td>");
document.write(x[i].getElementsByTagName("cd_id")
[0].childNodes[0].nodeValue);
document.write("</td>");

document.write("<td>");
document.write(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
document.write("</td>");

document.write("<td>");
document.write(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
document.write("</td>");

document.write("</tr>");
}
document.write("</table>");
</script>

<div id='show'>
Click on one of the table rows to display the full album information.
</div>
</body>
</html>
</code>
Sep 20 '08 #4
On Sep 20, 10:47*am, ane...@canada.com wrote:
I should know better. Here is a 'working' script, but still throws an
error. The xml file is as above:
<code>
<html>
<head>

<script type="text/javascript">

var xmlDoc;

if (window.ActiveXObject)
{
* * * * xmlDoc=new ActiveXObject("Microsoft.XMLDOM");}

else if (document.implementation.createDocument)
{
* * * * xmlDoc=document.implementation.createDocument(""," ",null);}

else
{
alert('Your browser cannot handle this script');

}

xmlDoc.async=false;
xmlDoc.load("mycd.xml");

var x=xmlDoc.getElementsByTagName("cd");
function show(i)
{
* * * * var txt="";
* * * * var artist=(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
* * * * var title=(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
* * * * var tracks=xmlDoc.getElementsByTagName("track_name")
[0].childNodes[0].nodeValue;

* * * * var txt="Artist: "+artist+"<br />Title: "+title+"<br />";
* * * * var sequence ="";
* * * * for (j=0; j < tracks.length; j++)
* * * * * * * * {
* * * * * * * * * * * * var sequence = x[i].getElementsByTagName("sequence")
[j].childNodes[0].nodeValue;
* * * * * * * * * * * * var track_name=x[i].getElementsByTagName("track_name")
[j].childNodes[0].nodeValue;
* * * * * * * * * * * * txt=txt+"[" + sequence + "] " + track_name + "<br />";
* * * * * * * * * * * * document.getElementById("show").innerHTML=txt;
* * * * * * * * }}

</script>
</head>

<body>
<script type="text/javascript">
document.write("<table border='1'>");
document.write("<tr>");
document.write("<td align='center'>Disk Number</td>");//
document.write("<td align='center'>Artist</td>");
document.write("<td align='center'>Title</td>");
document.write("</tr>");

for (var i=0;i<x.length;i++)
{
* * * * document.write("<tr onclick='show(" + i + ");'>");
* * * * document.write("<td>");
* * * * document.write(x[i].getElementsByTagName("cd_id")
[0].childNodes[0].nodeValue);
* * * * document.write("</td>");

* * * * document.write("<td>");
* * * * document.write(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
* * * * document.write("</td>");

* * * * document.write("<td>");
* * * * document.write(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
* * * * document.write("</td>");

* * * * document.write("</tr>");}

document.write("</table>");
</script>

<div id='show'>
Click on one of the table rows to display the full album information.
</div>
</body>
</html>
</code>
The offending piece of code here is the declaration and definition of
`tracks'. Most probably a classic example of copy-paste-errors; it it
currently assigning the name of the first track to `tracks' instead of
an HTMLCollection.

Replace:
var tracks=xmlDoc.getElementsByTagName("track_name")[0].
childNodes[0].nodeValue; // 'surrounded by the stars'
with:
var tracks=xmlDoc.getElementsByTagName("track_name");

HTH,
/sasuke
Sep 20 '08 #5
On Sep 20, 3:57*am, sasuke <database...@gmail.comwrote:
On Sep 20, 10:47*am, ane...@canada.com wrote:
I should know better. Here is a 'working' script, but still throws an
error. The xml file is as above:
<code>
<html>
<head>
<script type="text/javascript">
var xmlDoc;
if (window.ActiveXObject)
{
* * * * xmlDoc=new ActiveXObject("Microsoft.XMLDOM");}
else if (document.implementation.createDocument)
{
* * * * xmlDoc=document.implementation.createDocument(""," ",null);}
else
{
alert('Your browser cannot handle this script');
}
xmlDoc.async=false;
xmlDoc.load("mycd.xml");
var x=xmlDoc.getElementsByTagName("cd");
function show(i)
{
* * * * var txt="";
* * * * var artist=(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
* * * * var title=(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
* * * * var tracks=xmlDoc.getElementsByTagName("track_name")
[0].childNodes[0].nodeValue;
* * * * var txt="Artist: "+artist+"<br />Title: "+title+"<br />";
* * * * var sequence ="";
* * * * for (j=0; j < tracks.length; j++)
* * * * * * * * {
* * * * * * * * * * * * var sequence = x[i].getElementsByTagName("sequence")
[j].childNodes[0].nodeValue;
* * * * * * * * * * * * var track_name=x[i].getElementsByTagName("track_name")
[j].childNodes[0].nodeValue;
* * * * * * * * * * * * txt=txt+"[" + sequence + "] " + track_name + "<br />";
* * * * * * * * * * * * document.getElementById("show").innerHTML=txt;
* * * * * * * * }}
</script>
</head>
<body>
<script type="text/javascript">
document.write("<table border='1'>");
document.write("<tr>");
document.write("<td align='center'>Disk Number</td>");//
document.write("<td align='center'>Artist</td>");
document.write("<td align='center'>Title</td>");
document.write("</tr>");
for (var i=0;i<x.length;i++)
{
* * * * document.write("<tr onclick='show(" + i + ");'>");
* * * * document.write("<td>");
* * * * document.write(x[i].getElementsByTagName("cd_id")
[0].childNodes[0].nodeValue);
* * * * document.write("</td>");
* * * * document.write("<td>");
* * * * document.write(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
* * * * document.write("</td>");
* * * * document.write("<td>");
* * * * document.write(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
* * * * document.write("</td>");
* * * * document.write("</tr>");}
document.write("</table>");
</script>
<div id='show'>
Click on one of the table rows to display the full album information.
</div>
</body>
</html>
</code>

The offending piece of code here is the declaration and definition of
`tracks'. Most probably a classic example of copy-paste-errors; it it
currently assigning the name of the first track to `tracks' instead of
an HTMLCollection.

Replace:
* var tracks=xmlDoc.getElementsByTagName("track_name")[0].
* * * * * * *childNodes[0].nodeValue; // 'surrounded by thestars'
with:
* var tracks=xmlDoc.getElementsByTagName("track_name");

HTH,
/sasuke
With Firebug installed, the script does not display correctly. Firebug
and error console say I don't have permission to call method
Element.getElementsByTagName !? No line # is indicated.

Sep 20 '08 #6
On Sep 20, 8:54*pm, ane...@canada.com wrote:
With Firebug installed, the script does not display correctly. Firebug
and error console say I don't have permission to call method
Element.getElementsByTagName !? No line # is indicated.
The code works fine on my firebug. Maybe something wrong with your
script / sample XML file.

-----------------------------------D<--------------------------------
<html>
<head>
<script type="text/javascript">
var xmlDoc;
if (window.ActiveXObject)
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{
xmlDoc=document.implementation.createDocument(""," ",null);
}
else
{
alert('Your browser cannot handle this script');
}
xmlDoc.async=false;
xmlDoc.load("mycd.xml");

var x=xmlDoc.getElementsByTagName("cd");
function show(i)
{
var txt="";
var artist=(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
var title=(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
var tracks=xmlDoc.getElementsByTagName("track_name");

var txt="Artist: "+artist+"<br />Title: "+title+"<br />";
var sequence ="";
for (var j=0; j < tracks.length; j++)
{
var sequence = x[i].getElementsByTagName("sequence")
[j].childNodes[0].nodeValue;
var track_name=x[i].getElementsByTagName("track_name")
[j].childNodes[0].nodeValue;
txt=txt+"[" + sequence + "] " + track_name + "<br />";
document.getElementById("show").innerHTML=txt;
}
}
</script>
</head>
<body>
<script type="text/javascript">
document.write("<table border='1'>");
document.write("<tr>");
document.write("<td align='center'>Disk Number</td>");//
document.write("<td align='center'>Artist</td>");
document.write("<td align='center'>Title</td>");
document.write("</tr>");

for (var i=0;i<x.length;i++)
{
document.write("<tr onclick='show(" + i + ");'>");
document.write("<td>");
document.write(x[i].getElementsByTagName("cd_id")
[0].childNodes[0].nodeValue);
document.write("</td>");

document.write("<td>");
document.write(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
document.write("</td>");

document.write("<td>");
document.write(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
document.write("</td>");
document.write("</tr>");
}
document.write("</table>");
</script>
<div id='show'>
Click on one of the table rows to display the full album
information.
</div>
</body>
</html>
</code>

<?xml version="1.0"?>
<mycds>
<cd>
<cd_id>1</cd_id>
<title>Wolf City</title>
<artist>Amon Duul II</artist>
<artist_id>1</artist_id>
<track_id>1</track_id>
<sequence>1</sequence>
<track_nameSurrounded By The Stars</track_name>
<track_id>2</track_id>
<sequence>2</sequence>
<track_nameGreen Bubble Raincoated Man</track_name>
<track_id>3</track_id>
<sequence>3</sequence>
<track_nameJail-House-Frog</track_name>
<track_id>4</track_id>
<sequence>4</sequence>
<track_nameWolf City</track_name>
<track_id>5</track_id>
<sequence>5</sequence>
<track_nameWie Der Wind Am Ende Einer Strabe</track_name>
<track_id>6</track_id>
<sequence>6</sequence>
<track_nameDeutsch Nepal</track_name>
<track_id>7</track_id>
<sequence>7</sequence>
<track_nameSleepwalker's Timeless Bridge</track_name>
</cd>
</mycds>
-----------------------------------D<--------------------------------

/sasuke
Sep 20 '08 #7
*** SOLVED ***
After reading the replies from 'sasuke' and some head scratching, I
realized that the loop to display individual tracks was the culprit.
Specifically, the track length was still using the total number of
tracks in the XML file, not the number of tracks on 1 CD. Below is the
working script. XML file follows. Thank you sasuke for pointing me in
the right direction.
8X------------------------- cut here -------------------------- 8X
<html>
<head>
<style type="text/css">
..left_pane
{
border:solid 2px black;
background-color:#99E592;
color:black;
font-family:verdana;
width:49%;
margin-left:0px;
float:left;
}

..right_pane
{
border:solid 2px black;
background-color:#2DE51F;
color:black;
font-family:verdana;
width:49%;
float:right;
}
</style>

<script type="text/javascript">

var xmlDoc;

if (window.ActiveXObject)
{// code for IE
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{// code for Mozilla, Firefox, Opera, etc.
xmlDoc=document.implementation.createDocument(""," ",null);
}
else
{
alert('Your browser cannot handle this script');
}

xmlDoc.async=false;
xmlDoc.load("mycd.xml");

var x=xmlDoc.getElementsByTagName("cd");
var root = xmlDoc.documentElement;

var tracks=xmlDoc.getElementsByTagName("track_name");
var cds=xmlDoc.getElementsByTagName("cd");
var all = xmlDoc.getElementsByTagName("*");

//alert ('there are ' + x.length + ' cds');
//alert ('there are ' + tracks.length + ' tracks');
//alert ('there are ' + all.length + ' tags in total');

function show(i)
{
var txt="";
var disk = (x[i].getElementsByTagName("cd_id")
[0].childNodes[0].nodeValue);
var artist=(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
var title=(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
var year=(x[i].getElementsByTagName("year")
[0].childNodes[0].nodeValue);
var country=(x[i].getElementsByTagName("country")
[0].childNodes[0].nodeValue);
var company=(x[i].getElementsByTagName("company")
[0].childNodes[0].nodeValue);
var price=(x[i].getElementsByTagName("price")
[0].childNodes[0].nodeValue);
var this_tracks=x[i].getElementsByTagName("track_name");

//alert('there are ' + this_tracks.length + ' tracks on this cd.');

var txt="Artist: "+artist+"<br />Title: "+title+"<br />Year: "+year
+"<br />Country: "+country+"<br />Company: "+company+"<br />Price:
"+price + "<br />";
for (var j=0; j < this_tracks.length; j++)
{
var sequence = x[i].getElementsByTagName("sequence")
[j].childNodes[0].nodeValue; /* THIS WORKS */
var track_name=x[i].getElementsByTagName("track_name")
[j].childNodes[0].nodeValue; /* THIS WORKS */
txt=txt+"[" + sequence + "] " + track_name + "<br />";
document.getElementById("show").innerHTML=txt;
}
}
</script>
</head>

<body>
<div class="left_pane">
<script type="text/javascript">
document.write("<table border='1'>");
document.write("<tr>");
document.write("<td align='center'>Disk Number</td>");//
document.write("<td align='center'>Artist</td>");
document.write("<td align='center'>Title</td>");
document.write("</tr>");

for (var i=0;i<x.length;i++)
{
document.write("<tr onclick='show(" + i + ");'>");
document.write("<td>");
document.write(x[i].getElementsByTagName("cd_id")
[0].childNodes[0].nodeValue);
document.write("</td>");

document.write("<td>");
document.write(x[i].getElementsByTagName("artist")
[0].childNodes[0].nodeValue);
document.write("</td>");

document.write("<td>");
document.write(x[i].getElementsByTagName("title")
[0].childNodes[0].nodeValue);
document.write("</td>");

document.write("</tr>");
}
document.write("</table>");
</script>
</div>

<div class="right_pane">
<div id='show'>
Click on one of the table rows to display the full album information.
</div>
</div>
</body>
</html>

8X------------------------- cut here -------------------------- 8X

The XML file:
8X------------------------- cut here -------------------------- 8X
<?xml version="1.0" encoding="ISO-8859-1"?>
<mycds>
<cd>
<cd_id>1</cd_id>
<title>Amon Duul II. Best of 1969 - 1974</title>
<artist>Amon Duul II</artist>
<artist_id>1</artist_id>
<year>1974</year>
<price>$11.05</price>
<company>Muffin' Man Musique</company>
<country>Canada eh!</country>
<track_id>1</track_id>
<track_name>Wie Der Wind Am Ende Einer Strasse</track_name>
<sequence>1</sequence>
<track_id>2</track_id>
<track_name>Archangel Thunderbird</track_name>
<sequence>2</sequence>
<track_id>3</track_id>
<track_name>Deutsch Nepal</track_name>
<sequence>3</sequence>
<track_id>4</track_id>
<track_name>Kannan</track_name>
<sequence>4</sequence>
<track_id>5</track_id>
<track_name>Surrounded By The Stars</track_name>
<sequence>5</sequence>
<track_id>6</track_id>
<track_name>Improvisations</track_name>
<sequence>6</sequence>
<track_id>7</track_id>
<track_name>Soap Shop Rock</track_name>
<sequence>7</sequence>
<track_id>8</track_id>
<track_name>Wolf City</track_name>
<sequence>8</sequence>
<track_id>9</track_id>
<track_name>Cerebrus</track_name>
<sequence>9</sequence>
<track_id>10</track_id>
<track_name>Henriette Krotenschwantze</track_name>
<sequence>10</sequence>
<track_id>11</track_id>
<track_name>Race From Here To Your Ears</track_name>
<sequence>11</sequence>
<track_id>12</track_id>
<track_name>Krohwinkl 12</track_name>
<sequence>12</sequence>
<track_id>13</track_id>
<track_name>Utopia No 1</track_name>
<sequence>13</sequence>
<track_id>14</track_id>
<track_name>Stumbling Over Melted Moonlight</track_name>
<sequence>14</sequence>
<track_id>15</track_id>
<track_name>A Morning Excuse</track_name>
<sequence>15</sequence>
<track_id>16</track_id>
<track_name>A Short Stop At The Trans-Sylvanian Brain-Surgery</
track_name>
<sequence>16</sequence>
<track_id>17</track_id>
<track_name>Pale Gallery</track_name>
<sequence>17</sequence>
</cd>
<cd>
<cd_id>2</cd_id>
<title>Wolf City</title>
<artist>Amon Duul II</artist>
<artist_id>1</artist_id>
<year>1968</year>
<price>$15.95</price>
<company>Muffin' Man Musique</company>
<country>Canada eh!</country>
<track_id>1</track_id>
<sequence>1</sequence>
<track_nameSurrounded By The Stars</track_name>
<track_id>2</track_id>
<sequence>2</sequence>
<track_nameGreen Bubble Raincoated Man</track_name>
<track_id>3</track_id>
<sequence>3</sequence>
<track_nameJail-House-Frog</track_name>
<track_id>4</track_id>
<sequence>4</sequence>
<track_nameWolf City</track_name>
<track_id>5</track_id>
<sequence>5</sequence>
<track_nameWie Der Wind Am Ende Einer Strabe</track_name>
<track_id>6</track_id>
<sequence>6</sequence>
<track_nameDeutsch Nepal</track_name>
<track_id>7</track_id>
<sequence>7</sequence>
<track_nameSleepwalker's Timeless Bridge</track_name>
</cd>
<cd>
<cd_id>3</cd_id>
<title>Burgers</title>
<artist>Hot Tuna</artist>
<artist_id>3></artist_id>
<year>1968</year>
<price>$45.99</price>
<company>Muffin' Man Musique</company>
<country>Canada eh!</country>
<track_name>True Religion</track_name>
<track_id>1</track_id>
<sequence>1</sequence>
<track_name>Highway Song</track_name>
<track_id>2</track_id>
<sequence>2</sequence>
<track_name>99 Year Blues</track_name>
<track_id>3</track_id>
<sequence>3</sequence>
<track_name>Sea Child</track_name>
<track_id>4</track_id>
<sequence>4</sequence>
<track_name>Keep on Truckin'</track_name>
<track_id>5</track_id>
<sequence>5</sequence>
<track_name>Water Song</track_name>
<track_id>6</track_id>
<sequence>6</sequence>
<track_name>Ode for Billie Dean</track_name>
<track_id>7</track_id>
<sequence>7</sequence>
<track_name>Let Us Get Together Right Down Here</track_name>
<track_id>8</track_id>
<sequence>8</sequence>
<track_name>Sunny Day Strut</track_name>
<track_id>9</track_id>
<sequence>9</sequence>
</cd>
</mycds>
8X------------------------- cut here -------------------------- 8X

Sep 20 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Who Cares | last post by:
Okay, this may be a bit of a newbie question but I could really use some help. I want to write a set of routines that will read in the contents of XML files. I'll be reading the tag names,...
0
by: Chris Lyon | last post by:
I handle a lot of audio files of different formats, which live in a directory tree. WAV files in a wav directory, AIFF's in an AIFF directory next to the wav directory and mp3's in an MP3 directory...
4
by: Jim Bancroft | last post by:
Sorry for the basic nature of this question. I know XSL can do this, but I don't recall a good method... Say I have an xml structure like this: <folder_structure> <folder name="folder1">...
1
by: Zachary Hartnett | last post by:
I was trying to write a routine this morning that would open a given assembly, walk the inheritance tree of classes in the assembly, and provide a list of classes in the assembly that inherit from...
5
by: TrulyUnusualdotcom | last post by:
I'm reading PHP & MySQL for Dummies 2nd edition...ya ya I know..lame. Anyway I got to the part about walking through an array and I just can't seem to figure out what this would be used for. What...
8
by: ImOk | last post by:
I just have a question about trapping and retrying errors especially file locking or database locks or duplicate key errors. Is there a way after you trap an error to retry the same line that...
8
by: Ben Hallert | last post by:
Hi guys! I'm working on a little javascriptlet/greasemonkey script, and I've run into a challenge that I think can be solved with walking the DOM, but I feel like I'm kludging my way through and...
3
by: Burton Roberts | last post by:
I am "Walking Through" the VB Team's walkthrough of WCF support in VS2008. In the IService interface the <ServiceContract()indicates an error "Type 'ServiceContract' is not defined" and both...
11
by: Simon Woods | last post by:
Hi I have this recursive function and I want to walk the inheritance hierarchy to set field values .... the generic T is constrainted as the base class of the inheritance hierarchy Friend...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.