File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Avoiding regular expression in XML Schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Avoiding regular expression in XML Schema" Watch "Avoiding regular expression in XML Schema" New topic
Author

Avoiding regular expression in XML Schema

Joe Nguyen
Ranch Hand

Joined: Apr 20, 2001
Posts: 161
Is there a way to specify that a value for an XML element is required without using regular expression?
Joe Nguyen
Ranch Hand

Joined: Apr 20, 2001
Posts: 161
I just find out the answer for my own question. Simply set minlength to 1 to specify that a value is required for the element.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Avoiding regular expression in XML Schema