Take a look at /org/exolab/castor/util/XMLFieldDescriptorImpl.java
--Keith
Brent Picasso wrote:
Ahhh! the docs say it uses a standard regular expression
http://www.castor.org/xml-mapping.html#3.5-The-%3Cbind-xml%3E-element
Perhaps I'll submit a patch ? :) Can you let me know what class handles this so I can get a jump start on it?
Thanks,
Brent
________________________________
From: Keith Visco [mailto:[EMAIL PROTECTED] Sent: Mon 4/25/2005 7:53 PM To: [email protected] Subject: Re: [castor-dev] Problem with bind-xml 'matches' attribute and regular expressions
Hi Brent,
The matches attribute is not as sophisticated as you think, it's basically supports a space separated list of xml names. A '*' can be used as a wild card, but it doesn't support regular expressions. Actually I think it's a good idea to allow regex there, but currently it's not supported.
--Keith
Brent Picasso wrote:
Hello all,
I'm trying to match and element using the bind-xml 'matches' attribute. So far no luck.
This is what I'm using for the bind-xml:
<bind-xml matches="[\w?]Response" node="element"/>
The element I'm looking for is an immediate child and is named 'GetVocabularyResponse'. I've tested the RegEx pattern on a few regex testing sites and it seems to be good, however being I hate regular expressions (write once, read never) I could be formatting it wrong.
Any ideas out there?
Thanks for any help,
Brent
**Brent Picasso**
Engineering Manager
*SchemaLogic, Inc.*
P 425-885-9695
C 206-854-4508
F 425-883-0117
http://www.schemalogic.com <blocked::http://www.schemalogic.com/>

