Format change between Source XML and Masked XML
search cancel

Format change between Source XML and Masked XML

book

Article ID: 231498

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

When implementing XML files masking with Fast Data Masker, there is a xml's format change between source XML and masked XML. In masked XML, it includes the additional tab(s) at the beginning of several line's.

For Example:

Source XML:

<?xml version="1.0"?>
<catalog>
<book id="bk101">
<author>LastName, FirstName</author>
</book>
</catalog>

 

Masked XML includes tabs)before the tags like below( in this case before <book ..>, </book> and <author>):

<?xml version="1.0"?>
<catalog>
 <book id="bk101">
  <author>Masked Value</author>
 </book>
</catalog>

Are there any ways to trim these tabs?

Environment

Release : 4.X

Component :

Resolution

There are no options for trimming these tabs in FDM. And this is not a defect. 

It is very hard to add the feature for trimming in FDM, because the writing masked XML file feature are used from third party tool.

If the requirement is to trim these tabs then it is needed to modify the masked xml file by creating scripts or codes

Additional Information

If source XML is written without return codes like below:

<?xml version="1.0"?><catalog><book id="bk101"><author>LastName, FirstName</author></book></catalog>

Masked XML includes tabs before the tags(in this case before <book ..>, </book> and <author>) and returns after the closing tags(<?xml version="1.0"?>,  <catalog>, <book id="bk101"> ,</author>...) like below:

<?xml version="1.0"?>
<catalog>
 <book id="bk101">
  <author>Masked Value</author>
 </book>
</catalog>

The Masked XML(output from FDM) includes \n and \t characters.