xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Le Hors <leh...@us.ibm.com>
Subject Re: Question about defining DTDs
Date Fri, 11 Aug 2000 22:00:15 GMT
Ricardo A Capurro wrote:
> 
> so I would like to write it this way to increase
> readability
> 
> <Contact>
>     <last_name>Capurro</last_name>
>     <first_name>Ricardo</first_name>
>     <year_of_birth>1968</year_of_birth>
> </Contact>
> 
> But if I use this XML idiom, perhaps I am getting a Contact element that don't
> agree with its definition,
> 
> <!ELEMENT Contact (last_name,first_name,company?,year_of_birth)>
> 
> because I am using white space between each of the elements that conform a
> Contact.

No, you'd be just fine. The parser would report the whitespace as being
"ignorable", or if you tell it not to bother (by setting the righ
option), it would simply skip them.
-- 
Arnaud  Le Hors - IBM Cupertino, XML Technology Group

Mime
View raw message