Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML with Internal DTD

Status
Not open for further replies.

keithbloomer

Programmer
Feb 18, 2008
1
GB
Does anyone know whats wrong with this page cant get past the travel ELEMENT error!

<?xml version='1.0' standalone='yes'?>
<!DOCTYPE Holiday [
<!ELEMENT Holiday (Name,Travel,LengthOfStay,Activities,Note?,NumberOfPeople,Expenditure,LinksToPhotos)>
<!ATTLIST Holiday date CDATA #REQUIRED>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT Travel(#PCDATA)>
<!ELEMENT LengthOfStay(Length*)>
<!ELEMENT Length (Weeks, Days)>
<!ELEMENT Weeks (#PCDATA)>
<!ELEMENT Days (#PCDATA)>
<!ELEMENT Activities(#PCDATA)>
<!ELEMENT Note (Comments)>
<!ELEMENT Expenditure (Pounds,Pence)>
<!ELEMENT Pounds (#PCDATA)>
<!ELEMENT Pence (#PCDATA)>
<!ELEMENT LinksToPhotos (#PCDATA)>
]>
<Holiday date='02/10/2007'>

<Name>Mr K Bloomer</Name>
<Travel>Boat</Travel>
<LengthOfStay>
<Length>
<Weeks>2</Weeks>
<Days>3</Days>
</Length>
</LengthOfStay>
<Activities>Golf</Activities>
<Note>
<comments>had a great time</comments>
</note>
<expenditure>
<Pounds>500</Pounds>
<Pence>99</Pence>
</expenditure>
<LinksToPhotos> </LinksToPhotos>
</Holiday>
 
[tt]<?xml version='1.0' standalone='yes'?>
<!DOCTYPE Holiday [
<!ELEMENT Holiday (Name,Travel,LengthOfStay,Activities,Note?,NumberOfPeople,Expenditure,LinksToPhotos)>
<!ATTLIST Holiday date CDATA #REQUIRED>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT Travel[highlight] [/highlight](#PCDATA)>
<!ELEMENT LengthOfStay[highlight] [/highlight](Length*)>
<!ELEMENT Length (Weeks, Days)>
<!ELEMENT Weeks (#PCDATA)>
<!ELEMENT Days (#PCDATA)>
<!ELEMENT Activities[highlight] [/highlight](#PCDATA)>
<!ELEMENT Note (Comments)>
[red]<!ELEMENT Comments (#PCDATA)>[/red]
[red]<!ELEMENT NumberOfPeople (#PCDATA)>[/red]
<!ELEMENT Expenditure (Pounds,Pence)>
<!ELEMENT Pounds (#PCDATA)>
<!ELEMENT Pence (#PCDATA)>
<!ELEMENT LinksToPhotos (#PCDATA)>
]>
<Holiday date='02/10/2007'>
<Name>Mr K Bloomer</Name>
<Travel>Boat</Travel>
<LengthOfStay>
<Length>
<Weeks>2</Weeks>
<Days>3</Days>
</Length>
</LengthOfStay>
<Activities>Golf</Activities>
<Note>
<[red]C[/red]omments>had a great time</[red]C[/red]omments>
</[red]N[/red]ote>
[red]<NumberOfPeople>5</NumberOfPeople>[/red]
<[red]E[/red]xpenditure>
<Pounds>500</Pounds>
<Pence>99</Pence>
</[red]E[/red]xpenditure>
<LinksToPhotos> </LinksToPhotos>
</Holiday>[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top