Please correct the XML data and try again. Element 'referenceBlock':
This element is not expected. Expected is one of ( referenceContainer,
container, update, move ). Line: 1
I got this error while trying to remove page title through Design -> Layout Update XML
This the code I used to remove block:
<referenceBlock name="page.main.title" remove="true"/>
referenceContainer works fine but problem only with referenceBlock
Best Answer
I got the solution, used referenceBlock inside the referenceContainer works fine, may be anyone help.