Are there any XML plugin (content .WDX)?
Moderators: Hacker, petermad, Stefan2, white
Are there any XML plugin (content .WDX)?
I'm looking for an XML plugin where it would be possible to add a Custom Columns Mode where XML values within tags could be displayed. Does anyone know if there is such a plugin for Total Commander?
I think it would be very useful to have a custom columns mode where I could open a folder with multiple XML-files, and see the value for a certain XML tag amongst the usual columns (file name, size, date, etc.).
Very grateful for any replies to this matter. The reason why I looking for this plugin is that I would use that custom column, and use the TC-function "Copy to Clipboard with all details" and then create a list with the XML values, which I would then use in the TC Multi-Rename Tool to rename all XML files to file names based on value in a certain XML tag.
I think it would be very useful to have a custom columns mode where I could open a folder with multiple XML-files, and see the value for a certain XML tag amongst the usual columns (file name, size, date, etc.).
Very grateful for any replies to this matter. The reason why I looking for this plugin is that I would use that custom column, and use the TC-function "Copy to Clipboard with all details" and then create a list with the XML values, which I would then use in the TC Multi-Rename Tool to rename all XML files to file names based on value in a certain XML tag.
2thew42
Try http://totalcmd.net/plugring/anyXML.html, but I don't know anything about this plugin and how it works....
Try http://totalcmd.net/plugring/anyXML.html, but I don't know anything about this plugin and how it works....
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
Indeed, you could give anyXML a try.
Additionally, if your XML element (tag) in question is "unique", i.e. it will only appear once in the file or is at least surrounded by unique elements, and if you don't mind using Regular Expressions, then you could use my PCREsearch plug-in.
An expression could be
Replace String
$1
[x]First match string output
If you could describe your XML structure in more detail, I might provide you with a fitting expression for your task.
And BTW: no need to use "Copy to Clipboard with all details", as you can use WDX fields in MRT (Multi-Rename Tool) directly in the rename mask.
Additionally, if your XML element (tag) in question is "unique", i.e. it will only appear once in the file or is at least surrounded by unique elements, and if you don't mind using Regular Expressions, then you could use my PCREsearch plug-in.
An expression could be
Code: Select all
<unique_tag>([^<]+)</unique_tag>
$1
[x]First match string output
If you could describe your XML structure in more detail, I might provide you with a fitting expression for your task.
And BTW: no need to use "Copy to Clipboard with all details", as you can use WDX fields in MRT (Multi-Rename Tool) directly in the rename mask.
TC plugins: PCREsearch and RegXtract
AnyXML might work but it's 32-bit only.
I've been using AnyCmd with XMLStarlet. Learning the syntax of XMLStarlet can come in handy for other scripted XML querying or editing.
WinScript Advanced with PowerShell should work too.
For simple XML I guess PCREsearch might be easier as mentioned before.
I've been using AnyCmd with XMLStarlet. Learning the syntax of XMLStarlet can come in handy for other scripted XML querying or editing.
WinScript Advanced with PowerShell should work too.
For simple XML I guess PCREsearch might be easier as mentioned before.
Do you use the default PCREsearch configuration (besides the added search field)? XML files are filtered with the xdoc2txt.exe tool by default, which might cripple the output and therefore might miss a match. Just start PCREsearchConfig.exe and remove the .xml filter from the list and restart TC (or reload the plug-in).silencer wrote:The field output is given when the file is .txt, but not when the file has xml extension. How can i get this to work for xml files? (or only xml files is even better)
TC plugins: PCREsearch and RegXtract