{"id":383104,"date":"2023-05-23T13:40:46","date_gmt":"2023-05-23T13:40:46","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=383104"},"modified":"2023-05-23T13:46:50","modified_gmt":"2023-05-23T13:46:50","slug":"read-data-from-xsd-file-in-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/","title":{"rendered":"Read Data from XSD file in Magento 2"},"content":{"rendered":"\n<p>In this blog, we are going to learn how we can read data from an XSD file.<\/p>\n\n\n\n<p><strong>XSD<\/strong>\u00a0(<strong>XML Schema Definition<\/strong>), a recommendation of the World Wide Web Consortium (W3C), specifies how to formally describe the elements in an Extensible Markup Language (XML) document. Programmers use it to verify each piece of item content in a document, to assure it adheres to the description of the element it is placed in.<\/p>\n\n\n\n<p>In Magento 2, it provides\u00a0<strong>\\Magento\\Framework\\Filesystem\\DriverInterface<\/strong>\u00a0interface, where the\u00a0<strong>fileGetContents<\/strong>\u00a0method is declared, we use this method to read\/get file content or data from any relative or absolute path or an URL. When we will read the XML file using an URL we can convert it into an Array. We will use these steps in our Block file ReadXsd.php inside app\/code\/Vendor\/CustomModule\/Block\/ directory.<\/p>\n\n\n\n<p>Please follow the below steps to get the result from an XSD file:<br><strong>Note:<\/strong> To know how to Create an extension in Magento 2, you can click <a href=\"https:\/\/webkul.com\/blog\/create-hello-module-in-magento2\/\">here<\/a><br>Additionally, To know more about magento modules, you can click <a href=\"https:\/\/developer.adobe.com\/commerce\/php\/architecture\/modules\/overview\/\">here<\/a><\/p>\n\n\n\n<p><strong>1.\u00a0<\/strong>create page layout\u00a0file<\/p>\n\n\n\n<p><strong>File Path:<\/strong>\u00a0app\/code\/Webkul\/CustomModule\/view\/frontend\/layout\/custommodule_test_index.xml<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;page xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; layout=&quot;1column&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:View\/Layout\/etc\/page_configuration.xsd&quot;&gt;\n    &lt;body&gt;\n        &lt;referenceContainer name=&quot;content&quot;&gt;\n            &lt;block class=&quot;Webkul\\CustomModule\\Block\\ReadXsd&quot; name=&quot;custom_module&quot; template=&quot;Webkul_CustomModule::readXsd.phtml&quot;\/&gt;\n        &lt;\/referenceContainer&gt;\n    &lt;\/body&gt;\n&lt;\/page&gt;<\/pre>\n\n\n\n<p><strong>2.<\/strong> Now, create phtml file.<\/p>\n\n\n\n<p><strong>File Path:<\/strong>\u00a0app\/code\/Webkul\/CustomModule\/view\/frontend\/templates\/readXsd.phtml<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n$filename = &quot;RawMaterials&quot;;\n$xsdData = $block-&gt;getXsdFileContent($filename);\n?&gt;\n&lt;pre&gt;\n    &lt;?php\n    print_r($xsdData);\n    ?&gt;\n&lt;\/pre&gt;<\/pre>\n\n\n\n<p><strong>3.<\/strong> Now, create block file ReadXsd.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @package   Webkul_CustomModule\n * @author    Webkul Software Private Limited\n * @copyright Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\nnamespace Webkul\\CustomModule\\Block;\n\nuse Magento\\Framework\\View\\Element\\Template;\n\nclass ReadXsd extends Template\n{\n    public const XSD_PATH = &#039;\/view\/base\/web\/files&#039;;\n\n    \/**\n     * @var \\Magento\\Framework\\Filesystem\\Driver\\File\n     *\/\n    private $fileSystemDriver;\n\n    \/**\n     * @var \\Magento\\Framework\\Json\\Helper\\Data\n     *\/\n    private $jsonHelper;\n\n    \/**\n     * @var \\Magento\\Framework\\Module\\Dir\\Reader\n     *\/\n    private $reader;\n\n    \/**\n     * @var \\Magento\\Framework\\Module\\Dir\\Reader\n     *\/\n    private $modulePath;\n\n    \/**\n     * Constructor\n     *\n     * @param \\Magento\\Framework\\Filesystem\\Driver\\File $fileSystemDriver\n     * @param \\Magento\\Framework\\Json\\Helper\\Data $jsonHelper\n     * @param \\Magento\\Framework\\Module\\Dir\\Reader $reader\n     * @param \\Magento\\Framework\\View\\Element\\Template\\Context $context\n     *\/\n    public function __construct(\n        \\Magento\\Framework\\Filesystem\\Driver\\File $fileSystemDriver,\n        \\Magento\\Framework\\Json\\Helper\\Data $jsonHelper,\n        \\Magento\\Framework\\Module\\Dir\\Reader $reader,\n        \\Magento\\Framework\\View\\Element\\Template\\Context $context\n    ) {\n        $this-&gt;fileSystemDriver = $fileSystemDriver;\n        $this-&gt;jsonHelper = $jsonHelper;\n        $this-&gt;reader = $reader;\n        parent::__construct($context);\n    }\n    \/**\n     * Function getXsdFileContent\n     *\n     * @param string $fileName\n     * @return array\n     *\/\n    public function getXsdFileContent($fileName)\n    {\n        try {\n            $data = false;\n            $mageDir = $this-&gt;getXsdFileFullPath($fileName);\n            if ($this-&gt;fileSystemDriver-&gt;isExists($mageDir)) {\n                $doc = new \\DOMDocument();\n                $doc-&gt;preserveWhiteSpace = false;\n                $doc-&gt;load($mageDir);\n                $tempFileDir = BP .  &#039;\/pub\/media\/&#039; . &#039;temp.xml&#039;;\n                $doc-&gt;save($tempFileDir);\n                $xmlfile = $this-&gt;fileSystemDriver-&gt;fileGetContents($tempFileDir);\n                $parseObj = str_replace($doc-&gt;lastChild-&gt;prefix.&#039;:&#039;, &quot;&quot;, $xmlfile);\n                $parseObj = str_replace(&#039;wm&#039;.&#039;:&#039;, &quot;&quot;, $parseObj);\n                $ob = simplexml_load_string($parseObj);\n                $json  = $this-&gt;jsonHelper-&gt;jsonEncode($ob);\n                $data = $this-&gt;jsonHelper-&gt;jsonDecode($json);\n            }\n            return $data;\n        } catch (\\Exception $e) {\n            throw $e;\n        }\n    }\n\n    \/**\n     * Function getXsdFileFullPath\n     *\n     * @param string $fileName\n     * @return string\n     *\/\n    public function getXsdFileFullPath($fileName)\n    {\n        $modulePath = $this-&gt;getModulePath();\n        $mageDir = $modulePath.self::XSD_PATH.&quot;\/&quot;.$fileName.&quot;.xsd&quot;;\n        return $mageDir;\n    }\n\n    \/**\n     * Function getModulePath\n     *\n     * @return mixed\n     *\/\n    public function getModulePath()\n    {\n        if (!$this-&gt;modulePath) {\n            $this-&gt;modulePath = $this-&gt;reader-&gt;getModuleDir(&#039;&#039;, &#039;Webkul_CustomModule&#039;);\n        }\n        return $this-&gt;modulePath;\n    }\n}<\/pre>\n\n\n\n<p><strong>4. <\/strong>When we hit the Controller in the browser\u2019s window, we get the result of XSD file like below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"619\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-1200x619.png\" alt=\"screenshot image\" class=\"wp-image-383229\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-1200x619.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-300x155.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-250x129.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-768x396.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524.png 1293w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Also, you can check our other blog to know how to read data from XML file in magento 2 by clicking <a href=\"https:\/\/webkul.com\/blog\/read-xml-data-from-a-xml-file-in-magento-2\/\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to learn how we can read data from an XSD file. XSD\u00a0(XML Schema Definition), a recommendation of the World Wide Web Consortium (W3C), specifies how to formally describe the elements in an Extensible Markup Language (XML) document. Programmers use it to verify each piece of item content in a <a href=\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":536,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[12967,2070],"class_list":["post-383104","post","type-post","status-publish","format-standard","hentry","category-magento-2","tag-adobe-commerce","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Read Data from XSD file in Magento 2 - Webkul Blog<\/title>\n<meta name=\"description\" content=\"In this blog, we are going to learn how we can read data from an XSD file. Please follow the below steps to get the result from an XSD file\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Read Data from XSD file in Magento 2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we are going to learn how we can read data from an XSD file. Please follow the below steps to get the result from an XSD file\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-23T13:40:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-23T13:46:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-1200x619.png\" \/>\n<meta name=\"author\" content=\"Mayank Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mayank Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/\"},\"author\":{\"name\":\"Mayank Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/499eb041ef8d77f6dae9507e6322ff46\"},\"headline\":\"Read Data from XSD file in Magento 2\",\"datePublished\":\"2023-05-23T13:40:46+00:00\",\"dateModified\":\"2023-05-23T13:46:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/\"},\"wordCount\":265,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-1200x619.png\",\"keywords\":[\"Adobe Commerce\",\"Magento2\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/\",\"name\":\"Read Data from XSD file in Magento 2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-1200x619.png\",\"datePublished\":\"2023-05-23T13:40:46+00:00\",\"dateModified\":\"2023-05-23T13:46:50+00:00\",\"description\":\"In this blog, we are going to learn how we can read data from an XSD file. Please follow the below steps to get the result from an XSD file\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524.png\",\"width\":1293,\"height\":667,\"caption\":\"Screenshot-2023-05-23-183524\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Read Data from XSD file in Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/499eb041ef8d77f6dae9507e6322ff46\",\"name\":\"Mayank Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4f4f2bd444409f512b790c2123b3fbbf3187cddfbb2c0da1e71a153cfdcb72d4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4f4f2bd444409f512b790c2123b3fbbf3187cddfbb2c0da1e71a153cfdcb72d4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Mayank Kumar\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/mayankkumar-mg453\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Read Data from XSD file in Magento 2 - Webkul Blog","description":"In this blog, we are going to learn how we can read data from an XSD file. Please follow the below steps to get the result from an XSD file","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:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Read Data from XSD file in Magento 2 - Webkul Blog","og_description":"In this blog, we are going to learn how we can read data from an XSD file. Please follow the below steps to get the result from an XSD file","og_url":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-05-23T13:40:46+00:00","article_modified_time":"2023-05-23T13:46:50+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-1200x619.png","type":"","width":"","height":""}],"author":"Mayank Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Mayank Kumar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/"},"author":{"name":"Mayank Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/499eb041ef8d77f6dae9507e6322ff46"},"headline":"Read Data from XSD file in Magento 2","datePublished":"2023-05-23T13:40:46+00:00","dateModified":"2023-05-23T13:46:50+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/"},"wordCount":265,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-1200x619.png","keywords":["Adobe Commerce","Magento2"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/","url":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/","name":"Read Data from XSD file in Magento 2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524-1200x619.png","datePublished":"2023-05-23T13:40:46+00:00","dateModified":"2023-05-23T13:46:50+00:00","description":"In this blog, we are going to learn how we can read data from an XSD file. Please follow the below steps to get the result from an XSD file","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-183524.png","width":1293,"height":667,"caption":"Screenshot-2023-05-23-183524"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/read-data-from-xsd-file-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Read Data from XSD file in Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/499eb041ef8d77f6dae9507e6322ff46","name":"Mayank Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4f4f2bd444409f512b790c2123b3fbbf3187cddfbb2c0da1e71a153cfdcb72d4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4f4f2bd444409f512b790c2123b3fbbf3187cddfbb2c0da1e71a153cfdcb72d4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Mayank Kumar"},"url":"https:\/\/webkul.com\/blog\/author\/mayankkumar-mg453\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/383104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/536"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=383104"}],"version-history":[{"count":4,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/383104\/revisions"}],"predecessor-version":[{"id":383248,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/383104\/revisions\/383248"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=383104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=383104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=383104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}