I want to parse a xsd file.

 

For example, “test.xsd” file:

 

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

 

 

<xsd:element name="note" type="NoteType"/>

 

  <xsd:complexType name="NoteType">

     <xsd:sequence>

            <xsd:element name="to" type="xsd:string"/>

            <xsd:element name="from" type="xsd:string"/>

            <xsd:element name="heading" type="xsd:string"/>

            <xsd:element name="body" type="xsd:string"/>

    </xsd:sequence>

  </xsd:complexType>

</xsd:schema>

 

And I want to print important elements:

 

Like:

 

Note

To

From

Heading

Body

 

How can I do that? Could your provide me with an example?

 

Thanks in advance,

Gabriel

 

Reply via email to