Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: MSXML6 and Character Class Subtraction [Thread Next] Re: MSXML6 and Character Class SubtractionTo: NULL Date: 5/24/2007 4:40:00 PM Works great for XSD validation - the API it exposes is VERY limited however - it's not designed as a heavyweight XML tool. "CP" <msxml@s...> wrote in message news:%235XGW9WkHHA.4676@T...... > Hi Joe, > > I tried with the normal RegEx classes too, which pointed me at what the > problem was and led me to "Character Class Subtraction". > > Right now I'm looking at using the Altova 2007 engine > (http://www.altova.com/altovaxml.html) for the validation so I'll let you > know how we go on with that.. > > Thanks > > Carl > > > "Joe Fawcett" <joefawcett@n...> wrote in message > news:uGIHS4ujHHA.4132@T...... >> Well to be fair I didn't try via XML, just using standard Regex classes. >> It maybe the validation code converts the subtraction classes into a more >> traditional representation. >> >> -- >> >> Joe Fawcett (MVP - XML) >> http://joe.fawcett.name >> >> "CP" <msxml@s...> wrote in message >> news:uORSMgmjHHA.4768@T...... >>> Hi Joe, >>> >>> Wierd - that blog posting said .NET supports this :( >>> >>> Actually while researching this topic this morning I did come across >>> another government dept document that mentioned the same problem with >>> BS7666 and the .NET framework (though that was dated 2004). Be very >>> interested to see your results with Saxon. >>> >>> Thanks again, >>> >>> Carl >>> >>> >>> "Joe Fawcett" <joefawcett@n...> wrote in message >>> news:%23i5qPWmjHHA.3996@T...... >>>> Well I've just tried it with .NET and it doesn't seem to work there >>>> either. I will try Saxon later. >>>> ( I tried [A-Z-[D-Z]]{3} against "ABC" which failed.) >>>> >>>> -- >>>> >>>> Joe Fawcett (MVP - XML) >>>> http://joe.fawcett.name >>>> >>>> >>>> >>>> "CP" <msxml@s...> wrote in message >>>> news:egYHXHmjHHA.4772@T...... >>>>> Hi Joe, >>>>> >>>>> I'd never heard of it before today either - problem is BS7666 is an >>>>> 'official' UK Gov Schema and it conforms to the w3 specs. As a >>>>> short-term workaround we'll hack the xsd to use the 'normal' Reg Exp >>>>> notation like you suggest - mid-long term I think we'll be abandoning >>>>> MSXML for this product and looking at another method >>>>> (.NET/Java/Xerces/whatever .. *sigh*) >>>>> >>>>> Thanks! >>>>> >>>>> Carl >>>>> >>>>> >>>>> "Joe Fawcett" <joefawcett@n...> wrote in message >>>>> news:%23nzmLBmjHHA.4596@T...... >>>>>> I'm not sure, I 'd never heard of it myself before your post, but >>>>>> surely there's an easy workaround in this case, just list the valid >>>>>> letters? >>>>>> >>>>>> -- >>>>>> >>>>>> Joe Fawcett (MVP - XML) >>>>>> http://joe.fawcett.name >>>>>> >>>>>> "CP" <msxml@s...> wrote in message >>>>>> news:eBVE0GljHHA.3472@T...... >>>>>>> Hi there, >>>>>>> >>>>>>> Been trying to validate (and failing) a UK XML postcode against the >>>>>>> UK government BS7666 v2.0 schema which has the following pattern: >>>>>>> >>>>>>> [A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][A-Z-[CIKMOV]]{2} >>>>>>> >>>>>>> Am I correct in assuming that MSXML6 still does not support RegExp >>>>>>> Character Class Subtraction? I saw this link: >>>>>>> >>>>>>> http://blogs.msdn.com/stan_kitsis/archive/2005/09/20/472185.aspx >>>>>>> >>>>>>> that specifies that it doesn't but as this was posted in 2005 I >>>>>>> thought I'd just see if anyone here knows if it's going to get >>>>>>> updated. >>>>>>> >>>>>>> Thanks for any info >>>>>>> >>>>>>> Regards >>>>>>> >>>>>>> Carl >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
