Jump to content

XML to limit character length of plain text content control in Word


Recommended Posts

Let me start by saying that I am completely new to XML. What I am trying to accomplish is to limit the number of characters that can be entered into a plain or rich text content control in Word. This used to be possible with legacy controls but I am trying to avoid using them or VBA if I can help.I understand from various searches that this may be possible using XML.This website http://www.w3schools.com/schema/schema_facets.asp has the following code:

<xs:element name="password">  <xs:simpleType>	<xs:restriction base="xs:string">	  <xs:minLength value="5"/>	  <xs:maxLength value="8"/>	</xs:restriction>  </xs:simpleType></xs:element>

I am attempting to use the Word 2007 Content Control Toolkit (freeware program designed specifically to modify the XML code attached to a Word document) to enter this code but I'm not sure how to get this code to work with my content control.Any help would be greatly appreciated.Thank you,Brian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...