Sublime Forum

XML-->XSD/XST/DTD Validate

#1

Hi, i´m upgrade to sublime text 3. But i have one problem with xml/xsd/xst/dtd.

I need validate this documents but i cant or i dont know that extension/puglin.

Someone knows some complement that validates the document.

I tried “Exalt” but not validate them and it usually gives me problems.

Since I use xml, I’m with the notepad ++ and xml tools extension.I need something similar, does it exist for sublime text?

Regards

0 Likes

#2

I only see

0 Likes

#3

what specific problems do you have with Exalt? the package maintainer might be able to help you if you log details at https://github.com/eerohele/exalt/issues

0 Likes

#4

It seems to work by luck, only. I tried Exalt out with catalogs being promoted by the author. It does either say nothing or just “error parsing DTD”. No hint which one fails. Using xmllint.exe --catalogs --valid … on the same file, works fine. So I don’t see what it complains about. It can’t at least validate the catalog.xml files. The files in the packages test folder work properly on the other hand.

0 Likes

#5

I use, but not validate the xml/dtd/schema.It is an error at the beginning that it is not an error

For example. Where they said “If your file doesn’t validate, you can press ⌘ + Ctrl + E to jump to the
validation error if it’s not already in view” what key is “⌘” in the keyboard ?¿

Then, i try to install the catalogs, but it gives me error.

When i try to put:

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <nextCatalog catalog="catalogs/catalog.xml"/>
</catalog>

Regards

0 Likes

#6

I was able to resolve the issue with the message “error parsing DTD” today.

I am on a Windows 10 box which does not provide XML catalogs by default. Thus the environment variable XML_CATALOG_FILES does not exist. Exalt creates it upon startup but it seems too late. The lxml package being used for validation does not see these changes even though running os.environ["XML_CATALOG_FILES"] from ST’s console prints all the correct urls from Exalt.sublime-settings.

I set XML_CATALOG_FILES to the valid catalog file paths in Windows control panel, restarted and Exalt is working like a charm.

You can’t use the "xml_catalog_files": [] to set your catalog file paths.

I am not sure why, but I guess the reason is lxml being used by XPath and maybe some other packages, too, which might load lxml before Exalt is able to manipulate the environment variable.

0 Likes