Element type children: choice

example06.xml


<?xml version="1.0" encoding="US-ASCII"?>

<!DOCTYPE root
  [
  <!ELEMENT root ANY>
  <!ELEMENT choice (a | b) >
  <!ELEMENT a ANY>
  <!ELEMENT b ANY>
  ]
>

<root>

  <choice> 
    <a/> 
  </choice>

  <choice> 
    <b/> 
  </choice>

  <choice> 
    <a> blah blah blah </a> 
  </choice>

</root>

Notes

Content of this site is © Wayne Conrad. All rights reserved.