Skip to content

Instantly share code, notes, and snippets.

@masanobuimai
Created February 11, 2009 14:11
Show Gist options
  • Save masanobuimai/62022 to your computer and use it in GitHub Desktop.
Save masanobuimai/62022 to your computer and use it in GitHub Desktop.
Hudson Remote APIのxpath, excludeの指定例
= /hudson/description要素だけを得る =
http://deadlock.netbeans.org/hudson/api/xml?xpath=/hudson/description
= 一番最初のJobを得る =
http://deadlock.netbeans.org/hudson/api/xml?xpath=/hudson/job[1]
= /hudson/description要素を除外する =
http://deadlock.netbeans.org/hudson/api/xml?xpath=/&exclude=/hudson/description
= /hudson/description, /hudson/view要素を除外する =
http://deadlock.netbeans.org/hudson/api/xml?xpath=/&exclude=/hudson/description&exclude=/hudson/view
= /hudson/job/color要素を除外する =
http://deadlock.netbeans.org/hudson/api/xml?xpath=/&exclude=/hudson/job/color
= /hudson/job/color要素の値が'disabled'を除外する =
http://deadlock.netbeans.org/hudson/api/xml?xpath=/&exclude=/hudson/job/color[text()='disabled']
= /hudson/job/color要素の値が'disabled'と'blue'を除外する =
http://deadlock.netbeans.org/hudson/api/xml?xpath=/&exclude=/hudson/job/color[text()='disabled' or text()='blue']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment