B4J Library [B4X] Xml2Map - Simple way to parse XML documents - Erel    
Jul 16, 2023   
(51 reactions)   
tags: xml, Xml2Map, Erel.
That is the reason behind the Xml2Map class. It internally parses the XML document and returns a Map...)
If FirstTime Then
Dim xm As Xml2Map
xm.Initialize
xm.StripNamespaces = True '<...
link: - v1.01 - New StripNamespaces property. When set to true the namespaces from keys and attributes are...
link: Classes are packed as a b4xlib. If you are using an older version of B4X that doesn't support b4...
link: Please start a new thread for this....
Bug? LIBRARY XML2MAP - TILogistic    
Jul 14, 2023For @Erel there is a difference in XML to MAP conversion in B4J and B4A.
B4I I have not used it.
see post
https://www.b4x.com/android/forum/threads/how-to-call-asmx-web-service-in-b4a.148978/post...
link: .b4x.com/android/forum/threads/b4x-xml2map-simple-way-to-parse-xml-documents.74848/...
link: B4i does not handle namespaces (like B4a)....
link: XML2MAP:
Convert XML to Map
B4J:
mRoot.Get("soap:Envelope").As(Map).Get("soap:Body...
B4A Question XML2MAP and lists of maps - yo3ggx    
Dec 12, 2023.
Dim xm as XML2MAP
xm.Initialize
Dim Parsed as Map = xm.Parse(xmlstring)
Dim mapdev as Map = Parsed... a list of maps with 2 maps.
Unfortunately sometimes can be a single memory definition in the xml file...Hello,
Let's consider the following simple xml file as xmlstring.
<main>
<device...
link: How did I miss it when I looked in that thread.......
link: /b4x-xml2map-simple-way-to-parse-xml-documents.74848/...
B4J Question [Solved] Xml2Map to parse the feedburner quotes - not working - AnandGupta    
Apr 18, 2021Trying to use Xml2Map to parse the feedburner quotes (as an example from a post here), but not.../post-736285
' Don't use SaxParser directly.
' Use Xml2Map.
Dim mQuote As Map...
link:
You need to post the output of jg.ToPrettyString. This will be a json string.
Thanks a lot ?
&q...
link:
The feedburner gives a XML string. I did tried to put it in "https://b4x.com:51041/json/index...
link: media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type...
B4J Question [B4X] Xml2Map - read file xml - Roberto P.    
Apr 14, 2020Hi,
can anyone help me to read this simple xml file, Italian Cityes, that is making me waste a lot of time?
<?xml version="1.0" encoding="utf-8"?>
<Auxdata>...
link: As Xml2Map
xm.Initialize
Dim ParsedData As Map = xm.Parse(File.ReadString(File.DirApp &...
link:
but it works!
You don´t need the conversion to json if you know the structure of the Map...
link: Once you understand how to extract the data from the Map you no longer need the json step...
B4A Question xml2Map Parsing Error ? - Kriter (first post)    
May 12, 2024ty so much...
link: or
Dim ParseXML As Xml2Map
ParseXML.Initialize
ParseXML.StripNamespaces = True
Dim...
link:
</messages>
"$
Dim ParseXML As Xml2Map
ParseXML.Initialize...
link: Moved to the questions forum. Doesn't look like a bug....
B4A Question Xml2Map Error while parsing RSS - Pendrush    
Jan 16, 2017 item As Map In items
I have tested XML against various online validators everyone say it's...When I try to parse attached text.xml (RSS) I'm getting error:
java.lang.ClassCastException...
link: https://www.b4x.com/basic4android/images/SS-2017-01-17_08.50.14.png
Xml2Map works properly here...
link: the content of the only key in the result-map is not a map!
Try to find the problem in the parse...
link: Yes, but this code trigger error:
Dim rss As Map = ParsedData.Get("rss")
Dim channel...
B4J Question XML2MAP internal library update - Chris2 (first post)    
Sep 19, 2023Sorry, you're correct. It looks like Xml2Map 1.01 was released after the last B4J version. I guess I must have updated to it manually at some point.
I would presume that it will be included in...
link: Hi. I've got 9.80 as well and I was trying to avoid downloading the additional file in the hope ...
link: In my installation (B4J 9.80) Xml2Map is already v1.01.
If for some reason yours is not...
link: Hello
Will the XML2MAP internal library in B4J be updated to version 1.01? If so, when?
Regards...
B4J Library [Web] WebApiUtils - aeric    
Jul 7, 2026   
(12 reactions)
WebApiUtils.b4xlib
Depends on:
JavaObject
Json
jStringUtils
Xml2Map
Please report bugs if you found...Version : 6.99 (last version)
A utility class to simplify the development for server app using project template Pakai Server v6 (f.k.a. Web API Server).
GitHub:
https://github.com/pyhoon/WebApiUtils-B4J
HelpHandler, the API Documentation class is now included as a class template.
It depends on MiniHtml2, MiniCSS and MiniJS.
The HelpHandler is now using Bootstrap 5, HTMX and AlpineJS for...
B4A Question Xml2map - Chicao99 (first post)    
Oct 13, 2022
No. It parses well-formed xml files.
For xml to be well-formed it needs a single root node.
Dim fileData As String = $"<Root>${File.ReadString(File.DirAssets, "washer.xml")}</Root>"$
Dim xm As Xml2Map
xm.Initialize
Private ParsedData As Map = xm...
link: .ReadString(File.DirAssets, "washer.xml")}</Root>"$
Dim xm As Xml2Map
xm...
link: this one attached? I'm getting "org.apache.harmony.xml.ExpatParser$ParseException: At line 3...
Page: 1  
2  
3