Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 1 post(s) |
SomethingIs InMyButt
Nightmare Coalition Recruitment Center
4
|
Posted - 2014.02.23 23:43:00 -
[1] - Quote
hello, I need to know how to filter items in Xpath. so far, under the API I have this queery, where I want to filter out anything that isn't a player donation:
//row[@reftypeid='10']/@ownername1 (this is for googledocs, where there are special exceptions)
thanks in advance, -butt
|
|
ISD LackOfFaith
ISD Community Communications Liaisons
1235
|
Posted - 2014.02.24 16:02:00 -
[2] - Quote
A few issues:
1. Simply copy-pasting the sample XML found at the link you gave results in malformed XML. Some of the attributes do not have spaces between the value of the last attribute and the next one. I fixed it and uploaded a good copy here: http://pastebin.com/Lim7gQ36
2. XPath appears to be case-sensitive with regards to attribute names. So, your query needs to be "//row[@refTypeID='10']/@ownerName1" instead.
3. If you were using the sample XML from the page you linked... that does not actually contain any rows with refTypeID=10. You might want to use a better dataset to test this particular XPath.
Hope this helped! ISD LackOfFaith Lieutenant Community Communication Liaisons (CCLs) Interstellar Services Department @ISD_LackOfFaith on Twitter |
|
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
2729
|
Posted - 2014.02.25 21:20:00 -
[3] - Quote
If you're using it in googledocs, they lowercase all the attribute and element names.
Took some fiddling to find that out (unless they've change it again) Steve Ronuken for CSM 9! https://forums.eveonline.com/default.aspx?g=posts&m=4236322
http://www.fuzzwork.co.uk/
Twitter: @fuzzysteve on Twitter |
SomethingIs InMyButt
Nightmare Coalition Recruitment Center
5
|
Posted - 2014.02.25 21:20:00 -
[4] - Quote
ISD LackOfFaith wrote:A few issues: 1. Simply copy-pasting the sample XML found at the link you gave results in malformed XML. Some of the attributes do not have spaces between the value of the last attribute and the next one. I fixed it and uploaded a good copy here: http://pastebin.com/Lim7gQ362. XPath appears to be case-sensitive with regards to attribute names. So, your query needs to be "//row[@refTypeID='10']/@ownerName1" instead. 3. If you were using the sample XML from the page you linked... that does not actually contain any rows with refTypeID=10. You might want to use a better dataset to test this particular XPath. Hope this helped!
My bad, i need to be way more specific.
A) im using my allmighty (omnipotent) api key that only i can access
B) for some reason, in google docs, you use lowercase when you use the @ symbol to call a return, did not know if it was different with brackets
C)i'm using p Import xml in google docs,
Thanks for the response, -butt
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |