内容摘要:XPath is a language for finding information in an XML document. XPath is used to navigate through elements and attributes in an XML document. Xpath是一种能够在XML文档中寻找信息的语言。它通过XML文档中的元素和属性来进行导航
XPathisalanguageforfindinginformationinanXMLdocument.XPathisusedtonavigatethroughelementsandattributesinanXMLdocument.
Xpath是一种能够在XML文档中寻找信息的语言。它通过XML文档中的元素和属性来进行导航。
--------------------------------------------------------------------------------
WhatYouShouldAlreadyKnow
你应具备的知识
Beforeyoucontinueyoushouldhaveabasicunderstandingofthefollowing:
在你继续前你应该具备以下知识的基础:
HTML/XHTML
XML/XMLNamespaces[命名空间]
--------------------------------------------------------------------------------
WhatisXPath?
什么是XPath?
XPathisasyntaxfordefiningpartsofanXMLdocument
XPath是针对XML文档部分内容定义的语法
XPathusespathexpressionstonavigateinXMLdocuments
XPath使用路径表达式在XML文档中导航
XPathcontainsalibraryofstandardfunctions
XPath包含了一系列标准函数
XPathisamajorelementinXSLT
XPath在XSLT当中是一个主要的元素
XPathisaW3CStandard
XPath是W3C标准
--------------------------------------------------------------------------------
XPathPathExpressions
XPath路径表达式
XPathusespathexpressionstoselectnodesornode-setsinanXMLdocument.Thesepathexpressionslookverymuchliketheexpressionsyouseewhenyouworkwithatraditionalcomputerfilesystem.
XPath使用路径表达式来选择XML文档中的nodes(节)或是node-set(节集)。这些路径表达式看上去与你平时所见的传统计算机文件系统路径非常地相似。
责编:豆豆技术应用