xml editor

Products

Features

  EPUB
Supported platforms

Supports Windows 7 & Mac OS X Lion

Ready for XML Editor data server software
W3C Member

New to xml need help.

Questions about XML that are not covered by the other forums should go here.

New to xml need help.

Postby jessekaye » 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&apos;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.
http://hometryst.com/dc/neighborhood/burleith-real-estate-washington-dc/
jessekaye
 
Posts: 1
Joined: Wed Feb 24, 2010 11:56 pm

Re: New to xml need help.

Postby george » Fri Feb 26, 2010 11:41 am

XML is case sensitive. In your DTD you define a Movie element while in the source you have a movie element (note the different case for the first letter). You need to change either the DTD or the instance to have the same name in both.

Best Regards,
George
George Cristian Bina
george
Site Admin
 
Posts: 2028
Joined: Thu Jan 09, 2003 2:58 pm


Return to General XML Questions

Who is online

Users browsing this forum: No registered users and 0 guests

XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor