{"id":7,"date":"2018-04-15T11:37:55","date_gmt":"2018-04-15T09:37:55","guid":{"rendered":"http:\/\/xmlFM.bellinonet.com\/?p=7"},"modified":"2018-04-17T21:06:26","modified_gmt":"2018-04-17T19:06:26","slug":"parse-any-xml-document-within-filemaker","status":"publish","type":"post","link":"http:\/\/xmlFM.bellinonet.com\/?p=7","title":{"rendered":"Parse any XML document within FileMaker"},"content":{"rendered":"<p>You can use xmlFM to parse any XML document within FileMaker in order to get :<\/p>\n<ul>\n<li>element content<\/li>\n<li>attribute value<\/li>\n<\/ul>\n<h1>Advantages<\/h1>\n<p>In contrast to several other existing FileMaker solution, xmlFM has the following advantages :<\/p>\n<ul>\n<li>xmlFM is compatible with a wide selection of\u00a0<a href=\"http:\/\/xmlFM.bellinonet.com\/?p=12\">FileMaker versions<\/a><\/li>\n<li>xmlFM does NOT need any plugin to be installed, neither to be deployed !<br \/>\nIt is just a set of FileMaker scripts <a href=\"http:\/\/xmlFM.bellinonet.com\/?p=18\">installed in about 30 seconds<\/a> !<\/li>\n<li>xmlFM does not need any internet connection to work. It is 100% offline !<\/li>\n<li>xmlFM is robust and it supports perfectly comments, and attributes in the XML document. <a href=\"http:\/\/xmlFM.bellinonet.com\/?p=21\">Try it here<\/a>.<\/li>\n<li>xmlFM handles correctly\u00a0empty-element tag (as\u00a0<em>&lt;line-break \/&gt;<\/em>)<\/li>\n<\/ul>\n<h1>Example<\/h1>\n<p>Imagine you have the following XML file :<\/p>\n<blockquote>\n<div>&lt;Document&gt;<\/div>\n<div style=\"padding-left: 30px;\">&lt;Item&gt;<\/div>\n<div style=\"padding-left: 60px;\">&lt;MsgId&gt;Message 1&lt;\/MsgId&gt;<\/div>\n<div style=\"padding-left: 60px;\">&lt;!&#8211; comment are ignored correctly &#8211;&gt;<\/div>\n<div style=\"padding-left: 60px;\">&lt;MsgId&gt;Message 2&lt;\/MsgId&gt;<\/div>\n<div style=\"padding-left: 60px;\">&lt;!&#8211; multiline comment are ignored correctly<\/div>\n<div style=\"padding-left: 90px;\">&lt;MsgId&gt;Message WRONG&lt;\/MsgId&gt;<\/div>\n<div style=\"padding-left: 60px;\">\u00a0 &#8211;&gt;<\/div>\n<div style=\"padding-left: 60px;\">&lt;!&#8211; attributes are managed correctly &#8211;&gt;<\/div>\n<div style=\"padding-left: 60px;\">&lt;MsgId Ccy=\u00a0\u00bbENGLISH\u00a0\u00bb&gt;Message 3&lt;\/MsgId&gt;<\/div>\n<div style=\"padding-left: 30px;\">&lt;\/Item&gt;<\/div>\n<div>&lt;\/Document&gt;<\/div>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>You want to obtain the element content \u00ab\u00a0Message 3\u00a0\u00bb and its attribute \u00ab\u00a0ENGLISH\u00a0\u00bb ? \u00a0The solution is xmlFM :<br \/>\n<em>GetXMLNode(\u00a0\/Document[1]\/Item[1]\/MsgId[3] )<\/em><\/p>\n<p>Some explanations, the previous syntax is for :<\/p>\n<ul>\n<li>Go to <em>first<\/em> occurence of root tag \u00ab\u00a0<em>Document<\/em>\u00ab\u00a0<\/li>\n<li>Then, go to its <em>first<\/em> child tag named \u00ab\u00a0<em>Item<\/em>\u00ab\u00a0<\/li>\n<li>Finally, go to the <em>third<\/em> occurence of it child, with the tag named \u00ab\u00a0<em>MsgId<\/em>\u00ab\u00a0<\/li>\n<\/ul>\n<p>From there you will get the element content : \u00ab\u00a0Message 3\u00a0\u00bb, and its attribute : \u00ab\u00a0ENGLISH\u00a0\u00bb.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use xmlFM to parse any XML document within FileMaker in order to get : element content attribute value Advantages In contrast to several other existing FileMaker solution, xmlFM has the following advantages : xmlFM is compatible with a wide selection of\u00a0FileMaker versions xmlFM does NOT need any plugin to be installed, neither to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/xmlFM.bellinonet.com\/?p=7\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;Parse any XML document within FileMaker&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=\/wp\/v2\/posts\/7"}],"collection":[{"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":10,"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":88,"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions\/88"}],"wp:attachment":[{"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xmlFM.bellinonet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}