Oxygen XML Editor
 
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

Data length validations using DTD


  • From: "Sudheshna Iyer" <sudheshnaiyer@...>
  • To: xml-dev@...
  • Date: Sat, 06 Jan 2007 10:47:50 -0500

How do I do the data length validations in DTD?

I want to restrict an element length using DTD. I was given only the DTD and 
not the schema by our client and
they provided the doc with length restrictions.

DTD contains elements like the following:

<!ELEMENT myelement (#PCDATA)>

<!ELEMENT ShipTo (myelement)>

But "myelement" length should be restricted to 100 char. How can I achieve 
this?

Thank you.

Sudheshna

_________________________________________________________________
Fixing up the home? Live Search can help 
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords