Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed elements not in accordance with the schema #15

Open
nlips opened this issue Sep 10, 2019 · 6 comments
Open

Proposed elements not in accordance with the schema #15

nlips opened this issue Sep 10, 2019 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@nlips
Copy link

nlips commented Sep 10, 2019

My schema is very simple (see schema.xsd and data.xml in attached zip file)

  • I define a <Root> element.
  • <Root> can contains (only) <RootChild_A> and <RootChild_B>
  • <RootChild_A> can contains (only) <AChild>
  • <RootChild_B> can contains (only) <BChild>

Within the <Root> element xml-complete suggests to insert all elements (Root, AChild and BChild shouldn't appear here) :

xmlComplete

The Visual Studio XML editor only suggests valid elements :

visualstudio

@rogalmic
Copy link
Owner

It is implemented like that for now, always proposing all elements. Will need to find some time to make it more accurate...

@rogalmic rogalmic added the help wanted Extra attention is needed label Sep 10, 2019
@AndersMad
Copy link
Contributor

I have made that - will get back to you asap @rogalmic

@DjTrilogic
Copy link

+1 That would be really a great feature !

@AndersMad
Copy link
Contributor

image

I also added cross import, ns mixing with validation on elements and attributes, snippets per ns in schema settings etc.. So < under table only shows tr etc. for that ns and other places a mix of no ns and other ns's.. want(ed) to add completion of attributes for enums - but bbl asap..

@AndersMad
Copy link
Contributor

I just added auto-complete on attribute values too - booleans or enums with documentation.. to test later when i get the time before submitting

image

@rogalmic
Copy link
Owner

rogalmic commented Sep 11, 2019

@AndersMad: Excellent! I was just thinking that this will be next big thing, and there it is :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants