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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -