OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Validate an XPath with regex

[ Lists Home | Date Index | Thread Index ]

Shouldn't it be possible to validate the syntax of an XPath string using 
regular expressions. Im not a regex expert, so just want to ask you out 
there if it could be done.

This is useful if you have a app that takes a XPath as argument, then 
you simply match the string against a regex to validate the syntax of 
the XPath string. This could also be used if you only support a subset 
of XPath in your app, by simply changing the regex!  When the string is 
validated, you can send the XPath to parsing.

Is the an regex expert, who want to gives this a try? I could try, but 
the result would not be pretty ;-)


Niels Peter





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS