Skip to content

skjnldsv/xpath-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xpath-action

This action executes XPath 1.0 expression on a given document. It uses xmldom and xpath modules for Node.js.

Inputs

filename

Required The path to HTML or XML document.

expression

Required XPath 1.0 expression.

namespaces

Optional XML namespaces in JSON format.

Outputs

result

Evaluated items joined with a newline.

Example usage

uses: QwerMike/xpath-action@v1
with:
  filename: 'test.xml'
  expression: '//movie/year/text()'

License

MIT License

About

XPath as GitHub Action

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%