Title: reading value
Last modified: January 11, 2024

---

# reading value

 *  Resolved [mcdeth](https://wordpress.org/support/users/mcdeth/)
 * (@mcdeth)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/reading-value/)
 * Hello, how can I read inside php function value of ean number in following example?
 *     ```wp-block-code
       <product id="xxx">
          <sizes>
             <size id="yy" ean="ean-number"></size>
          </sizes>
       </product>
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/reading-value/#post-17339357)
 * Hi [@mcdeth](https://wordpress.org/support/users/mcdeth/),
 * Assuming you’re importing the “product” element, you can access the EAN with 
   this XPath:
 *     ```wp-block-code
       {sizes[1]/size[1]/@ean}
       ```
   
 * To generate the XPath, you can click the “ean” attribute and drag it into the
   import template.
 * As far as PHP functions, our free plugin doesn’t support them, and we can only
   help with our free plugins on this forum, so you’d have to contact us about that
   here: [http://www.wpallimport.com/support/](http://www.wpallimport.com/support/).

Viewing 1 replies (of 1 total)

The topic ‘reading value’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/reading-value/#post-17339357)
 * Status: resolved