pleonex / atom-autocomplete-xml

Autcomplete XML package for Atom editor.
https://atom.io/packages/autocomplete-xml
MIT License
13 stars 8 forks source link

autocomplete-xml is not working with local xsd #12

Closed angelinux closed 8 years ago

angelinux commented 8 years ago

I downloaded a mondrian4.xsd file from here and created a mondrian4-gasper.xml with the following content: <?xml version="1.0" encoding="UTF-8" ?> <Schema xmlns="http://www.w3schools.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="file:////Users/utente2/Projects/IGEST/mondrian/mondrian4.xsd"> </Schema> If I try to type <Phy inside Schema i get no suggestion. I am hoping to receive PhysicalSchema. What I am doing wrong? Consider that inside a browser I can see file:////Users/utente2/Projects/IGEST/mondrian/mondrian4.xsd . Please help me. Atom 1.5.3 autocomplete-xml 0.8.2 Mac OSX El capitan

pleonex commented 8 years ago

The XML namespace are not supported yet (#8). Looking at your XML it seems that you don't need them, can you try to replace xsi:schemaLocation to xsi:noNamespaceSchemaLocation?

AnderssonPeter commented 8 years ago

Sorry for posing a comment and removing it again, I managed to get it to work in visual studio instead so I had no need for autocomplete-xml any more.

pleonex commented 8 years ago

Duplicated issue #8.

pleonex commented 8 years ago

Ops, just seen that the original issue is because the file is specified with the prefix file:///.

pleonex commented 8 years ago

Note that your XSD was affected by #13 too. I have fixed both.