Title: Import XML
Last modified: March 1, 2019

---

# Import XML

 *  Resolved [sergeylive](https://wordpress.org/support/users/sergeylive/)
 * (@sergeylive)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/import-xml-4/)
 * My suppliers send me formats XML from Yandex. Like this
    <categories> <category
   id=”14933591″>Bags</category> <category id=”27714271″ parentId=”14933591″>Woman
   Bags</category> </categories> And Offers separately <offers> <offer available
   =”true” id=”377637781″> <price>249</price> <categoryId>36080329</categoryId> 
   <picture>jpg.jpg</picture> <name>Name example</name> <description>description
   example</description> </offer> <offer available=”true” id=”383293682″> <price
   >249</price> <categoryId>27714271</categoryId> <picture>jpg.jpg</picture> <name
   >Name example</name> <description>description example</description> </offer> 
   </offers>
 * This is not compatible with the requirement of plugin. What function will help
   me? I guess that some function if editor of plugin will help.

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/import-xml-4/#post-11267788)
 * Hi [@sergeylive](https://wordpress.org/support/users/sergeylive/)
 * Unfortunately, this will require quite a bit of custom code. There is an unofficial
   guide here that should help: [https://gist.github.com/trey8611/b0ab4e02b118fbfe013566c0b62a2944](https://gist.github.com/trey8611/b0ab4e02b118fbfe013566c0b62a2944).
 *  Thread Starter [sergeylive](https://wordpress.org/support/users/sergeylive/)
 * (@sergeylive)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/import-xml-4/#post-11282874)
 * Wow. It’s simply. But. As a result, I can not choose Unique Identifier, cause
   I have one field only. {./@id} cannot be an identifier.
    [⌊2019-03-06_2118⌉](https://www.screencast.com/t/EjVzlQdnWw)
 *  Thread Starter [sergeylive](https://wordpress.org/support/users/sergeylive/)
 * (@sergeylive)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/import-xml-4/#post-11283164)
 * Excuse me. It’s work fine. But. This script imports a list of categories in general.
   At the same time, he does not build hierarchies, as we expect. Poorly. Because
   parents categories we know.
    So, something like For men -> Bags -> backpackes-
   > cluthes p.s. You need to remember to add a title. Otherwise, the import does
   not work. [⌊2019-03-06_2232⌉](https://www.screencast.com/t/MDAf2c3IMkoN)
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/import-xml-4/#post-11283337)
 * Hey [@sergeylive](https://wordpress.org/support/users/sergeylive/)
 * There is a section in that guide that shows what to put in the “Parent Term” 
   field so that you can import hierarchies. That said, please keep in mind that
   this is an unofficial general guide, so it’s very possible that you’ll need to
   modify the workflow/code to get it to work with your data.

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

The topic ‘Import XML’ 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

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

 * 4 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/import-xml-4/#post-11283337)
 * Status: resolved