Title: Getting XML Attribute
Last modified: July 5, 2022

---

# Getting XML Attribute

 *  Resolved [Jacques van der Horst](https://wordpress.org/support/users/jacquesvdh/)
 * (@jacquesvdh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/getting-xml-attribute/)
 * Good day,
 * I was wondering if its possible to get the attribute inside an xml node and then
   map it?
 * For example: <category name=”House” /> I would like to make a custom field and
   then extract the “House” value when I import.
 * Hope that makes sense?
 * Kind Regardsm

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Xylus Themes](https://wordpress.org/support/users/xylus/)
 * (@xylus)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/getting-xml-attribute/#post-15797563)
 * Hello [@jacquesvdh](https://wordpress.org/support/users/jacquesvdh/) ,
 * Yes, you can map attributes to a custom field and import them.
 * Thanks
 *  Thread Starter [Jacques van der Horst](https://wordpress.org/support/users/jacquesvdh/)
 * (@jacquesvdh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/getting-xml-attribute/#post-15797587)
 * Alright thanks [@xylus](https://wordpress.org/support/users/xylus/),
 * How would I target the attribute from that xml node if I wanted to use it? as
   pulling it in from the preview just gives me {category[1]}
 * Regards,
 *  Plugin Author [Xylus Themes](https://wordpress.org/support/users/xylus/)
 * (@xylus)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/getting-xml-attribute/#post-15797724)
 * Hello [@jacquesvdh](https://wordpress.org/support/users/jacquesvdh/) ,
 * You can check detailed documentation [here](https://docs.xylusthemes.com/docs/wp-smart-import/importing-an-xml-or-csv-file/).
 * Thanks
 *  Plugin Contributor [Rajat Patel](https://wordpress.org/support/users/rajat1192/)
 * (@rajat1192)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/getting-xml-attribute/#post-15797758)
 * Hello [@jacquesvdh](https://wordpress.org/support/users/jacquesvdh/),
 * **[Here](https://docs.xylusthemes.com/docs/wp-smart-import/importing-an-xml-or-csv-file/)**
   is detailed documentation about how to import the custom fields. Also, you can
   contact us in our website with an XML file so we can help you quickly.
 * Thanks & Regards,
    **Xylus Themes**

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Getting XML Attribute’ is closed to new replies.

 * ![](https://ps.w.org/wp-smart-import/assets/icon-256x256.png?rev=1896603)
 * [WP Smart Import : Import any XML File to WordPress](https://wordpress.org/plugins/wp-smart-import/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-smart-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-smart-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-smart-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-smart-import/reviews/)

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [xml](https://wordpress.org/support/topic-tag/xml/)

 * 4 replies
 * 3 participants
 * Last reply from: [Rajat Patel](https://wordpress.org/support/users/rajat1192/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/getting-xml-attribute/#post-15797758)
 * Status: resolved