cancel
Showing results for 
Search instead for 
Did you mean: 

Xsd type for alphanumeric fields..

Former Member
0 Kudos

Hi Experts,

As per our requirement, a source field shud have only alphanumeric charaters.

What should I define its xsd:type so that it shouldn't take alphanumeric values?

What is xsd : Name is used for?

Thanks,

Hitesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi,

If you don't have the XML message validation switched on in your sender communication channel, simply use xsd:string.

Hope this helps,

Greg

Former Member
0 Kudos

Hi Greg,

In that case it will accept the special characters as well which we want to avoid.

Regards,

Hitesh

former_member184681
Active Contributor
0 Kudos

So you want an error to be raised in case of non-alphanumerical characters? Then you can add a validation patern ([a-zA-Z0-9])* to an xsd:string field, so that the final outcome was:

Remember to turn on the validation in your sender channel.

Hope this helps,

Greg

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Greg,

Could you guide me to link or help pages where I can explore more of these options related to xsd types. I tried searching for them but not able to get any good ones.

Regards,

Hitesh

former_member184681
Active Contributor
0 Kudos

Dear Hitesh,

The W3C (World Wide Web Consortium) gives great descriptions, whenever you have to dig up really deep into some standards like XSD. See here: http://www.w3.org/TR/xmlschema-0/. These descriptions are quite technical, in case you need something more "readable", you can use the tutorials from w3schools, I also really enjoy them: http://www.w3schools.com/schema/default.asp. Personally, I've learnt so many things from both of these.

Regards,

Greg

Former Member
0 Kudos

Hi Greg,

Thanks for help

Regards,

Hitesh