|
Priya,
Thanks so much for getting back with me. I have to admit I am new to XML Schemas and the SOM. I see a big difference in the way you created a schema and the way I had, of course I am using XMLSPy and I am new at this. Here is a sample of what I had put together.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="TopLevel">
<xs:annotation>
<xs:documentation>Test Schema for SOM Development</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:group ref="GroupOne"/>
</xs:complexType>
</xs:element>
<xs:group name="GroupOne">
<xs:sequence>
<xs:element name="GO_Elm1"/>
<xs:group ref="SubGroupOne"/>
</xs:sequence>
</xs:group>
<xs:group name="SubGroupOne">
<xs:sequence>
<xs:element name="SGO_Elm1"/>
<xs:element name="SGO_Elm2"/>
</xs:sequence>
</xs:group>
</xs:schema>
This schema doesn't have any schema types so I guess that is why I was having such a hard time traversing the tree, although I was using the Particle and not the ContentParticle.
I am still having difficulty putting the correct code together to traverse the tree using SchemaTypes. If you have a sample that would be great if you don't that's fine to. I just hate that I have spent a week traversing the tree one way only to find that was completely wrong and now I have to learn how to do it differently.
I really appreciate your help.
Thanks,
Matt
|