New to xml need help.
Posted: Thu Feb 25, 2010 10:35 pm
Here is my code:
<!ELEMENT catalog (Movie, Actor+)*>
<!-- Declare the movies information -->
<!ELEMENT Movie (title, year, length, topBilledActors)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT length (#PCDATA)>
<!ELEMENT topBilledActors (#PCDATA)>
<!-- Declare the movieID attribute -->
<!ATTLIST Movie movieID ID #REQUIRED>
<!ATTLIST Movie genre (Action | Comedie | Drama | Fantasy) "Action">
Im trying to get the output to look like this:
<catalog>
<movie movieID="m197" genre="drama">
<title>Monster's Ball</title>
<year>2001</year>
<length>111 minutes</length>
<topBilledActors actorIDs="a0100 a0102"/>
</movie>
<catalog>
Can anybody give me suggestion? especially for the part with the <movie movieID="m197" genre="drama">. I am unavailable to have genre displayed for some odd reason.
<!ELEMENT catalog (Movie, Actor+)*>
<!-- Declare the movies information -->
<!ELEMENT Movie (title, year, length, topBilledActors)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT length (#PCDATA)>
<!ELEMENT topBilledActors (#PCDATA)>
<!-- Declare the movieID attribute -->
<!ATTLIST Movie movieID ID #REQUIRED>
<!ATTLIST Movie genre (Action | Comedie | Drama | Fantasy) "Action">
Im trying to get the output to look like this:
<catalog>
<movie movieID="m197" genre="drama">
<title>Monster's Ball</title>
<year>2001</year>
<length>111 minutes</length>
<topBilledActors actorIDs="a0100 a0102"/>
</movie>
<catalog>
Can anybody give me suggestion? especially for the part with the <movie movieID="m197" genre="drama">. I am unavailable to have genre displayed for some odd reason.