{"id":15797372,"date":"2022-07-05T07:04:38","date_gmt":"2022-07-05T07:04:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/getting-xml-attribute\/"},"modified":"2022-07-05T07:04:38","modified_gmt":"2022-07-05T07:04:38","slug":"getting-xml-attribute","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/getting-xml-attribute\/","title":{"rendered":"Getting XML Attribute"},"content":{"rendered":"<p>Good day,<\/p>\n<p>I was wondering if its possible to get the attribute inside an xml node and then map it?<\/p>\n<p>For example: &lt;category name=&#8221;House&#8221; \/&gt; I would like to make a custom field and then extract the &#8220;House&#8221; value when I import.<\/p>\n<p>Hope that makes sense?<\/p>\n<p>Kind Regardsm<\/p>\n","protected":false},"template":"","class_list":["post-15797372","topic","type-topic","status-publish","hentry","topic-tag-attributes","topic-tag-import","topic-tag-xml"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15797372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15797372\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15797372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}