[Tshwanelex-l] any way to automatically delete all empty nodes in entries?

Malcolm MacLeod malcolm.macleod at tshwanedje.com
Fri Nov 20 03:42:45 EST 2015


In the latest versions of the software you can also do.
1) Filter for the empty nodes
2) Click the advanced button in the filters
3) Filter element actions
4) Delete all matching nodes
As in previous advice make sure to backup before doing this just in
case.
- Malcolm
> Yes, you can do this with Search & Replace Tool (Search across entry
> as XML). You have to mark Regular expressions.
> Type in the search field: 
> <(Lang1|Lang2)[^>]+?Term=""[^>]+?></(Lang1|Lang2)>
> where Lang1 and Lang2 are languages of your termbase, e.g.
> (English|German).
> Leave Replace field empty and click Replace all. 
> 
> Optionally you can filter all entries with empty nodes (F5), and
> choose additional option Use filters in S&R (this should make
> replacement faster)
> This should work. Remember to backup your work before doing this.
> 
> Paweł
> 
> 
> 2015-11-18 21:20 GMT+01:00 Michael Beijer <michael at beijer.uk>:
> > Is there any way to automatically delete all empty nodes in an
> > entry? 
> > 
> > After importing a CSV file, a bunch of empty nodes were added,
> > which messed up the display of my dictionary somewhat. I can delete
> > them all manually (in Tree View: right-click and select "Delete",
> > or "Delete node only"), but was wondering if there is a way to do
> > it automatically.
> > 
> > I can find (and then tag) all entries with empty nodes via F3
> > search for: ^$
> > Just need to know how I can delete only the empty nodes.
> > 
> > Michael
> > ******************************************************
> > MICHAEL BEIJER
> > Dutch-English translator
> > Hastings, UK.
> > Tel. +44 (0)1424 430250
> > Mob. +44 (0)747 5771720
> > Email: michael at beijer.uk
> > Skype/Twitter: michaelbeijer
> > Beijer.uk (translation/terminology work)
> > ******************************************************
> > 
> > 
> > excuse any typos!>
> > _______________________________________________
> > Tshwanelex-l mailing list
> > Tshwanelex-l at mailman.yale.edu
> > http://mailman.yale.edu/mailman/listinfo/tshwanelex-l
> > 
> _______________________________________________
> Tshwanelex-l mailing list
> Tshwanelex-l at mailman.yale.edu
> http://mailman.yale.edu/mailman/listinfo/tshwanelex-l
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.yale.edu/pipermail/tshwanelex-l/attachments/20151120/e79c7dff/attachment.html 


More information about the Tshwanelex-l mailing list