[Oct 2016] You can watch development of TLex and tlTerm on our informal live-streaming channel »

Knowledge Base : TshwaneDJe Software

The TshwaneDJe Knowledge Base contains a small collection of technical articles with information on specific issues to assist you with the configuration or use of our software. You can search through the Knowledge Base using the search box below, or by browsing the list of articles. We will continually be adding new articles over time. If you don't find a solution here, please also try the FAQ or other support resources.

Search for:

Remove Empty PCDATA 'Text' Nodes From a Document

The method outlined below basically uses an F3 search to find empty text nodes, applies the search 'as a filter', then applies a 'filter action' of 'delete node' to all nodes that match the search filter. (Please note that as of writing (2014-05) this procedure is not currently safe to run on ODBC databases, as the 'Filter element actions' are not yet ODBC-safe.)

NB: Before starting, make sure you save an extra backup copy of your database/document
Go to Search (F3)
Enter "^$" as the search text (without quotes)
Tick the 'Regular expression' option
Click the F3 'Fields' button to pop out the list of fields
Click the 'Clear all' button to untick all fields in the list of fields
Tick (only) the "[text]" checkbox in the list of fields
Click the "Search" button to perform the search (the search results window should now show some matches)
Click 'Filter +' in the search results window to apply the search 'as a filter'
Go to Filter (F5)
Click the "Advanced" button
Select the 'Filter element actions' sub-menu
Select the sub-menu item 'Delete all matching elements/nodes'
Double-check that the correct thing has happened (TIP: a handy way to do this is to use 'File/Compare merge' and compare the document against the same as-yet-unsaved document to see what changes have occurred.)
« Back to List of Knowledge Base Articles



The quick-help below shows you how to construct advanced search queries on the Knowledge Base.

Advanced Search Quick-help:
&ANDwindows & odbc
|ORwindows | odbc
"..."Exact phrase"cover flow"
_Single-character wildcardlinu_
%Multi-character wildcardactivat%
/(1-9)Within x words of one another, given order"windows odbc"/8
@(1-9)Within x words of one another, any order"windows odbc"@8
#XOR (find one or the other, but not both)mac # windows
^None of ...^mac

The Knowledge Base was created with TLex, and is published online and updated using the TLex Online Publishing System