黃偉榮的學習筆記

軟體的世界變化萬千,小小的我只能在這洪流奮發向上以求立足。
随笔 - 100, 文章 - 0, 评论 - 212, 阅读 - 17万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

一個XPath不錯用的工具 SketchPath

Posted on   黃偉榮  阅读(3796)  评论(9编辑  收藏  举报
不知你有沒有跟我一樣的經驗,每一次寫XPath語法都要經過編譯,執行才能知道結果,費時又麻煩。想說有個工具,先在工具上測好語法,然後在寫在程式中,那該有多好,後來我找到這一個工具,SketchPath目前是Bate,但很好用,這是用.NET 2.0,免費的可惜沒提供Source

這是官方上列出的特色

 ·           Easy to install: A single  450KB .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 ('Intellisense') 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 includes:

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

我最喜歡的就是他的Auto-Generate功能,當點選了其中的一個Element或Attribute會產生從根到Element或Attribute的XPath,省事很多。
詳情就自己看官網或DemoFlash(別人作的)吧
官網:SketchPath Demo Flash 
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述
点击右上角即可分享
微信分享提示