Title: Xpath Syntax not working
Last modified: August 21, 2016

---

# Xpath Syntax not working

 *  Resolved [subash1986](https://wordpress.org/support/users/subash1986/)
 * (@subash1986)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/xpath-syntax-not-working/)
 * <item>Sample Product Name</item>
    <url>www.example.com</URL> <date>2013-09-05
   </date> <author>dummy</author> <name>Author4</name> <img>www.example.com/img.
   jpg</img> </item>
 * <item>Sample Product Name2</item>
    <url>www.example.com</URL> <date>2013-09-10
   </date> <author>dummy</author> <name>Author3</name> <img>www.example.com/img.
   jpg</img> </item>
 * <item>Sample Product Name3</item>
    <url>www.example.com</URL> <date>2013-09-15
   </date> <author>dummy</author> <name>Author2</name> <img>www.example.com/img.
   jpg</img> </item>
 * …etc
 * FYI: <item> is parent and <name> is inner element of <author>.
 * I used xPath syntax /item[date[contains(.,’2013-09-05′)]] it works out to filter
   by date
 * but when I use /item/author/name[contains(.,’author2′)] it didn’t work out to
   filter by name
 * I used several expressions like // | nothing worked out.
 * Complicated syntax won’t work? i.e //item/date | //item/name – Selects all the
   date AND name elements of all book elements
    and more syntax not working i.e 
   node()
 * [http://wordpress.org/plugins/wp-all-import/](http://wordpress.org/plugins/wp-all-import/)

The topic ‘Xpath Syntax not working’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

## Tags

 * [xpath](https://wordpress.org/support/topic-tag/xpath/)

 * 0 replies
 * 1 participant
 * Last reply from: [subash1986](https://wordpress.org/support/users/subash1986/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/xpath-syntax-not-working/)
 * Status: resolved