iOS Question Post XML asString2

Daniele Zanoni

Member
Licensed User
Longtime User
I'm converting B4A to B4i and now miss a property x.asString2(prop) :

B4X:
Dim x As XMLBuilder
Dim ssXml As String
Dim props As Map
x = x.create("App")
x = x.element("AppInfo") _
.element("IDM").text(IdMsgCounter).up() _
.elem ………..
.up()
props.Initialize
props.Put("{http://xml.apache.org/xslt}indent-amount", "4")
props.Put("indent", "yes")
ssXml = x.asString2(props)

Dim jobxml1 As HttpJob
jobxml1.Initialize("JOB111", Me)
jobxml1.PostString("http://mobile.poppo.net/index.php", ssXml)
jobxml1.GetRequest.SetContentEncoding("text/xml")


How to solve it ?
the instruction "x.asString2(props)" not works.
Daniele
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…