XML/HTML response viewing
Are you missing a feature? Request its implementation here.
-
- Posts: 8
- Joined: Thu May 27, 2010 2:09 pm
XML/HTML response viewing
I do a lot of development on tools like Cocoon. The results of something (XML or HTML) must be viewed as the result of a web query. Like a REST query-response.
So what I do now is view the results in a webbrowser (IE or other), which works fine for small requests but is awkward for big XML files (over a few Mb). Also searching, analyzing and validating is not or poorly supported.
What I would very much like in oXygen is the abilty to open an editor tab with the response of a web query (aka a URL).
You can do this now but it has several drawbacks: It doesn't always recognize the mime type, so XML is often displayed as plain text and you cannot refresh easily.
So what would be nice is:
- Automatic detection of the mime type when you open a URL. If this is not possible take an educated guess (not very difficult: what would a file starting with <?xml...?> be???)
- Refresh option
- Option to change the editors interpretation of a file (e;g. something opened as XML but you want it to be interpreted as XHTML or text or vice versa) (would be a nice option anyway for any file!)
So what I do now is view the results in a webbrowser (IE or other), which works fine for small requests but is awkward for big XML files (over a few Mb). Also searching, analyzing and validating is not or poorly supported.
What I would very much like in oXygen is the abilty to open an editor tab with the response of a web query (aka a URL).
You can do this now but it has several drawbacks: It doesn't always recognize the mime type, so XML is often displayed as plain text and you cannot refresh easily.
So what would be nice is:
- Automatic detection of the mime type when you open a URL. If this is not possible take an educated guess (not very difficult: what would a file starting with <?xml...?> be???)
- Refresh option
- Option to change the editors interpretation of a file (e;g. something opened as XML but you want it to be interpreted as XHTML or text or vice versa) (would be a nice option anyway for any file!)
-
- Posts: 2886
- Joined: Tue May 17, 2005 4:01 pm
Re: XML/HTML response viewing
Hello,
Right now the type of the document is determined from the file extension from the URL. But we do plan to improve this and also look at the content if necessary.
If you want to refresh an editor you can always use the File -> Revert which reloads the selected editor.
If you want to change the editor for the current file(XML, XSL, text) you can currently do this only by closing and reopening the editor. The trick here is to add the file to the project(from the contextual menu on the editor tab) and then right click on it in the Project view and choose "Open as". Then you can simply reopen it in any editor you like.
I'm not sure if this is what you meant since XHTML is an XML file so it uses the same editor(XML), it's just that different DTD/schemas are detected.
Regards,
Adrian
Right now the type of the document is determined from the file extension from the URL. But we do plan to improve this and also look at the content if necessary.
If you want to refresh an editor you can always use the File -> Revert which reloads the selected editor.
If you want to change the editor for the current file(XML, XSL, text) you can currently do this only by closing and reopening the editor. The trick here is to add the file to the project(from the contextual menu on the editor tab) and then right click on it in the Project view and choose "Open as". Then you can simply reopen it in any editor you like.
I'm not sure if this is what you meant since XHTML is an XML file so it uses the same editor(XML), it's just that different DTD/schemas are detected.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 8
- Joined: Thu May 27, 2010 2:09 pm
Re: XML/HTML response viewing
Helps a bit, but is not exactly what I need. Actually its quite simple: Just view the result of a web query/URL as a R/O file with the right type. Press F5 to refresh.
What happens now is that it opens a temp file that it wants to save.
I do think some special handling for URL's would be nice.
BTW: When I add such a URL/File to the project as you suggest, the original URL is nowhere to be found (not in the properties anyway) and cannot be edited. Something that would be useful.
And there is a bug. I open the URL:
http://dev.txpp.nl:8888/TXPP_Core/evono ... 100525.zip
(You cant try, its a local URL on my system only).
Oxygen tries to open it as an archive because of the .zip extension at the end of the file parameter. It opens a tab called EvolutionNormalized.zip...
What happens now is that it opens a temp file that it wants to save.
I do think some special handling for URL's would be nice.
BTW: When I add such a URL/File to the project as you suggest, the original URL is nowhere to be found (not in the properties anyway) and cannot be edited. Something that would be useful.
And there is a bug. I open the URL:
http://dev.txpp.nl:8888/TXPP_Core/evono ... 100525.zip
(You cant try, its a local URL on my system only).
Oxygen tries to open it as an archive because of the .zip extension at the end of the file parameter. It opens a tab called EvolutionNormalized.zip...
-
- Posts: 8
- Joined: Thu May 27, 2010 2:09 pm
Re: XML/HTML response viewing
Ok, I just realize that are two ways to open a URL:
1) In the normal open dialog. This worsk but hides the URL from the properties and adds an extension.
2) From the open URL command. This presents the URL in the properties (however, R/O unfortunately).
It also does not use an extension but, strangely, does interpret the file as a zip file (the icon in the project tree is a zip file) (probably because the last parameter on the URL ends with .zip in this particular case).
1) In the normal open dialog. This worsk but hides the URL from the properties and adds an extension.
2) From the open URL command. This presents the URL in the properties (however, R/O unfortunately).
It also does not use an extension but, strangely, does interpret the file as a zip file (the icon in the project tree is a zip file) (probably because the last parameter on the URL ends with .zip in this particular case).
-
- Posts: 2886
- Joined: Tue May 17, 2005 4:01 pm
Re: XML/HTML response viewing
Hi,
I've added your requests to our issue tracking tool. For HTTP requests we could look at the content-type that is provided by the HTTP server in the HTTP header.
The URL added to the project isn't really meant to be modified since it's considered a sort of link. But is should show the URL in the properties and you should also be able to copy the URL by right clicking on it in the Project view and choosing "Copy location" from the contextual menu
Regarding the opening of URLs:
1) That's actually an unintended positive side-effect of the Windows open dialog. When you mention a URL in that dialog it actually is silently processed by Internet Explorer and then Oxygen receives the path of the result from IE's cache(Temporary Internet Files).
So this would be as if you would open the URL in IE yourself and then have Oxygen open the same document from IE's cache. It will get a filename and an extension that IE determined and it will be read-only.
2) This is Oxygen's way of interpreting URLs which is buggy because it doesn't look at the content-type, it only looks at what is assumed to be the file extension. In this case the zip file was just an argument.
Regards,
Adrian
Later Edit:
I forgot to ask, what version of Oxygen are you using right now?
Some of the behaviour you're describing(identifying that resource as a zip) should be different in 11.x. It should identify 'EvolutionNormalized' with no extension as the resource and it should always ask you to choose an editor when opening it.
I've added your requests to our issue tracking tool. For HTTP requests we could look at the content-type that is provided by the HTTP server in the HTTP header.
When does this happen? When you press F5?esiegel wrote:What happens now is that it opens a temp file that it wants to save.
The URL added to the project isn't really meant to be modified since it's considered a sort of link. But is should show the URL in the properties and you should also be able to copy the URL by right clicking on it in the Project view and choosing "Copy location" from the contextual menu
Regarding the opening of URLs:
1) That's actually an unintended positive side-effect of the Windows open dialog. When you mention a URL in that dialog it actually is silently processed by Internet Explorer and then Oxygen receives the path of the result from IE's cache(Temporary Internet Files).
So this would be as if you would open the URL in IE yourself and then have Oxygen open the same document from IE's cache. It will get a filename and an extension that IE determined and it will be read-only.
2) This is Oxygen's way of interpreting URLs which is buggy because it doesn't look at the content-type, it only looks at what is assumed to be the file extension. In this case the zip file was just an argument.
Regards,
Adrian
Later Edit:
I forgot to ask, what version of Oxygen are you using right now?
Some of the behaviour you're describing(identifying that resource as a zip) should be different in 11.x. It should identify 'EvolutionNormalized' with no extension as the resource and it should always ask you to choose an editor when opening it.
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service