primary { namespace test { complex type { element ebar element efoo element ebar optional attribute abar http://www.w3.org/2001/XMLSchema#string optional attribute afoo http://www.w3.org/2001/XMLSchema#string optional attribute abaz http://www.w3.org/2001/XMLSchema#string [1, 1] sequence { [1, 1] element ebar http://www.w3.org/2001/XMLSchema#string [1, 1] choice { [1, 1] element efoo http://www.w3.org/2001/XMLSchema#string [1, 1] element ebar http://www.w3.org/2001/XMLSchema#string } } } element ebar http://www.w3.org/2001/XMLSchema#string attribute abar http://www.w3.org/2001/XMLSchema#string attribute abaz http://www.w3.org/2001/XMLSchema#string } }