Creating Word Documents with XSLT
Referencing Assemblies

Documentation that shows up in the XML Editor

The XML Editor of Visual Studio 2005 shows the elements that are allowed according to the XML Schema. The editor not only shows the elements and attributes that are possible where the cursor is positioned, it also shows some documentation about the elements and attributes. The documentation can be written inside the schema with the <xsd:annotation> and <xsd:documentation> tags:

  <xs:element name="Book" minOccurs="0" maxOccurs="unbounded">
     <xs:annotation>
      <xs:documentation>Represents information about a book.</xs:documentation>
     </xs:annotation>

     <xs:complexType>
      <xs:sequence>
       <xs:element name="Title" type="xs:string">
        <xs:annotation>
         <xs:documentation>Represents the title of a book.</xs:documentation>
        </xs:annotation>

       </xs:element>
      
<!-- ... -->

Christian

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

coach outlet online

I agree you the up.As it give me the same some feeling!

Kenton

WOWjust what I was looking for. Came here by searching for aa

The comments to this entry are closed.