malinij 0 Newbie Poster

After getting substitutionGroup name i want to search that name in that file...

my xsd file contains the following code...

<xs:element name="shape"/>
<xs:complaexType name="shapeInfo">
<xs:sequence>
<xs:element name="linecolor" type="xs:string"/>
<xs:element name="thickness" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="triangle1">
<xs:complexContent>
<xs:extension base="shapeInfo">
<xs:sequence>
<xs:element name="sides" type="xs:int"/>
</xs:sequence>
</xs:complexContent>

i want to search the substitution Group name(shape) and also
copy that linecolor,thickness lines to under triangle1....like

<xs:complexType name="triangle1">
<xs:ComplexContent>
<xs:extension base="shapeInfo">
<xs:sequence>
<xs:element name="linecolor" type="xs:string"/>
<xs:element name="thickness" type="xs:int"/>
<xs:element name="sides" type="xs:int"/>
</xs:sequence>
</xs:complexContent>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.