Solved

XML Schema alphanumeric

Posted on 2008-09-30
3
1,807 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
3 Comments
 
LVL 9

Accepted Solution

by:
mbodewes earned 500 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to implement Singleton Design Pattern in Java.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now