B4J Question Generating Xml from Map that has internal Maps

FrostCodes

Active Member
Licensed User
Longtime User
i need to generate xml from a map that contains other maps
i already tried Map2Xml its failing :(

this is the sample JSON... also this structure might change as i am writing a library so i don't know what might be supplied in the parameter

{
"vmjn46tr55mo2kah": {
"name": "Barker",
"gender": "Male",
"email": "demo@demo.demo"
},
"glt84f26blnzba9z": {
"name": "Sims",
"gender": "Male",
"email": "demo@demo.demo"
},
"ln54bg8d7yfp4ykr": {
"name": "Hayden",
"gender": "Male",
"email": "demo@demo.demo"
},
"dcc9p1mck64rg4ns": {
"name": "Nelson",
"gender": "Male",
"email": "demo@demo.demo"
},
"j5f0jdlut5qtl4tz": {
"name": "Drake",
"gender": "Male",
"email": "demo@demo.demo"
},
"lyf7tmme9jhadgkf": {
"name": "Downs",
"gender": "Male",
"email": "demo@demo.demo"
},
"d55anbjjynbfp8fh": {
"name": "Haley",
"gender": "Male",
"email": "demo@demo.demo"
},
"mvnkncfoa42h2jen": {
"name": "Ferrell",
"gender": "Male",
"email": "demo@demo.demo"
},
"2wcibl3y1dsqpexm": {
"name": "Potts",
"gender": "Male",
"email": "demo@demo.demo"
},
"ryangy0meap4f0d5": {
"name": "Bowman",
"gender": "Male",
"email": "demo@demo.demo"
},
"hb3nfdb2d26mpcsn": {
"name": "Reynolds",
"gender": "Male",
"email": "demo@demo.demo"
},
"z37mwdsijhsqxl84": {
"name": "Fisher",
"gender": "Male",
"email": "demo@demo.demo"
},
"facfq4a9beabhjjn": {
"name": "Peck",
"gender": "Male",
"email": "demo@demo.demo"
},
"fdgsff5bpmeiioxr": {
"name": "Newton",
"gender": "Male",
"email": "demo@demo.demo"
},
"7qs13ihbx51bk4mr": {
"name": "Lamb",
"gender": "Male",
"email": "demo@demo.demo"
},
"blcmsgbjour4ajtq": {
"name": "Spears",
"gender": "Male",
"email": "demo@demo.demo"
},
"s4qom2kkaqfgndjo": {
"name": "Montgomery",
"gender": "Male",
"email": "demo@demo.demo"
},
"eemsny83vgv5oppb": {
"name": "Hancock",
"gender": "Male",
"email": "demo@demo.demo"
},
"xppmgvp4kn8ij5ou": {
"name": "Steele",
"gender": "Male",
"email": "demo@demo.demo"
},
"35ka2ykhmwinpcge": {
"name": "Mayer",
"gender": "Male",
"email": "demo@demo.demo"
},
"hcjebo8ocyo8hxts": {
"name": "Mcbride",
"gender": "Male",
"email": "demo@demo.demo"
},
"7kkmfj7yso0b3c1f": {
"name": "Rivas",
"gender": "Male",
"email": "demo@demo.demo"
},
"9c6hq2ogn59qgb60": {
"name": "Black",
"gender": "Male",
"email": "demo@demo.demo"
},
"fe827argpcbvggst": {
"name": "Gates",
"gender": "Male",
"email": "demo@demo.demo"
},
"yzbfllh4ic22dpgo": {
"name": "Avery",
"gender": "Male",
"email": "demo@demo.demo"
},
"4twm1ye286axcl7a": {
"name": "Mcclure",
"gender": "Male",
"email": "demo@demo.demo"
},
"cb5j1rfdcbafsgjg": {
"name": "Glover",
"gender": "Male",
"email": "demo@demo.demo"
},
"woadfvdsaoic5r0l": {
"name": "Noble",
"gender": "Male",
"email": "demo@demo.demo"
},
"dmqbbwn12kdgrcki": {
"name": "Mccarthy",
"gender": "Male",
"email": "demo@demo.demo"
},
"5ngkogdkyd18j5iv": {
"name": "Tucker",
"gender": "Male",
"email": "demo@demo.demo"
},
"ys8zo0ddbmodxuei": {
"name": "Cannon",
"gender": "Male",
"email": "demo@demo.demo"
},
"gdam1lehl8obznis": {
"name": "Patel",
"gender": "Male",
"email": "demo@demo.demo"
},
"gwwvltshzl7kljl3": {
"name": "Holloway",
"gender": "Male",
"email": "demo@demo.demo"
},
"l9udnf7gm2lgvwu6": {
"name": "Mcconnell",
"gender": "Male",
"email": "demo@demo.demo"
},
"gichfsdcad87hb5i": {
"name": "Kramer",
"gender": "Male",
"email": "demo@demo.demo"
},
"afy44qndb7m6obgr": {
"name": "Villarreal",
"gender": "Male",
"email": "demo@demo.demo"
},
"a7mgmokh7paacote": {
"name": "Donovan",
"gender": "Male",
"email": "demo@demo.demo"
},
"ota1j8hu9kas5fgm": {
"name": "Acosta",
"gender": "Male",
"email": "demo@demo.demo"
},
"o2adz8xfhlaqwbxj": {
"name": "Hodge",
"gender": "Male",
"email": "demo@demo.demo"
},
"vqsbbjbyai0pjgma": {
"name": "Kramer",
"gender": "Male",
"email": "demo@demo.demo"
},
"9c0snd85xjjv1fog": {
"name": "Wong",
"gender": "Male",
"email": "demo@demo.demo"
},
"m5tnwkvhgnt2ohtp": {
"name": "Griffin",
"gender": "Male",
"email": "demo@demo.demo"
},
"ap69xcmpohna5icf": {
"name": "Graves",
"gender": "Male",
"email": "demo@demo.demo"
},
"ydkafcn0fw2v9qad": {
"name": "Norman",
"gender": "Male",
"email": "demo@demo.demo"
},
"jkcj7eszpgcc6z0l": {
"name": "Hubbard",
"gender": "Male",
"email": "demo@demo.demo"
},
"6erpxpzibalapoem": {
"name": "Cummings",
"gender": "Male",
"email": "demo@demo.demo"
},
"ex2zvzpigwmqzhro": {
"name": "Garrett",
"gender": "Male",
"email": "demo@demo.demo"
},
"ia0c9n1gfjklcaon": {
"name": "Cleveland",
"gender": "Male",
"email": "demo@demo.demo"
},
"eslnwelxt94mc8c6": {
"name": "Bennett",
"gender": "Male",
"email": "demo@demo.demo"
},
"nam0dk9s09v39b7k": {
"name": "Martin",
"gender": "Male",
"email": "demo@demo.demo"
}
}
 
Last edited:

Daestrum

Expert
Licensed User
Longtime User
If the email addresses are real in your sample data. you may want to edit them, as posting on a public forum may not be the best idea.
 
Upvote 0
Top