Coder Social home page Coder Social logo

Validating Magento 2 XML files about exalt HOT 5 CLOSED

eerohele avatar eerohele commented on May 26, 2024
Validating Magento 2 XML files

from exalt.

Comments (5)

eerohele avatar eerohele commented on May 26, 2024 1

Your misc.xml doesn't look like an OASIS XML catalog file, which is the only kind of catalog Exalt supports.

Can you try replacing misc.xml with an OASIS XML catalog? I think something like this should work:

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE catalog
  PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
         "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <uri
    name="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd"
    uri="ROOT/vendor/Magento/framework/Setup/Declaration/Schema/etc/schema.xsd"/>
</catalog>

It's been a while since I've worked with this stuff, though, so you might need to fiddle with that a bit.

from exalt.

churiart avatar churiart commented on May 26, 2024 1

Thank you I got it working:

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE catalog
  PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
         "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    <uri name="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd" uri="file:///D:/path/to/installation/vendor/magento/framework/Setup/Declaration/Schema/etc/schema.xsd"/>
    <uri name="urn:magento:framework:ObjectManager/etc/config.xsd" uri="file:///D:/path/to/instllation/vendor/magento/framework/ObjectManager/etc/config.xsd"/>
    .
    .
    .
</catalog>

from exalt.

eerohele avatar eerohele commented on May 26, 2024 1

By the way, I think you could also do something along these lines:

<rewriteURI uriStartString="urn:magento:framework:" rewritePrefix="file:///D:/path/to/installation/vendor/magento/framework/"/>

I didn't test, though.

from exalt.

churiart avatar churiart commented on May 26, 2024

The exact same statement worked great and saved tens of kilobytes!
Thank you

from exalt.

eerohele avatar eerohele commented on May 26, 2024

I'm nothing if not prudent when it comes to kilobytes.

Glad to hear it works!

from exalt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.