Question

<?xml version="1.0" encoding="UTF-8" standalone="no" ?> (please fix xml code!!) <!-- New Perspectives on XML Tutorial 2...

<?xml version="1.0" encoding="UTF-8" standalone="no" ?> (please fix xml code!!)
<!--
New Perspectives on XML
Tutorial 2
Case Problem 2

MDPBA Competition Roster
Author: Chris Dawkins
Date: 7/26/19

Filename: mdpba.xml
-->
<!DOCTYPE bands
[
   <!ELEMENT bands (band+)>
   <!ELEMENT band (name, city, logo?, competition)

   <!ELEMENT name (#PCDATA)>
   <!ELEMENT city (#PCDATA)>

   <!ELEMENT logo EMPTY>

   <!ELEMENT competition (event, event)


]

<bands name="Midwest Developmental Pipe Band">
<band cid="c0001">
<name grade="juvenile">School of Celtic Bagpipes &amp; Drumming</name>
<city>Delafield</city>
<logo source="celtic" />
<competition>
<event type="MSR">
<tune>Charlies Welcome</tune>
<tune>Mrs MacPherson of Inveran</tune>
<tune>Brown Haired Maiden</tune>
</event>
<event type="Medley">
<tune>Rowd's Hornpipe</tune>
</event>
</competition>
</band>
<band cid="c0002">
<name grade="juvenile">Badger Pipes and Drums</name>
<city>Madison</city>
<logo source="badger" />
<competition>
<event type="MSR">
<tune>Lord Alexander Kennedy</tune>
<tune>Bob of Fettercairn</tune>
<tune>Brown Haired Maiden</tune>
</event>
<event type="Medley">
<tune>Out of the Air</tune>
</event>
</competition>
</band>
<band cid="c0003">
<name grade="novice">Pardeeville School of Piping and Drumming</name>
<city>Pardeeville</city>
<competition>
<event type="MSR">
<tune>Lord Alexander Kennedy</tune>
<tune>Bob of Fettercairn</tune>
<tune>The Little Cascade</tune>
</event>
<event type="Medley">
<tune>The Radar Racketeer</tune>
</event>
</competition>
</band>
<band cid="c0004">
<name grade="3">Zoar Scottish Pipe Band</name>
<city>Zoar</city>
<competition>
<event type="MSR">
<tune>Charlies Welcome</tune>
<tune>Mrs MacPherson of Inveran</tune>
<tune>Major Manson</tune>
</event>
<event type="Medley">
<tune>Miss Lily</tune>
</event>
</competition>
</band>
<band cid="c0005">
<name grade="juvenile">Stockholm Pipe Band</name>
<city>Stockholm</city>
<competition>
<event type="MSR">
<tune>Pretty Marion</tune>
<tune>The Sheepwife</tune>
<tune>Brown Haired Maiden</tune>
</event>
<event type="Medley">
<tune>Farewell to Erin</tune>
</event>
</competition>
</band>
</bands>

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Fixed xml code is

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!--
New Perspectives on XML
Tutorial 2
Case Problem 2

MDPBA Competition Roster
Author: Chris Dawkins
Date: 7/26/19

Filename: mdpba.xml
-->
<!DOCTYPE bands
[
<!ELEMENT bands (band+)>
<!ELEMENT band (name, city, logo?, competition)>

<!ELEMENT name (#PCDATA)>
<!ELEMENT city (#PCDATA)>

<!ELEMENT logo EMPTY>

<!ELEMENT competition (event, event)>


]>

<bands name="Midwest Developmental Pipe Band" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<band cid="c0001">
<name grade="juvenile">School of Celtic Bagpipes &amp; Drumming</name>
<city>Delafield</city>
<logo source="celtic" />
<competition>
<event type="MSR">
<tune>Charlies Welcome</tune>
<tune>Mrs MacPherson of Inveran</tune>
<tune>Brown Haired Maiden</tune>
</event>
<event type="Medley">
<tune>Rowd's Hornpipe</tune>
</event>
</competition>
</band>
<band cid="c0002">
<name grade="juvenile">Badger Pipes and Drums</name>
<city>Madison</city>
<logo source="badger" />
<competition>
<event type="MSR">
<tune>Lord Alexander Kennedy</tune>
<tune>Bob of Fettercairn</tune>
<tune>Brown Haired Maiden</tune>
</event>
<event type="Medley">
<tune>Out of the Air</tune>
</event>
</competition>
</band>
<band cid="c0003">
<name grade="novice">Pardeeville School of Piping and Drumming</name>
<city>Pardeeville</city>
<competition>
<event type="MSR">
<tune>Lord Alexander Kennedy</tune>
<tune>Bob of Fettercairn</tune>
<tune>The Little Cascade</tune>
</event>
<event type="Medley">
<tune>The Radar Racketeer</tune>
</event>
</competition>
</band>
<band cid="c0004">
<name grade="3">Zoar Scottish Pipe Band</name>
<city>Zoar</city>
<competition>
<event type="MSR">
<tune>Charlies Welcome</tune>
<tune>Mrs MacPherson of Inveran</tune>
<tune>Major Manson</tune>
</event>
<event type="Medley">
<tune>Miss Lily</tune>
</event>
</competition>
</band>
<band cid="c0005">
<name grade="juvenile">Stockholm Pipe Band</name>
<city>Stockholm</city>
<competition>
<event type="MSR">
<tune>Pretty Marion</tune>
<tune>The Sheepwife</tune>
<tune>Brown Haired Maiden</tune>
</event>
<event type="Medley">
<tune>Farewell to Erin</tune>
</event>
</competition>
</band>
</bands>

If you left with any doubts, feel free to ask

Add a comment
Know the answer?
Add Answer to:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> (please fix xml code!!) <!-- New Perspectives on XML Tutorial 2...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT