xmltab: plugin to view XML files

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
little-brother
Junior Member
Junior Member
Posts: 43
Joined: 2021-09-27, 10:27 UTC

xmltab: plugin to view XML files

Post by *little-brother »

View XML file as a table or as a highlighted text depending on XML data.

Image: https://raw.githubusercontent.com/little-brother/xmltab-wlx/main/xmltab.png

Features
  • Mixed tree and grid views
  • Column filters
  • Sort data by column click
  • Beautifier and highlighting
  • Supports ANSI, UTF8 and UTF16
  • Open source
Project page - https://github.com/little-brother/xmltab-wlx
Download link - https://github.com/little-brother/xmltab-wlx/releases/latest/download/xmltab.zip
totalcmd.net - http://totalcmd.net/plugring/xmltab.html
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: xmltab: plugin to view XML files

Post by *Stefan2 »

2little-brother

Nice and nifty plugin, I am thinking I will use that to view some XMLs in a more structured way and also detect syntax errors more quickly.



Just a few notes from my testings (no bug report, I can still work with that):


- I noted that xmltab doesn't react on F2 (reload)?

- I found that comments are shown as generic text "#COMMENT" only?
In the more outer tags the comments is displayed, but not in place, there is only shown "#COMMENT"

Code: Select all

    <outer> <!-- my comment 1 here -->
	  <inner>
		<task>"ie.exe"</task>
      </inner>
	</outer>

    <outer> 
    <!-- my comment 2 here -->
       <inner>
         <cmdline>"Win.exe"</cmdline>
         <param>"%abc.log"</param>
       </inner>
    </outer>



Thank you for providing us your plugin.

 
little-brother
Junior Member
Junior Member
Posts: 43
Joined: 2021-09-27, 10:27 UTC

Re: xmltab: plugin to view XML files

Post by *little-brother »

1. I forgot about F2. It will be implemented in the next version.
2. You can get #COMMENT text through a parent node.
Image: https://i.ibb.co/NWJ7LQD/xml.png

Perhaps, I should display the text when cursor stay on #COMMENT node
Image: https://i.ibb.co/mzdRRzF/xml2.png
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: xmltab: plugin to view XML files

Post by *Stefan2 »

little-brother wrote: 2021-10-27, 19:34 UTC

Perhaps, I should display the text when cursor stay on #COMMENT node
Image: https://i.ibb.co/mzdRRzF/xml2.png

Yes, that's what I had missed.


I see now my comment are shown in parent node and also if I click at "#COMMENT", but in Text -tab only, and I missed in in Grid -tab.
It's just that I thought it should be show (in Grid) if I click on "#COMMENT", and I saw nothing there and was wondering if this is a missed feature.

No big deal, thanks for considering it.


 
little-brother
Junior Member
Junior Member
Posts: 43
Joined: 2021-09-27, 10:27 UTC

Re: xmltab: plugin to view XML files

Post by *little-brother »

Stefan2, today I released a new version. I didn't implement F2 because it looks like a duck tape. But you can use N or P keys to reload file if you didn't mark a group of files.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: xmltab: plugin to view XML files

Post by *Stefan2 »

2little-brother

Thank you, I will use that version now and check it out     :thumbsup:   :D







 
flizebogen
Junior Member
Junior Member
Posts: 52
Joined: 2003-06-25, 11:21 UTC

Re: xmltab: plugin to view XML files

Post by *flizebogen »

Nice Plugin. Unfortunately, it doesn't work very well on 4K displays. Could you please change it that os display scaling is taken is used?

Thank you
User avatar
AntonyD
Power Member
Power Member
Posts: 1636
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: xmltab: plugin to view XML files

Post by *AntonyD »

it doesn't work very well
Instead of a dozen words, it's better to have one screenshot so that the author can understand much more easily
what problem is being discussed.
This is because he likely does not have access to a similar display and it will be difficult to grasp the extent of the problem...
#146217 personal license
flizebogen
Junior Member
Junior Member
Posts: 52
Joined: 2003-06-25, 11:21 UTC

Re: xmltab: plugin to view XML files

Post by *flizebogen »

A Screenshot doesnt help. But it is easy to reproduce.

Use the Plugin on zoom scale 100%, than change the zoom factor in the os display settings and use the plugin again. You will see that the display of the plugin window is unchanged.

If it would that the zoom factor in account, than in my case the size of all of its content would double.
Post Reply