# XfilesTree changes prefix containing a colon to underline?

**URL:** <https://clarionhub.com/t/xfilestree-changes-prefix-containing-a-colon-to-underline/7578>\
**Category:** questions\
**Tags:** xfiles, xml\
**Created:** [October 19, 2024, 2:53am UTC](https://clarionhub.com/t/xfilestree-changes-prefix-containing-a-colon-to-underline/7578 "2024-10-19T02:53:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulMacFarlane](https://clarionhub.com/user_avatar/clarionhub.com/paulmacfarlane/32/4804_2.png) [@PaulMacFarlane](https://clarionhub.com/u/PaulMacFarlane)\
**Post date:** [October 19, 2024, 2:53am UTC](https://clarionhub.com/t/xfilestree-changes-prefix-containing-a-colon-to-underline/7578/1 "2024-10-19T02:53:18Z")

</div>

Here is the declaration (generated by the code generator on Capesofts site)

n1:vendorgrp Group,Name('n1:VendorGrp')  
n1:foreignentityind Long,Name('n1:ForeignEntityInd')  
n1:businessname Group,Name('n1:BusinessName')  
n1:businessnameline1txt STRING(255),Name('n1:BusinessNameLine1Txt')  
n1:businessnameline2txt STRING(255),Name('n1:BusinessNameLine2Txt')  
End  
End

Here is the resulting XML

n1:VendorGrp  
\<n1\_ForeignEntityInd\>0\</n1\_ForeignEntityInd\>  
\<n1\_BusinessName\>  
\<n1\_BusinessNameLine1Txt\>Paul MacFarlane\</n1\_BusinessNameLine1Txt\>  
\<n1\_BusinessNameLine2Txt\>American Riviera Software\</n1\_BusinessNameLine2Txt\>  
\</n1\_BusinessName\>  
\</n1:VendorGrp\>

How do I get the n1\_ to stay n1: ?

There is a setting method called DontReplaceColons(1) but it applies to the xfiles not xFilesTree

---

<div class="post-metadata">

**Author:** ![Bruce](https://clarionhub.com/letter_avatar_proxy/v4/letter/b/ccd318/32.png) [@Bruce](https://clarionhub.com/u/Bruce)\
**Post date:** [October 19, 2024, 6:15am UTC](https://clarionhub.com/t/xfilestree-changes-prefix-containing-a-colon-to-underline/7578/2 "2024-10-19T06:15:57Z")

</div>

xml.SetReplaceChars(false)

---

<div class="post-metadata">

**Author:** ![PaulMacFarlane](https://clarionhub.com/user_avatar/clarionhub.com/paulmacfarlane/32/4804_2.png) [@PaulMacFarlane](https://clarionhub.com/u/PaulMacFarlane)\
**Post date:** [October 19, 2024, 6:23am UTC](https://clarionhub.com/t/xfilestree-changes-prefix-containing-a-colon-to-underline/7578/3 "2024-10-19T06:23:33Z")

</div>

Is that undocumented? I can’t find it - but I’ll try it !
