I don't know if you have the same experience as me. Every time you use the XPath algorithm, you have to go through the experiment. Then, you can know the result after the test. I want to say that there is a tool. I should first compile the programming method on the tool, and then I should find this tool in the future, currently, sketchpath is bate, but it is easy to use. NET 2.0, which is free of charge but does not provide source
This is an official list of features
· Easy to install: A single sans kb. EXE file (needs. NET 2.0 also)
· XPath location step-Tracer-predicate Tracing
· Auto-generate XPath locations by selecting from
O XPath result list
O regular expression result list
O element Tree View
O element nodes list
O xml text editor
O XPath variables list
O XPath step Tracer
· Save XPath expressions for re-use as variables
· Import XPath expressions from an XML source (eg. XSLT)
· Manage XPath variables lists in groups
· Save and load XPath variable groups in library files
· 'As-you-type' bookmarking of nodeset results in element Tree View
· Manage XPath Environment
O manage namespaces
O set the context node
O select the group of xpath variables required
· Auto-complete ('essense ') uses 'look-ahead' to list available location and value nodes when typing
· A dynamically populated XPath 'assist pane 'allows the building of complex expressions
· Syntax checking and colorizing of XPath expressions
· Uses. Net System. xml. XPath namespace to evaluate expressions
· All XML panes synchronised, viewable panes & behaviour controlled by Modes
· Use regular expressions (RegEx) to resolve XPath locations
· Simple user-interface with just 3 main toolbars with minimal icon-clutter
· Simple Flexible and resizeable multiline expression editor pane
· Package inspection feature for zip compressed XML file structures, support nodes:
O Word 2007 docx format
O Excel 2007 XLSX format
O PowerPoint 2007 pptx format
O xml paper specification XPS format
O Oasis Open Document Format (ODF)
· Fast XPath location generation using an optimized 'element Index' (updated as you type)
·
Free-flow XML source editor pane with well-formedness checking
My favorite feature is its auto-generate function. When an element or attribute is selected, it will generate an XPATH from the root element or attribute, which saves a lot of trouble.
Look at the official website or demoflash on your own.
Official Website: sketchpath demo flash