Macro files

The file generated by dtSearch Desktop/Network is always called macros.xml and is stored in the Users private directory. The file encoding is UTF-8.

 

Whenever you select a macro file from the drop-down list in User Thesaurus Plus and then press the Update button it generates a macros.xml file and copies it to the target path you have set; normally this will be in the dtSearch Users private directory as above.

 

All macro files imported into User Thesaurus Plus are prefixed with UT_ , example UT_sample_macros.xml and saved in your My Documents folder under User Thesaurus Plus\Data\Macros.

 

Example:

 

Macros which contain more than one line are saved within CDATA tags as below:

 

UT_sample_macros_1.xml file:

 

<?xml version="1.0" encoding="utf-8"?>

<!-- Generated by User Thesaurus Plus : 2012-11-30 01:00:00 -->

<dtSearchMacros>

  <Item>

    <Name>IRC</Name>

    <Expansion><![CDATA["internal revenue code"

"internet relay chat"

"international rescue committee"

"intercontinental rally challenge"]]></Expansion>

  </Item>

  <Item>

    <Name>UN</Name>

    <Expansion>"United Nations"</Expansion>

  </Item>

</dtSearchMacros>

 

Macros which contain only one line are saved as below:

 

UT_sample_macros_2.xml file:

 

<?xml version="1.0" encoding="utf-8"?>

<!-- Generated by User Thesaurus Plus : 2012-11-30 01:00:00 -->

<dtSearchMacros>

  <Item>

    <Name>IRC</Name>

    <Expansion>"internal revenue code"</Expansion>

  </Item>

  <Item>

    <Name>UN</Name>

    <Expansion>"United Nations"</Expansion>

  </Item>

</dtSearchMacros>

 

 

Files generated in User Thesaurus Plus when using File|New > Macro file... contain a time stamp to distinguish them from files generated by dtSearch.

 

Example:  

 

<?xml version="1.0" encoding="UTF-8"?>

<!-- Generated by User Thesaurus Plus : 2012-11-30 01:00:00 -->

<dtSearchMacros />