xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

XPath In Action

XPath In Action

应用场景

  1. Python 爬虫

  2. 前端数据上报,可视化埋点

  3. 复现和模拟用户操作

XML

HTML / XHTML
XML / XML Namespaces

XPath

XPath 是一门在 XML 文档中查找信息的语言;

XPath 使用路径表达式在 XML 文档中进行导航
XPath 包含一个标准函数库
XPath 是 XSLT 中的主要元素
XPath 是一个 W3C 标准

https://www.runoob.com/xpath/xpath-tutorial.html

https://www.runoob.com/xpath/xpath-functions.html

HTML 解析

HTML 是基于 XML 的一种扩展实现;

XSL & XSLT

XSL 指扩展样式表语言(EXtensible Stylesheet Language), 它是一个 XML 文档的样式表语言。

XSLT 指 XSL 转换。

使用 XSLT 将 XML 文档转换为其他文档,比如 XHTML

https://www.runoob.com/xsl/xsl-w3celementref.html

https://www.runoob.com/xsl/xsl-functions.html

https://www.runoob.com/xsl/xsl-languages.html

CSS = HTML 样式表

XSL = XML 样式表

XML

XML 被设计用来传输和存储数据

https://www.runoob.com/xml/xml-tutorial.html

DTD

DTD(文档类型定义)的作用是定义 XML 文档的合法构建模块

XML DOM

XML DOM 定义访问和操作XML文档的标准方法

XQuery

XQuery 被设计用来查询 XML 数据

XQuery 之于 XML 作用就类似于 SQL 之于数据库的作用。

https://www.runoob.com/xquery/xquery-tutorial.html

https://www.runoob.com/xquery/xquery-reference.html

or $x in doc("books.xml")/bookstore/book
where $x/price>30
order by $x/title
return $x/title

refs

https://www.cnblogs.com/xgqfrms/tag/XPath/



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2020-08-13 11:43  xgqfrms  阅读(182)  评论(2编辑  收藏  举报