Comments (12)
Thanks very much for the additional details and the video, very clear. Is it possible to zip the xml and xsd files and send them to me? If you don't want to share them publicly here you can email them to me - my email is clovett @ the company I work for .com.
from xmlnotepad.
Hi, no problem, thanks for getting back to me. I will move everything to .NET 4.8 then, it's always good to keep updated to the newer versions anyway. It will take a little while since I want to also figure out how to make the installer get .NET 4.8 for folks that don't already have it, so they get a smooth upgrade experience.
from xmlnotepad.
Hi Erin, thanks for the bug report, I'm investigating, but everything seems to work fine when I use my sample schemas (basket.xsd and employee.xsd). Can you share the exact repro steps:
- what xml file is open (or is it blank)
- what schemas are you trying to associate using the schema dialog.
- when does the error show up, immediately or when you close the dialog?
from xmlnotepad.
Hey Chris,
It does it when trying to create a new file or working with an already existing file. There is only 1 schema I'm trying to use. It worked previously. I added the schema and the intellisense guided me well.
Errors show up when trying to add a scema. I made a screencast.
I'm thinking of contacting our Corp Help Desk to unistall the app, then I'll use the one-click installer to install it again. Maybe that would help?
UPDATE: XML notepad was uninstalled and reinstalled. No change.
With XML Notepad open and a xml doc open, I reset the Options/ Settings back to default. I got a new error and I'm attaching the screenshot for it. I've no clue what any of it means.
2023-09-29_13-20-08.mp4
from xmlnotepad.
The stack trace you included is very helpful -- I see a lot of chatter online about this being a bug in the .NET Framework version that this app is built on. Your stack includes a mouse event which is the trigger for this particular bug. So one thing you could try is to move the mouse completely away from the schema dialog, and use only the key board to add a schema by doing this:
- Alt+V - to bring up the View menu
- m - to select schema dialog
- Alt+F - to bring up the File menu on the schema dialog
- a - to select "Add schemas"
- type in the file name in the open file dialog and press enter
All while the mouse is very far away from the schema dialog. Let me know if this works for you, thanks.
from xmlnotepad.
And the reason I cannot repro this issue might be because I'm using a newer version of .NET 4.0. Can you make sure you have .NET 4.7.2 installed from here:
https://dotnet.microsoft.com/en-us/download/dotnet-framework/net472
Use the Download .NET Framework 4.7.2 Runtime link.
I can also move XML Notepad to .NET 4.8 easily to see if that fixes it for you.
PS: The .NET Framework is a platform for building apps that XML Notepad uses.
from xmlnotepad.
Hey Chris,
The company controls our software intalls for everything. I found some info online that guided me to find the .net version I have. I took a screenshot. If I'm looking at this correctly, there are a few .net versions I have installed by looking at client and version. By any chance, did anything change that would have impacted the issue about 2-3 updates ago? That was the last time I was able to build a XML file in XML Notepad with a schema. I've started using this more and wanted to train some employees on it, too.
I tried the instructions for the adding the schema via keys, with my cursor far from the schema dialogue box. Didn't work. I attached the screencast.
I'm going to send you the zipped xml file and zipped xsd. It will be coming from my work email but will have my name. I'm guessing at the company you work for, but I did a little bit of reading and found you online.
I will contact our Corporate Help Desk Monday to get them to download .net 4.72 on Monday. It required admin level permission in our organization. (I don't have that. I'm a peon. lol)
Thank you for your help!
2023-09-29_19-08-12.mp4
from xmlnotepad.
Ok, wow, super helpful again, thanks so much. This I think confirms we are on different versions of .NET 4.0, my version is:
Version REG_SZ 4.8.09032
Which means I'm on .NET 4.8. So if you could get your admins to install .NET 4.8 that would be perfect.
I also found the problem in your schema as to why it was not loading in the Schema dialog, line 470 has this:
<xs:complexType name="CommunicationType" Attribute="">
and that Attribute attribute is not allowed. Removing this so it looks like this:
<xs:complexType name="CommunicationType">
Solves the problem and the schema loads and the intellisense works. It was a bug in XML Notepad that it did not show you this error which I have also fixed.
Attached is a new installer for XML Notepad that is built for .NET 4.8 just to see if that fixes the issue also.
This version also has a new feature which is when you start with a new empty XML file, add a schema then start adding a new root XML element you will now get some intellisense from those schemas showing allowed root elements like this:
from xmlnotepad.
Wow Chris. You're amazing. Truly.
I'm going to let our vendor whose SOAP WS we are using know they have an error in their schema. They provided that file. I had found a couple other errors previously as well.
I will get our help desk involved to install 4.8 and the XML Notepad installer you provided. I think I can have them do it possibly Saturday. I believe they're support is 24/7 at work.
I'll update you as soon as I can on the outcomes.
Thank you so very much for being incredibly responsive and so fast to troubleshoot and resolve this. I'm serioulsy impressed and I don't impress easily. I have obsurdly high standards. lol
from xmlnotepad.
Hey Chris!
I'm sorry it has taken this long to get back to you. I have been waiting on Desktop Support for the installs.
Regarding .Net 4.7.2, the company has it blocked from being installed due to security. I asked what that meant and the T2 tech didn't know. He said it could be anything from being buggy to a vulnerability to incompatibility with BW's stack. No one here at BW can have this version. That's a few thousand units worlwide that don't have .Net 4.7.2.
XML Notepad v2.9.0.7 that you moved to .Net 4.8 works marvelously. The added intellisense features are great, too. There are no errors, I can add schemas both ways now, and everything is very smooth.
Thank you for your help on this! This tool is my go to for code review and writing files for SOAP.
from xmlnotepad.
Thanks!
I'm not sure if I should close this issue or not since it is resolved now? I'll let you do the honors if you like. lol
from xmlnotepad.
Release 2.9.0.7 is now available.
from xmlnotepad.
Related Issues (20)
- Function to print files HOT 1
- Error Message after SEARCHING and drag&drop of a new file HOT 1
- Unhandled exception on XML file load of XML document known to accepted by target entity HOT 5
- electronic invoice in UBL format takes long time to open (several minutes) HOT 1
- Setup: used folders on Win 10 HOT 3
- Question: missing line-break when using XSLT identity transformation HOT 6
- File - New: Keeps the current file HOT 3
- Multiple instances resets the settings HOT 4
- Sugg: Clear message for long XSLT-Transform HOT 3
- Reload of a "not loaded" file HOT 2
- 'Newtonsoft' could not be found for \Application.csproj HOT 6
- "XML Reload" removes loaded XSLT HOT 4
- Crashes since 2.9.0.9 HOT 7
- XSLT - merging two not opened files
- Error Installing on another drive HOT 2
- Feature Request - Ability to open JSON files that begin with an array HOT 2
- Feature request - Schematron validation HOT 3
- Feature request - User Templates of Prepopulated subnodes
- Error message when opening SVG files HOT 5
- Feature Request - Keyboard shortcut to comment/uncomment nodes HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmlnotepad.