Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

XML Schema alphanumeric

Posted on 2008-09-30
3
Medium Priority
?
2,054 Views
Last Modified: 2012-05-05
I am designing an XML schema. Below is how i can restrict on element to string only. How can restrict the element to alphanumeric?  


                    <xs:simpleType>
                        <xs:restriction base="xs:string">
                              <xs:pattern value="\[.+\].*"/>
                        </xs:restriction>
                  </xs:simpleType>
0
Comment
Question by:komlaaa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

by:
mbodewes earned 2000 total points
ID: 22609634
What does this have to do with Java? This is an XML question only. As the answer is simple, I'll give it here, but please do ask your questions in the correct zone.

Either specify: <"xsd:decimal"/>  or if you are looking for an alphanumeric string, use the regex [0-9]+
0
 

Author Comment

by:komlaaa
ID: 22613818
you sound pist man!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question