[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Validate an XPath with regex

  • To: xml-dev@l...
  • Subject: Validate an XPath with regex
  • From: Niels Peter Strandberg <nielspeter@n...>
  • Date: Thu, 4 Apr 2002 10:30:33 +0200

xpath and regex
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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.