Dim props As Map
props.Initialize
props.Put("{http://xml.apache.org/xslt}indent-amount", "4")
props.Put("indent", "yes")
Log(x.asString2(props))
Dim sax As String
Dim Prog As Int
Prog = CursorFBill.GetInt("Doc_Number")
sax = "BR101_" & NumberFormat2(Prog,5,0,0,False) & ".xml"
File.WriteString(File.DirApp, sax, x.asString2(props))
If File.Exists(File.DirApp,sax ) Then Log("exists")