Patent Publication Number: US-7584419-B1

Title: Representing non-structured features in a well formed document

Description:
RELATED APPLICATIONS 
   This patent application is a continuation-in-part application under 35 United States Code § 120 of U.S. patent application Ser. No. 10/187,060 filed on Jun. 28, 2002, which is incorporated herein by reference. An exemplary schema in accordance with the present invention is disclosed beginning on page 11 in an application entitled “Mixed Content Flexibility,” Ser. No. 10/726,077, filed Dec. 2, 2003, which is hereby incorporated by reference in its entirety. 

   BACKGROUND OF THE INVENTION 
   Markup Languages have attained wide popularity in recent years. One type of markup language, Extensible Markup Language (XML), is a universal language that provides a way to identify, exchange, and process various kinds of data. For example, XML is used to create documents that can be utilized by a variety of application programs. Elements of an XML file have an associated namespace and schema. 
   In XML, a namespace is a unique identifier for a collection of names that are used in XML documents as element types and attribute names. The name of a namespace is commonly used to uniquely identify each class of XML document. The unique namespaces differentiate markup elements that come from different sources and happen to have the same name. 
   XML Schemata provide a way to describe and validate data in an XML environment. A schema states what elements and attributes are used to describe content in an XML document, where each element is allowed, what types of text contents are allowed within it and which elements can appear within which other elements. The use of schemata ensures that the document is structured in a consistent manner. Schemata may be created by a user and generally supported by an associated markup language, such as XML. By using an XML editor, the user can manipulate the XML file and generate XML documents that adhere to the schema the user has created. XML documents may be created to adhere to one or more schemata. 
   The XML standard is by many considered the ASCII format of the future, due to its expected pervasiveness throughout the hi-tech industry in the coming years. Recently, some word-processors have begun producing documents that are somewhat XML compatible. For example, some documents may be parsed using an application that understands XML. 
   In XML, it is necessary to maintain a well formed document. Generally, this means that tags within the XML document do not overlap. There are a number of features in word processors, however, that are allowed to span arbitrary ranges. These features include features such as comments, bookmarks, document protection, and the like. What is needed is a way to represent these features in XML. 
   SUMMARY OF THE INVENTION 
   The present invention is directed towards representing non-structured features that are common with word-processors such that these elements can be recognized and parsed separately from other elements within an XML document. 
   According to one aspect of the invention, non-structured features are represented as well formed in XML. Some of the features that may span arbitrary ranges include features such as comments, bookmarks, document protection, and the like. 
   According to another aspect of the invention, empty tags are used to mark the start and end of a feature that may span other features. These elements can be recognized and parsed separately from other elements. 
   According to yet another aspect of the invention, the word-processing documents may be parsed by applications that understand XML. The XML word-processing documents may be manipulated on a server, or anywhere even when the word-processor creating the XML document is not present. 

   
     BRIEF DESCRIPTION OF THE DRAWINGS 
       FIG. 1  illustrates an exemplary computing device that may be used in one exemplary embodiment of the present invention; 
       FIG. 2  is a block diagram illustrating an exemplary environment for practicing the present invention; 
       FIG. 3  illustrates an exemplary ML files including some formatted text; 
       FIG. 4  illustrates an exemplary ML file with a bookmark spanning two paragraphs; and 
       FIG. 5  illustrates a process for representing non-structured features in a well formed document, in accordance with aspects of the invention. 
   

   DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
   Throughout the specification and claims, the following terms take the meanings explicitly associated herein, unless the context clearly dictates otherwise. 
   The terms “markup language” or “ML” refer to a language for special codes within a document that specify how parts of the document are to be interpreted by an application. In a word-processor file, the markup language specifies how the text is to be formatted or laid out, whereas in a particular customer schema, the ML tends to specify the text&#39;s meaning according to that customer&#39;s wishes (e.g., customerName, address, etc.) The ML is typically supported by a word-processor and may adhere to the rules of other markup languages, such as XML, while creating further rules of its own. 
   The term “element” refers to the basic unit of an ML document. The element may contain attributes, other elements, text, and other building blocks for an ML document. 
   The term “tag” refers to a command inserted in a document that delineates elements within an ML document. Each element can have no more than two tags: the start tag and the end tag. It is possible to have an empty element (with no content) in which case one tag is allowed. 
   The content between the tags is considered the element&#39;s “children” (or descendants). Hence other elements embedded in the element&#39;s content are called “child elements” or “child nodes” or the element. Text embedded directly in the content of the element is considered the element&#39;s “child text nodes”. Together, the child elements and the text within an element constitute that element&#39;s “content”. 
   The term “attribute” refers to an additional property set to a particular value and associated with the element. Elements may have an arbitrary number of attribute settings associated with them, including none. Attributes are used to associate additional information with an element that will not contain additional elements, or be treated as a text node. 
   Illustrative Operating Environment 
   With reference to  FIG. 1 , one exemplary system for implementing the invention includes a computing device, such as computing device  100 . In a very basic configuration, computing device  100  typically includes at least one processing unit  102  and system memory  104 . Depending on the exact configuration and type of computing device, system memory  104  may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.) or some combination of the two. System memory  104  typically includes an operating system  105 , one or more applications  106 , and may include program data  107 . In one embodiment, application  106  may include a word-processor application  120  that further includes non-structured features  122 . This basic configuration is illustrated in  FIG. 1  by those components within dashed line  108 . 
   Computing device  100  may have additional features or functionality. For example, computing device  100  may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in  FIG. 1  by removable storage  109  and non-removable storage  110 . Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. System memory  104 , removable storage  109  and non-removable storage  110  are all examples of computer storage media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computing device  100 . Any such computer storage media may be part of device  100 . Computing device  100  may also have input device(s)  112  such as keyboard, mouse, pen, voice input device, touch input device, etc. Output device(s)  114  such as a display, speakers, printer, etc. may also be included. These devices are well know in the art and need not be discussed at length here. 
   Computing device  100  may also contain communication connections  116  that allow the device to communicate with other computing devices  118 , such as over a network. Communication connection  116  is one example of communication media. Communication media may typically be embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. The term computer readable media as used herein includes both storage media and communication media. 
   Representing Non-Structured Features in a Well Formed Document 
   Generally, the present invention is directed at representing non-structured features common with word-processors such that these elements can be recognized and parsed separately from other elements 
   In XML, it is necessary to maintain a well formed document. Generally, this means that tags within the XML document do not overlap. There are a number of features in word processors, however, that are allowed to span arbitrary ranges. These features include features such as comments, bookmarks, document protection, and the like. 
     FIG. 2  is a block diagram illustrating an exemplary environment for practicing the present invention. The exemplary environment shown in  FIG. 2  is a word-processor environment  200  that includes word-processor  120 , ML file  210 , ML Schema  215 , and ML validation engine  225 . 
   In one embodiment, word-processor  120  has its own namespace or namespaces and a schema, or a set of schemas, that is defined for use with documents associated with word-processor  120 . The set of tags and attributes defined by the schema for word-processor  120  define the format of a document to such an extent that it is referred to as its own native ML. Word-processor  120  internally validates ML file  210 . When validated, the ML elements are examined as to whether they conform to the ML schema  215 . A schema states what tags and attributes are used to describe content in an ML document, where each tag is allowed, and which tags can appear within other tags, ensuring that the documentation is structured the same way. Accordingly, ML  210  is valid when structured as set forth in arbitrary ML schema  215 . 
   ML validation engine  225  operates similarly to other available validation engines for ML documents. ML validation engine  225  evaluates ML that is in the format of the ML validation engine  225 . For example, XML elements are forwarded to an XML validation engine. In one embodiment, a greater number of validation engines may be associated with word-processor  120  for validating a greater number of ML formats. 
     FIG. 3  illustrates an exemplary ML file including some formatted text, in accordance with aspects of the present invention. ML file  300  includes ML elements. An element in a markup language usually includes an opening tag (indicated by a “&lt;” and “&gt;”), some content, and a closing tag (indicated by a “&lt;/” and “&gt;”). 
   There are enough ML elements for an application that understands XML to fully recreate the document from a single XML file. Hint tags may also be included that provide information to an application to help understand the content of the file. 
   There are a number of fundamental rules when using XML. One of these rules is called “well-formed ness.” This means that the XML markup must not overlap. Here is an example of XML that is not well formed: 
   &lt;root&gt; 
   &lt;title&gt;
         Here is my title   &lt;subTitle&gt;
           Here is my sub title   
               

   &lt;/title&gt;
         &lt;/subTitle&gt;
 
&lt;/root&gt;
       

   Note how the &lt;subTitle&gt; tag starts inside of the &lt;title&gt; tag, but the &lt;subtitle&gt; ends outside of the &lt;title&gt; tag. In order for this document to be a well formed XML document, it should look like the following: 
   &lt;root&gt; 
   &lt;title&gt;
         Here is my title   &lt;subTitle&gt;
           Here is my sub title   
           &lt;/subTitle&gt;       

   &lt;/title&gt; 
   &lt;/root&gt; 
   There are a number of word-processing features that consist of some type of “structure” applied to a range of text. A bookmark for instance can be applied to a selection of text. For purposes of this disclosure, assume that a word-processing bookmark is identified by the &lt;w:bookMark&gt; tag. An example will be presented to illustrate.
         The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.       

   If one were to apply a bookmark called “2 nd  sentence” to the 2 nd  sentence of the above paragraph, the XML representation of that might look something like what is illustrated in  FIG. 3 . 
   While this style of tags works for representing the paragraph with the &lt;w:p&gt; tag, and the bookmark with the &lt;w:bookMark&gt; tag. This approach does not always work. What if there were two paragraphs with a bookmark spanning the paragraphs. 
     FIG. 4  illustrates an exemplary ML file with a bookmark spanning two paragraphs. The text shown in  FIG. 4  is: 
   Here is my first paragraph 
   Here is my second paragraph 
   Using the approach as illustrated in  FIG. 4 , if you were to apply a bookmark from “first” within the first paragraph to “second” within the second paragraph, the XML would look something like: 
   &lt;w:p&gt; 
   Here is my
         &lt;w:bookMark name=“2 nd  sentence”&gt;
           First paragraph
 
&lt;/w:p&gt;
 
&lt;w:p&gt;
   
           Here is my   &lt;/w:bookMark&gt;       

   second paragraph 
   &lt;/w:p&gt; 
   The above example is not well formed, as the bookmark tag overlaps the paragraph tags. To create a well formed XML representation, two tags will be used for for objects like bookmarks. According to one embodiment, there will be a &lt;w:bookmarkStart&gt; tag and &lt;w:bookmarkEnd&gt; tag to represent bookmarks. So the above example would be represented as shown in  FIG. 4 . 
   Since the &lt;w:bookmarkStart&gt; and &lt;w:bookmarkEnd&gt; tags are both empty tags, they don&#39;t have the problem of wrapping the &lt;w:p&gt; tag. Instead, they are two empty tags that are associated with each other by the id attribute contained within both of the tags. With this method, it is possible to show where a bookmark starts and ends, while still maintaining a well formed document. 
   According to one embodiment, using empty tags is used for a number of different features in the word-processor, including: Range Level permissions; Bookmarks; Comments; Tracked changes; Spelling Errors; and Grammar Errors. 
   Bookmarks are used in Word processing documents for a variety of reasons. Bookmarks allow a user to call attention to part of a document without actually altering the document. A bookmark allows a user to easily get back to that point in the document. 
   Bookmarks become even more powerful with XML. Since XML is a text based format that is easily readable and parseable, bookmarks become a great way to getting into a specific portion of a rich document. Bookmarks may also be used within XML documents to index the documents based on their bookmarks. For example, documents stored on a server may be bookmarked and then indexed. 
   Bookmarks not only identify a key areas in a document, they also allow a user to select a range within a document. In other words, this is analogous to taking a book, and instead of just inserting a bookmark on a single page, a user could highlight a specific section of text within the book. 
   Since bookmarks can be applied to a range, one could use an XML parser to show the textual values of all bookmarks in a specific document or in a group of documents. 
   This provides bookmarks something that is not possible using most XML schemas. Just as an example, take the following example schema for a memo. Assume the following elements: “To:”, “From:”, “Subject:” and “Message:”. 
   These elements would allow a user to create a structured memo that could easily be routed to the proper recipient. An example memo is as follows: 
   &lt;memo&gt;&lt;from&gt;Brian&lt;/from&gt; 
   &lt;to &gt;Scott&lt;/to &gt; 
   &lt;subject&gt;Hello&lt;/subject&gt; 
   &lt;message&gt;Hey there, how&#39;s it going. Did you finish the task of mailing the feedback?&lt;/message&gt; 
   &lt;/memo&gt; 
   Now, what if the actual task of “mailing the feedback” were of interest to certain people? It&#39;s obvious that tasks aren&#39;t always going to be in a memo, so there probably wouldn&#39;t be an actual “task” element in the memo schema. Even if there were, there are probably a number of other types of things that can randomly appear in a memo that some people may want to flag, but that wouldn&#39;t appear in the memo schema. 
   With the bookmark feature, it is possible to flag that bit of text within the “message” element, so that XML parsers could easily parse through not just the memo, but parse through relevant bits of data within the actual message. The following is an exemplary way to bookmark the “mailing the feedback” section. 
   &lt;memo&gt;&lt;from&gt;Brian&lt;/from&gt; 
   &lt;to&gt;Scott&lt;/to &gt; 
   &lt;subject&gt;Hello&lt;/subject&gt; 
   &lt;message&gt;Hey there, how&#39;s it going. Did you finish the task of 
   &lt;w:bookmarkStart name=“Feedback” id=“bk2”/&gt; 
   mailing the feedback? 
   &lt;w:bookmarkEnd id =“bk2”/&gt; 
   &lt;/message&gt; 
   &lt;/memo&gt; 
     FIG. 5  illustrates a process for representing non-structured features in a well formed document, in accordance with aspects of the invention. After a start block, process  500  flows to block  510  where the start tag is determined. The start tag may be located anywhere within the document. Moving to block  515  the end tag location is determined. As discussed above, the end tag may span other elements while still maintaining a well formed document. Flowing to block  520 , the start and end tags are created. According to one embodiment of the invention, the tags reference each other through the use of an “id” that is common to both tags. Moving to block  525 , the tags are placed within the document. Flowing to block  530 , the XML file that is generated is well formed even though there are non-structured elements contained within the file. The process then moves to an end block and returns to processing other actions. 
   Here is an exemplary definition of a paragraph, in accordance with aspects of the invention. Some of the elements, include: aml:annotation; proofErr; permStart; permEnd 
                              &lt;xsd:complexType name=“pElt”&gt;                         &lt;xsd:sequence&gt;                         &lt;xsd:element name=“pPr” type=“pPrElt” minOccurs=“0”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;Paragraph                 properties&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:element&gt;           &lt;xsd:choice minOccurs=“0” maxOccurs=“unbounded”&gt;                         &lt;xsd:element ref=“aml:annotation” minOccurs=“0”                 maxOccurs=“unbounded”&gt;&lt;/xsd:element&gt;                         &lt;xsd:element name=“proofErr” type=“proofErrElt”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;Proofing state                 (grammar, spelling, etc)&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:element&gt;           &lt;xsd:element name=“permStart” type=“permStartElt”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;Range Protection                 Permission Start&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:element&gt;           &lt;xsd:element name=“permEnd” type=“permElt”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;Range Protection                 Permission End&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:element&gt;           &lt;xsd:element name=“r” type=“rElt”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;Run element. This is                 the leaf container for data in a Word document -- text, pictures,       etc&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:element&gt;           &lt;xsd:element name=“fldSimple” type=“simpleFieldType”                 minOccurs=“1” maxOccurs=“unbounded”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;Simple word field                 (with plain text instructions). These are run-time calculated entities in       word (eg: page numbers, etc)&lt;/xsd:documentation&gt;                         &lt;xsd:annotation&gt;                         &lt;/xsd:element&gt;           &lt;xsd:element name=“hlink” type=“hLinkType”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;hyperlink element                 (analagous to HTML &amp;lt;a href=...&amp;gt; tag)&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:element&gt;           &lt;xsd:element name=“subDoc” type=“subDocElt”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;Link to sub                 document (i.e. master document / sub documents)&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:element&gt;           &lt;xsd:element name=“ruby” type=“rubyElt”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;asian layout:                 phonetic guide (ruby text)&lt;/xsd:documentation&gt;                         &lt;/xsd/annotation&gt;                         &lt;/xsd:element&gt;                         &lt;/xsd:choice&gt;                         &lt;/xsd:sequence&gt;                 &lt;/xsd:complexType&gt;                    
According to one embodiment, the following is a definition the aml:annotation element:
 
&lt;xsd:element name=“annotation” type=“aml:AnnType”&gt;
         &lt;xsd:unique name=“uniqueContentAnchorIdsInsideAnnotations”&gt;
           &lt;xsd:selector xpath=“aml:content”&gt;&lt;/xsd:selector&gt;   &lt;xsd:field xpath=“@id”&gt;&lt;/xsd:field&gt;   
           &lt;/xsd:unique&gt;   &lt;xsd:unique name=“uniqueContextAnchorIdsInsideAnnotations”&gt;
           &lt;xsd:selector xpath=“aml:context”&gt;&lt;/xsd:selector&gt;   &lt;xsd:field xpath=“@id”&gt;&lt;/xsd:field&gt;   
           &lt;/xsd:unique&gt;       
   &lt;/xsd:element&gt; 
   &lt;xsd:complexType name=“AnnType” mixed=“false”&gt;
         &lt;xsd:sequence&gt;
           &lt;xsd:element ref=“aml:arc” minOccurs=“0” maxOccurs=“1”&gt;&lt;/xsd:element&gt;   &lt;xsd:element ref=“aml:context” minOccurs=“0” maxOccurs=“unbounded”&gt;&lt;/xsd:element&gt;   &lt;xsd:element ref=“aml:content” minOccurs=“0” maxOccurs=“unbounded”&gt;&lt;/xsd:element&gt;   &lt;xsd:element ref=“aml:property” minOccurs=“0” maxOccurs=“unbounded”&gt;&lt;/xsd:element&gt;   &lt;xsd:any namespace=“##other” processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”&gt;&lt;/xsd:any&gt;   
           &lt;/xsd:sequence&gt;   &lt;xsd:attribute name=“type” type=“type” fixed=“extended”&gt;&lt;/xsd:attribute&gt;   &lt;xsd:attribute name=“id” type=“aml:idType” use=“required”&gt;&lt;/xsd:attribute&gt;   &lt;xsd:attribute name=“author” type=“aml:authorType” use=“optional”&gt;&lt;/xsd:attribute&gt;   &lt;xsd:attribute name=“createdate” type=“aml:dateType” use=“optional”&gt;&lt;/xsd:attribute&gt;   &lt;xsd:anyAttribute namespace=“##other” processContents=“lax”&gt;&lt;/xsd:anyAttribute&gt;       

   &lt;/xsd:complexType&gt; 
   Where the attribute type xsd:anyAttribute, and element type xsd:any are referenced, is where the word processor specific information can go. Those attributes are described in the attribute group “wordAnnotationGroup”: 
                              &lt;xsd:attributeGroup name=“wordAnnotationGroup”&gt;                         &lt;xsd:attribute name=“type” type=“annotationValuesType”                 use=“required”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;The Word element expressed by this                 AML Annotation Tag.&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:attribute&gt;           &lt;xsd:attribute name=“name” type=“stringType” use=“optional”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;For bookmarks, specifies the                 bookmark name.&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:attribute&gt;           &lt;xsd:attribute name=“initials” type=“stringType” use=“optional”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;For bookmarks denoting the range                 of a comment, specifies the initials of the       comment author.&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:attribute&gt;           &lt;xsd:attribute name=“col-first” type=“decimalNumberType”                 use=“optional”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;For table bookmarks, specifies the                 column this bookmark begins in.&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:attribute&gt;           &lt;xsd:attribute name=“col-last” type=“decimalNumberType”                 use=“optional”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;For table bookmarks, specifies the                 column this bookmark ends in.&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:attribute&gt;           &lt;xsd:attribute name=“original” type=“stringType” use=“optional”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;The original numbering on display                 field rev marking.&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:attribute&gt;           &lt;xsd:attribute name=“displacedBySDT” type=“displacedBySDTValue”                 use=“optional”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;When bookmarks border SDTs                 (Structured Document Tags), use this attribute to help ensure that they are       inserted into the document next to the SDTs. When we displace the SDTs,       we also displace the bookmarks next to them so the intended result is in       the XML file.&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:attribute&gt;                 /xsd:attributeGroup&gt;                    
The values used in the “type” attribute are described below:
 
   &lt;xsd:simpleType name=“annotationValuesType”&gt;
         &lt;xsd:restriction base=“xsd:string”&gt;
           &lt;xsd:enumeration value=“Word.Insertion”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Deletion”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Formatting”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Bookmark. Start”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Bookmark.End”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Comment.Start”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Comment.End”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Insertion.Start”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Insertion.End”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Deletion.Start”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Deletion.End”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Comment”&gt;&lt;/xsd:enumeration&gt;   &lt;xsd:enumeration value=“Word.Numbering”&gt;&lt;/xsd:enumeration&gt;   
           &lt;/xsd:restriction&gt;       

   &lt;/xsd:simpleType&gt; 
   So, in the case of a Bookmark, the beginning tag would look something like: 
   &lt;aml:annotation aml:id=“0” w:type=“Word.Bookmark.Start” w:name=“myBookmark” 
   /&gt; 
   And the end of the bookmark would look something like: 
   &lt;aml:annotation aml:id=“0” w:type=“Word.Bookmark.End”/&gt; 
   According to one embodiment, the following is a list of exemplary proofErr types: 
                              &lt;xsd:simpleType name=“proofErrType”&gt;                         &lt;xsd:restriction base=“xsd:string”&gt;                         &lt;xsd:enumeration value=“spellStart”&gt;&lt;/xsd:enumeration&gt;           &lt;xsd:enumeration value=“spellEnd”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;We take the negative value                 of ptl and then subtract one to get the end constant.&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:enumeration&gt;           &lt;xsd:enumeration value=“gramStart”&gt;&lt;/xsd:enumeration&gt;           &lt;xsd:enumeration value=“gramEnd”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;We take the negative value                 of ptl and then subtract one to get the end constant.&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:enumeration&gt;                         &lt;/xsd:restriction&gt;                 &lt;/xsd:simpleType&gt;                    
According to one embodiment, the following is a definition of the permStart element:
 
                                          &lt;xsd:complexType name=“permStartElt”&gt;                         &lt;xsd:complexContent&gt;                         &lt;xsd:extension base=“permElt”&gt;                         &lt;xsd:attribute name=“edGrp” type=“edGrpType”                         use=“optional”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;Group with edit                         permissions&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:attribute&gt;           &lt;xsd:attribute name=“ed” type=“stringType”                         use=“optional”&gt;                         &lt;xsd:annotation&gt;                         &lt;xsd:documentation&gt;User with edit                         permissions&lt;/xsd:documentation&gt;                         &lt;/xsd:annotation&gt;                         &lt;/xsd:attribute&gt;           &lt;xsd:attribute name=“col-first”                         type=“decimalNumberType” use=“optional”&gt;&lt;/xsd:attribute&gt;                         &lt;xsd:attribute name=“col-last”                         type=“decimalNumberType” use=“optional”&gt;&lt;/xsd:attribute&gt;                         &lt;/xsd:extension&gt;                         &lt;/xsd:complexContent&gt;                         &lt;/xsd:complexType&gt;                        
According to one embodiment, the following is a definition for the permEnd element:
 
   &lt;xsd:complexType name=“permElt”&gt;
         &lt;xsd:attribute name=“id” type=“stringType” use=“required”&gt;
           &lt;xsd:annotation&gt;
               &lt;xsd:documentation&gt;Id for this Permission&lt;/xsd:documentation&gt;   
               &lt;/xsd:annotation&gt;   
           &lt;/xsd:attribute&gt;   &lt;xsd:attribute name=“displacedBySDT” type=“displacedBySDTValue” use=“optional”&gt;
           &lt;xsd:annotation&gt;
               &lt;xsd:documentation&gt;When bookmarks border SDTs (Structured Document Tags), use this attribute to ensure that they are inserted into the document next to the SDTs. We use this attribute because SDTs appear in our XML, how they logically appear in the Word document, but not neccessarily in the same location as they are in the document. When we displace the SDTs, we also displace the bookmarks next to them so the intended result is in the XML file.&lt;/xsd:documentation&gt;   
               &lt;/xsd:annotation&gt;   
           &lt;/xsd:attribute&gt;       

   &lt;/xsd:complexType&gt; 
   The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention resides in the claims hereinafter appended.