Android Question XMLBuilder question

imbault

Well-Known Member
Licensed User
Longtime User
I use XMLBuider, a great lib, no problem :
B4X:
    Dim x As XMLBuilder
    x = x.create("root")

    x = x.element("ContentType").text(ContentType).up()
    x = x.element("Encoding").text(Encoding).up()
   '....
   '....
   '....
 
Dim props As Map
    props.Initialize
    props.Put("{http://xml.apache.org/xslt}indent-amount", "2")
    props.Put("indent", "yes")
 
    Log(x.asString2(props))
    File.WriteString(File.DirApp, cFileConvXML, x.asString2(props))

So I get :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<root>
<ContentType>text/xml</ContentType>
<Encoding>utf-8</Encoding>
</root>

But the customer wants me to remove the line :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>

Any idea ?

Thanks


Patrick
 
Top