{"id":1672,"date":"2016-07-04T17:04:19","date_gmt":"2016-07-04T17:04:19","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=1672"},"modified":"2016-07-05T05:58:35","modified_gmt":"2016-07-05T05:58:35","slug":"create-save-xml-file-using-php","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/","title":{"rendered":"How to Create and Save XML File using PHP"},"content":{"rendered":"<p>XML stands for Extensible Markup Language which is used for store and transport data. Some web project needs to store products, user, or other information in the XML file. In those projects, you should need to generate XML data or <a href=\"http:\/\/www.codexworld.com\/convert-array-to-xml-in-php\/\">convert PHP array to XML<\/a>, then create and save the XML file using PHP. Also, XML format is commonly used in sitemap of the website. <\/p>\n<p>In this tutorial, we&#8217;ll show the simple way to generate XML file using PHP. You can use XML DOM Parser to process XML document in PHP. Also, using <code>saveXml()<\/code> and <code>save()<\/code> method you&#8217;ll be able to output XML document to the browser and save XML document as a file.<\/p>\n<ul class=\"bullet_disk_list\">\n<li>The <code>saveXml()<\/code> function puts internal XML document into a string.<\/li>\n<li>The <code>save()<\/code> function puts internal XML document into a file.<\/li>\n<\/ul>\n<p>The following example PHP code will create XML sitemap and save XML file into the <code>xml\/<\/code> directory.<\/p>\n<pre><span style=\"color: #0000BB\">$xmlString&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;?xml&nbsp;version=\"1.0\"&nbsp;encoding=\"UTF-8\"?&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;urlset&nbsp;\r\n\txmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"&nbsp;\r\n\txmlns:image=\"http:\/\/www.google.com\/schemas\/sitemap-image\/1.1\"&nbsp;\r\n\txsi:schemaLocation=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9&nbsp;http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\/sitemap.xsd\"&nbsp;\r\n\txmlns=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\"&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;url&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;loc&gt;http:\/\/www.codexworld.com&lt;\/loc&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;lastmod&gt;2016-07-04T07:46:18+00:00&lt;\/lastmod&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;changefreq&gt;always&lt;\/changefreq&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;priority&gt;1.00&lt;\/priority&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/url&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/urlset&gt;'<\/span><span style=\"color: #007700\">;<br \/><br \/><\/span><span style=\"color: #0000BB\">$dom&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;new&nbsp;<\/span><span style=\"color: #0000BB\">DOMDocument<\/span><span style=\"color: #007700\">;<br \/><\/span><span style=\"color: #0000BB\">$dom<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">preserveWhiteSpace&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">FALSE<\/span><span style=\"color: #007700\">;<br \/><\/span><span style=\"color: #0000BB\">$dom<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">loadXML<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$xmlString<\/span><span style=\"color: #007700\">);<br \/><br \/><\/span><span style=\"color: #FF8000\">\/\/Save&nbsp;XML&nbsp;as&nbsp;a&nbsp;file<br \/><\/span><span style=\"color: #0000BB\">$dom<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">save<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'xml\/sitemap.xml'<\/span><span style=\"color: #007700\">);<\/span><\/pre>\n<p>Use the following PHP code to output XML document on the browser.<\/p>\n<pre><span style=\"color: #FF8000\">\/\/View&nbsp;XML&nbsp;document<br \/><\/span><span style=\"color: #0000BB\">$dom<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">formatOutput&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">TRUE<\/span><span style=\"color: #007700\">;<br \/>echo&nbsp;<\/span><span style=\"color: #0000BB\">$dom<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">saveXml<\/span><span style=\"color: #007700\">();<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>XML stands for Extensible Markup Language which is used for store and transport data. Some web project needs to store products, user, or other information in the XML file. In those projects, you should need <\/p>\n","protected":false},"author":1,"featured_media":1673,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[14,207],"class_list":["post-1672","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-php","tag-xml","cat-4-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create and Save XML File using PHP - CodexWorld<\/title>\n<meta name=\"description\" content=\"Generate XML in PHP - PHP code to create and save XML file. A simple way to create XML sitemap and save XML file into the directory using PHP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create and Save XML File using PHP - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"Generate XML in PHP - PHP code to create and save XML file. A simple way to create XML sitemap and save XML file into the directory using PHP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-04T17:04:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-07-05T05:58:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/how-to-create-save-xml-file-using-php-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"How to Create and Save XML File using PHP\",\"datePublished\":\"2016-07-04T17:04:19+00:00\",\"dateModified\":\"2016-07-05T05:58:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/\"},\"wordCount\":169,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/how-to-create-save-xml-file-using-php-codexworld.png\",\"keywords\":[\"PHP\",\"XML\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/\",\"name\":\"How to Create and Save XML File using PHP - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/how-to-create-save-xml-file-using-php-codexworld.png\",\"datePublished\":\"2016-07-04T17:04:19+00:00\",\"dateModified\":\"2016-07-05T05:58:35+00:00\",\"description\":\"Generate XML in PHP - PHP code to create and save XML file. A simple way to create XML sitemap and save XML file into the directory using PHP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/how-to-create-save-xml-file-using-php-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/07\\\/how-to-create-save-xml-file-using-php-codexworld.png\",\"width\":1366,\"height\":768,\"caption\":\"how-to-create-save-xml-file-using-php-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-save-xml-file-using-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create and Save XML File using PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create and Save XML File using PHP - CodexWorld","description":"Generate XML in PHP - PHP code to create and save XML file. A simple way to create XML sitemap and save XML file into the directory using PHP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/","og_locale":"en_US","og_type":"article","og_title":"How to Create and Save XML File using PHP - CodexWorld","og_description":"Generate XML in PHP - PHP code to create and save XML file. A simple way to create XML sitemap and save XML file into the directory using PHP.","og_url":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2016-07-04T17:04:19+00:00","article_modified_time":"2016-07-05T05:58:35+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/how-to-create-save-xml-file-using-php-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"How to Create and Save XML File using PHP","datePublished":"2016-07-04T17:04:19+00:00","dateModified":"2016-07-05T05:58:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/"},"wordCount":169,"commentCount":3,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/how-to-create-save-xml-file-using-php-codexworld.png","keywords":["PHP","XML"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/","url":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/","name":"How to Create and Save XML File using PHP - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/how-to-create-save-xml-file-using-php-codexworld.png","datePublished":"2016-07-04T17:04:19+00:00","dateModified":"2016-07-05T05:58:35+00:00","description":"Generate XML in PHP - PHP code to create and save XML file. A simple way to create XML sitemap and save XML file into the directory using PHP.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/how-to-create-save-xml-file-using-php-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/how-to-create-save-xml-file-using-php-codexworld.png","width":1366,"height":768,"caption":"how-to-create-save-xml-file-using-php-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/create-save-xml-file-using-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"How to Create and Save XML File using PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/07\/how-to-create-save-xml-file-using-php-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-qY","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=1672"}],"version-history":[{"count":3,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1672\/revisions"}],"predecessor-version":[{"id":1675,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1672\/revisions\/1675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/1673"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=1672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=1672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=1672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}