XfilesTree changes prefix containing a colon to underline?

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

xml.SetReplaceChars(false)

1 Like

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