javax.xml.xpath を使用して、XML ファイルに対して次の XQuery を実行するにはどうすればよいですか?
for $com in //RepoStatistics/Commits/Commit
return
for $file in $com//File
return element tuple {
element path {
string($file/Path)
},
element action {
string($file/@action)
},
element date {
string($com/@date)
},
element developer {
string($com/@author)
},
element locAdd{
if (not(empty($file/LocAdd)))
then string($file/LocAdd)
else 0
},
element locRem{
if (not(empty($file/LocRem)))
then string($file/LocRem)
else 0
}
}
質問がばかげている場合は申し訳ありませんが、私は非常に初心者です。