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: white, Hacker, petermad, Stefan2

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: 4124
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: 4124
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: 4124
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







 
Post Reply