java - <li> tag Xpath location -


there many list elements in xml class name:

<li class="name">   <div>....</div>   ...... </li> 

set location "//*li[@class='name']" throws

javax.xml.transform.transformerexception: illegal tokens: 'li', '[', '@', 'class', '=', ''name'', ']'

how list elements via xpath location?

remove *, i.e. instead of

//*li[@class='name'] 

you need use

//li[@class='name'] 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -