Created
February 11, 2009 14:11
-
-
Save masanobuimai/62022 to your computer and use it in GitHub Desktop.
Hudson Remote APIのxpath, excludeの指定例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= /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