> In order to represent this in an XML document I have 
> considered this approach:
> 
> <?xml version="1.0"?>
> <region rid="0" regiontype="Root" rcutter="R000">Root
>   <region rid="1000" regiontype="astronomical object"
> rcutter="U304">Universe
>     <region rid="1010" regiontype="astronomical object"
> rcutter="S682">Solar System
>
> ...
>
> Here is my concern. Even though this may be good form, 
> these elements are of "Mixed Type Elements" in which 
> they contain both PCDATA and Elements. I personally 
> would like to stay clear from Mixed type Elements in 
> an XML document if possible.

If that's your only concern, why not just specify an additional attribute
for the name?

I'd be more concerned about building a more concrete hierarchy, myself - as
Mr. Kime noted, what you've got is hard to read, but also it's hard to
determine what the relationship limitations are between the various regions
- that is, how do you enforce the (assumed) limitation that a Solar System
can't contain a Universe?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to