Page 1 of 1

Suggestions on developement of XPATH validator

Posted: Wed Oct 12, 2005 7:12 pm
by raghavan20
I am thinking of developing a XPATH validator.
I am wondering which is the best language that would be suitable for the purpose, Javascript or PHP?
I want to make sure that the programming should have enough XML libraries for easy access.
I have used a few XML functions available in PHP for parsing XML files.
I think in Javascript we have to use DOM.
Any comments regarding the above is welcome.

Posted: Wed Oct 12, 2005 10:06 pm
by marianopeterson
Depends on your target usage. If your goal is to use it with your data access code, then it probably belongs in PHP (server side code). If you're planning to use it for DHTML manipulation or AJAX, then it should be written in JavaScript (client side code).

BTW, JavaScript (JScript) is used for server side code when authoring ASP pages. This being a PHP forum, I expect your JavaScript code will be use for client side scripting.