Xpath multiple attributes from different nodes -


what's wrong xpath line added below:

/holiday[starts-with(@code,'a')/holidaytype[1]/duration[@period=(15)] 

i'm trying filter holiday code , number of day(period).

you missing / , ]. look:

/holiday[starts-with(@code,'a')/holidaytype[1]/duration[@period=(15)]  ^                             ^  ^-- missing here              ^-- , "]" here 

in first case, can // or //*/. so, try:

//holiday[starts-with(@code,'a')]/holidaytype[1]/duration[@period=(15)] 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -