skip to Main Content

For some reasons i’m throwing an error on it..A validation error occured in an XML layout file

<block class="MagentoCmsBlockBlock" name="gbp_success_page-block">

My whole XML:

<?xml version="1.0"?> 
<body> 
    <referenceContainer name="content"> 
        <block class="MagentoCmsBlockBlock" name="gbp_success_page-block"> 
            <arguments> 
                <argument name="block_id" xsi:type="string">gbp_success_page</argument> 
            </arguments> 
        </block> 
    </referenceContainer> 
</body>

Is it something to do with the xsi type?

2

Answers


  1. I tested it on online xml formatter and the returned message is “Unable to parse any XML input. Error on line 1: The prefix “xsi” for attribute “xsi:type” associated with an element type “argument” is not bound.”

    If you remove the xsi:type="string" it becomes valid. So, yes, there is something wrong with the xml and it has to do with the xsi type.

    Login or Signup to reply.
  2. You have a namespace prefix in the argument name xsi:type in line 6. This namespace is not defined.
    Please see answer to is the xsi: prefix assumed to be known in XML?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search