www.webdeveloper.com
Results 1 to 3 of 3

Thread: C:\...list.xml is not valid. Content model of element 'members' disallows text conten

  1. #1
    Join Date
    Jul 2012
    Posts
    2

    C:\...list.xml is not valid. Content model of element 'members' disallows text conten

    list.xml
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>

    <!DOCTYPE list SYSTEM "lhouse.dtd">

    <list>
    <member level="Platinum">
    <name>David Olson</name>
    <address>5133 Oak Street, Delphi, KY 89011</address>
    <phone>(532) 555-8981</phone>
    <e-mail>dolson@delisp.net</e-mail>
    <contribution>$25,000</contribution>
    <notes> Contact: Personal
    Founding member</notes>
    </member>
    <member level="Platinum">
    <name>Cindy Wu</name>
    <address>31 Alice Avenue, Delphi, KY 89011</address>
    <phone>(532) 555-7212</phone>
    <e-mail>cwu@ispnet.net</e-mail>
    <contribution>$25,000</contribution>
    <notes>Contact: Personal
    Founding member</notes>>
    </member>
    <member level="Gold">
    <name>Lee Unwin</name>
    <address>451 Unwin Ct., Jasper, KY 89381</address>
    <phone>(534) 555-9082</phone>
    <e-mail>leeunwin@clarion.net</e-mail>
    <contribution>$18,000</contribution>
    <notes> Contact: Personal
    Will add a second payment this summer</notes>
    </member>
    <member level="Gold">
    <name>Jane Whitney</name>
    <address>87 Hilltop Drive, Jasper, KY 89381</address>
    <phone>(534) 555-7493</phone>
    <contribution>$15,000</contribution>
    <notes>Contact: Personal</notes>
    </member>
    <member level="Gold">
    <name>Andrew Sanchez</name>
    <address>891 Lindon Lane, Delphi, KY 89011</address>
    <phone>(534) 555-7493</phone>
    <e-mail>asanchez@yulit.com</e-mail>
    <contribution>$15,000</contribution>
    <notes>Contact: Personal
    Founding member</notes>
    </member>
    <member level="Premium">
    <name>Gary Windt</name>
    <address>55 Hawking Street, Delphi, KY 89011</address>
    <phone>(532) 555-9939</phone>
    <e-mail>windtg@brockton.com</e-mail>
    <contribution>$10,000</contribution>
    <notes>Contact: Phone</notes>
    </member>
    <member level="Premium">
    <name>Cynthia Browne</name>
    <address>71 Circuit Ct., Wheaton, KY 89321</address>
    <phone>(532) 555-3813</phone>
    <e-mail>cynthia@brownes.com</e-mail>
    <contribution>$10,000</contribution>
    <notes>Contact: Phone</notes>
    </member>
    <member level="Premium">
    <name>Howard Li</name>
    <address>4312 East Oak Avenue, Youngston, KY 89318</address>
    <phone>(532) 555-3921</phone>
    <e-mail/>
    <contribution>$10,000</contribution>
    <notes>Contact: Mail</notes>
    </member>
    <member level="Premium">
    <name>Uma Thu</name>
    <address>25 Longton Lane, Delphi, KY 89011</address>
    <phone>(531) 555-8730</phone>
    <e-mail/>
    <contribution>$10,000</contribution>>
    <notes>Contact: Personal</notes>
    </member>
    <member level="Premium">
    <name>Alan Wilkes</name>
    <address>321 Ashburn, Jasper, KY 89831</address>
    <phone>(532) 555-1181</phone>
    <e-mail>wilkes_alan@wuilt.edu</e-mail>
    <contribution>$5,000</contribution>>
    <notes>Contact: Mail
    Please no personal visits</notes>
    </member>
    <member level="Premium">
    <name>Steve Bones</name>
    <address>900 Lawton Street, Wheaton, KY 89211</address>
    <phone>(533) 555-5434</phone>
    <contribution>$5,000</contribution>>
    <notes>Contact: Personal</notes>
    </member>
    <member level="Premium">
    <name>Jeri White</name>
    <address>Hawkes Lane, Delphi, KY 89211</address>
    <phone>(542) 555-8828</phone>
    <e-mail>jeri_white@kyu.edu</e-mail>
    <contribution>$3,000</contribution>
    <notes>Contact: Phone</notes>
    </member>
    <member level="Premium">
    <name>Tom Thomas</name>
    <address>Rigel Avenue, Drake, KY 89411</address>
    <phone>(531) 555-8311</phone>
    <e-mail/>
    <contribution>$1,000</contribution>
    <notes>Contact: Phone</notes>
    </member>
    </list>

    lhouse.dtd
    <!ELEMENT list (member+)>
    <!ELEMENT member (name, address, phone, e-mail?, contribution, notes?)>
    <!ATTLIST member level (Platinum | Gold | Premium) #REQUIRED>

    <!ELEMENT name (#PCDATA)>
    <!ELEMENT address (#PCDATA)>
    <!ELEMENT phone (#PCDATA)>
    <!ELEMENT e-mail (#PCDATA)>
    <!ELEMENT contribution (#PCDATA)>
    <!ELEMENT notes (#PCDATA)>

    I have no idea why i'm getting this message

  2. #2
    Join Date
    Jun 2007
    Location
    Winnipeg, MB CANADA
    Posts
    128
    extra '>' in there:

    Code:
    <member level="Premium">
    <name>Uma Thu</name>
    <address>25 Longton Lane, Delphi, KY 89011</address>
    <phone>(531) 555-8730</phone>
    <e-mail/>
    <contribution>$10,000</contribution>>
    <notes>Contact: Personal</notes>
    </member>
    <contribution>$10,000</contribution>>

  3. #3
    Join Date
    Jul 2012
    Posts
    2
    Thanks! I figured it out a couple of days ago but forgot to delete this thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles