openui5vscodeTypescriptTools icon indicating copy to clipboard operation
openui5vscodeTypescriptTools copied to clipboard

Importing new custom XSD files for XML intelliscense and guidance

Open cmwright1981 opened this issue 7 years ago • 1 comments
trafficstars

Hi,

I have recently started looking at your vscode extension as I am really impressed with the XML Support it provides. The main features I am looking at is verifying the XML syntax is correct, but also to provide intelliscense and guidance using annotations/tool tips while the author is creating the xml.

I have a basic strict XML file that we often use, I have created an XSD for the XML and successfully imported it into the schemastorage. However I can't seem to get this to work in my XML files, are you able to give any input in this area, on where I may have gone wrong?

Thanks,

Chris

cmwright1981 avatar Jul 14 '18 21:07 cmwright1981

Hi @cmwright1981,

sorry for the delay, I am currently on vacation. To be honest I planned to replace the xml parser with a much better one I wrote, which has an architecture and a better and more verbose API. I checked my repos and it seems I did not publish it by now. It's written in plain ts, so no java or c# or anything else is needed. It should also be possible to use a different source than xsd (like typescript classes or json schemas or sth. like that. But I did not have time sind spring to implement it thoroughly. So if you are interested in helping develop a plain XML Linter in TS/JS then I'll upload the files and send you the link.

So back to your questio: Have you checked the log output. Maybe there is some hint why it might not work. Otherwise I would recommend to fork this repo, check it out and run in in debug mode. Then you can check if the xsd file is really loaded correctly. Maybe it cannot parse your xsd file or it encounters some circular references. That happens to me quite a lot. PR is very welcome.

Regards

apazureck avatar Jul 20 '18 12:07 apazureck