walterf25 Expert Licensed User Longtime User May 2, 2014 #1 Hi Erel, i need to write an xml file that looks like the example below, i've seen your xmlbuilder library, but i see that you're adding attributes and elements, i'm not too familiar with xml so i really don't understand, anyhow here's how i would like my data to look, is it possible to do this with your library? if so can you post a small example please? Code: Copy <processorder> <order> <date>2014-11-13</date> <refnumber>RA-12233</refnumber> <account>FLO001</account> <email>[email protected]</email> <items> <item> <code>ITT001</code> <description>Fantastic Product</description> <quantity>10</quantity> <price>100.00</price> </item> </items> </order> </processorder> thanks, Walter
Hi Erel, i need to write an xml file that looks like the example below, i've seen your xmlbuilder library, but i see that you're adding attributes and elements, i'm not too familiar with xml so i really don't understand, anyhow here's how i would like my data to look, is it possible to do this with your library? if so can you post a small example please? Code: Copy <processorder> <order> <date>2014-11-13</date> <refnumber>RA-12233</refnumber> <account>FLO001</account> <email>[email protected]</email> <items> <item> <code>ITT001</code> <description>Fantastic Product</description> <quantity>10</quantity> <price>100.00</price> </item> </items> </order> </processorder> thanks, Walter
Erel B4X founder Staff member Licensed User Longtime User May 2, 2014 #2 This should help you get started: Code: Copy Dim xb As XMLBuilder xb = xb.create("processorder") xb = xb.e("order").e("date").text("2014-11-13").up xb = xb.e("refnumber").text("RA-123123").up Log(xb.asString) Upvote 0
This should help you get started: Code: Copy Dim xb As XMLBuilder xb = xb.create("processorder") xb = xb.e("order").e("date").text("2014-11-13").up xb = xb.e("refnumber").text("RA-123123").up Log(xb.asString)
Reviewnow Active Member Licensed User Longtime User May 2, 2014 #3 Walter, you can use SQLite and dbutils to do this for you see this post and example http://www.b4x.com/android/forum/th...abases-are-now-simple.8475/page-7#post-221218 Bill Upvote 0
Walter, you can use SQLite and dbutils to do this for you see this post and example http://www.b4x.com/android/forum/th...abases-are-now-simple.8475/page-7#post-221218 Bill