[xsd-users] xsd:pattern

Abayeva, Karina karina.abayeva at rbccm.com
Tue Oct 28 07:48:02 EDT 2008


Thank you for your response. This makes a lot of sense. 


-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Tuesday, October 28, 2008 6:42 AM
To: Abayeva, Karina
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] xsd:pattern

Hi Karina,

Abayeva, Karina <karina.abayeva at rbccm.com> writes:

> I am trying to specify xsd:pattern restriction in my XSD as follows:
>   <xs:simpleType name="TenorType">
>     <xs:restriction base="xs:string">
>       <xs:pattern value="([0-9]+[B|D|W|M|Y)" />
>     </xs:restriction>
>   </xs:simpleType>
> 
> However, when I generate the class, no code is generated to validate 
> against this pattern.

I assume you are using the C++/Tree mapping. In C++/Tree validation is
performed by the underlying XML parser (Xerces-C++) during XML parsing.

If you are looking for an in-memory validation then you may find the
following earlier post informative:

http://www.codesynthesis.com/pipermail/xsd-users/2008-January/001443.htm
l

Boris
________________________________________

This E-Mail (including any attachments) may contain privileged or confidential information.  It is intended only for the addressee(s) indicated above.

The sender does not waive any of its rights, privileges or other protections respecting this information.  

Any distribution, copying or other use of this E-Mail or the information it contains, by other than an intended recipient, is not sanctioned and is prohibited.

If you received this E-Mail in error, please delete it and advise the sender (by return E-Mail or otherwise) immediately. 

This E-Mail (including any attachments) has been scanned for viruses. 

It is believed to be free of any virus or other defect that might affect any computer system into which it is received and opened. 

However, it is the responsibility of the recipient to ensure that it is virus free. 

The sender accepts no responsibility for any loss or damage arising in any way from its use.

E-Mail received by or sent from RBC Capital Markets is subject to review by Supervisory personnel. 

Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.

IRS CIRCULAR 230 NOTICE:  TO COMPLY WITH U.S. TREASURY REGULATIONS, WE ADVISE YOU THAT ANY U.S. FEDERAL TAX ADVISE INCLUDED IN THIS COMMUNICATION IS NOT INTENDED OR WRITTEN TO BE USED, AND CANNOT BE USED, TO AVOID ANY U.S. FEDERAL TAX PENALTIES OR TO PROMOTE, MARKET, OR RECOMMEND TO ANOTHER PARTY ANY TRANSACTION OR MATTER.





More information about the xsd-users mailing list