在javascript中使用xpath
    原文来自:?https://developer.mozilla.org/en/Introduction_to_using_XPath_in_JavaScript
?
?
Introduction to using XPath in JavaScript
 
TABLE OF CONTENTS
- 
document.evaluate
- Parameters
 
- Return Value
 
- Implementing a Default Namespace Resolver
 
- Notes
 
- 
Specifying the Return Type
- Simple Types
 
- Node-Set Types
 
- The ANY_TYPE Constant
 
 
 
- 
Examples
- Within an HTML Document
 
- Evaluating against an XML document within an Extension
 
- Note
 
 
- 
Appendix
- Implementing a User Defined Namespace Resolver
 
- Implementing a default namespace for XML documents
 
- Using XPath functions to reference elements with a default namespace
 
- Getting specifically namespaced elements and attributes regardless of prefix
 
- XPathResult Defined Constants