- This topic has 23 replies, 6 voices, and was last updated 20 years, 4 months ago by jnials.
-
AuthorPosts
-
Scott RyanMemberI would like to see some sort of formatter or pretty printer for the XML files. Our config files get pretty ugly and we use HTML tidy to clean them up. I would like to see something similar in MyEclipse.
Scott Ryan
Scott AndersonParticipantScott,
That one is an open enhancement that we’re hoping to get into 2.8.
Ivar VasaraMember@scott@theryansplace.com wrote:
I would like to see some sort of formatter or pretty printer for the XML files. Our config files get pretty ugly and we use HTML tidy to clean them up. I would like to see something similar in MyEclipse
I’ll second the request.. that’d be great.
Riyad KallaMemberUntil formatting is in, as a hack you can copy-paste the contents into a JSP file, format it, then copy/paste it back into your XML file.
Definately suboptimal, but for the users that don’t have a formatting plugin installed, and just have to have it, this works fine.
mogarickMember1+
i’d like to see this in the next release. 🙂i’d like to know if the struts-config editor could have this formating feature too.
greetings.
jnialsMemberI’d like to be able to see this in the next release as well. I am using docbook xml for our documentation, and would like to be able to 1) Format, and 2) validate.
Riyad KallaMemberjnials,
You have been able to validate XML for a while now… are you not seeing this when using our XML Editor?
jnialsMemberI am not seeing it. I just upgraded to the 2.8 Beta running on Eclipse 3.0rc1.
I see the options in the preferences file, but no option to validate, either in the right click menus or on the pulldowns.
-Jon
Riyad KallaMemberAre you sure you are opening the XML files with our editor? Right click on your XML file, go to Open With, and select “MyEclipse XML Editor”
jnialsMemberYes, I am sure. Just did it again to confirm.
Tried an html file to see if they worked correctly. They do.
-Jon
Riyad KallaMemberJon,
When you said “I just upgraded to the 2.8 Beta running on Eclipse 3.0rc1.” you meant 3.8 Beta right? Also can you paste any exceptions from your log file here for us to look at?
Riyad KallaMemberJon,
I finally got to the bottom of this. THe manual validate is incorrectly tied to the Auotmatic Validation setting in the XML Editor > Configuration options in MyEclipse preferences. If you change this to “All” then you will see the Validate option everywhere.Sorry about this mix up, hopefully we can get these fixed soon.
jnialsMember@support-rkalla wrote:
Jon,
I finally got to the bottom of this. THe manual validate is incorrectly tied to the Auotmatic Validation setting in the XML Editor > Configuration options in MyEclipse preferences. If you change this to “All” then you will see the Validate option everywhere.Sorry about this mix up, hopefully we can get these fixed soon.
Hope so. This still doesn’t work. Here is how I can easily recreate it (all under linux) and yes, I am running 3.8 beta with 3.0 RC1
Create a simple project with no files. Import an existing xml file. Or create one from scratch. Right click the file name in the menu, make sure it is opening with the MyEclipse XML Editor. You will discover that when you pull down the MyEclipse menu item, then you do not get options to validate, or tidy the file as you would with HTML or XHTML. I get a single greyed out entry of “Add WebProject Capabilities..”
Hopefully I can stop using jedit soon for my xml files.
-Jon
Riyad KallaMemberJon,
Navigate to Window > Preferences > MyEclipse > Editors > XML Editor > Configuration and under the “validation” Settings change it to “All” instead of “Deployment descriptors”, you should now have a validate option in your context menu.
jnialsMember@support-rkalla wrote:
Jon,
Navigate to Window > Preferences > MyEclipse > Editors > XML Editor > Configuration and under the “validation” Settings change it to “All” instead of “Deployment descriptors”, you should now have a validate option in your context menu.Been there, done that. Doesn’t work.
That’s what I have been telling you. I followed the instructions.
-Jon
-
AuthorPosts