B4J Library [B4X] Xml2Map - Simple way to parse XML documents - Erel    Jul 16, 2023   (51 reactions) Get("channel")
Dim items As List = channel.Get("item")
For Each item As Map In items
Dim title As String = item.Get("title")
Dim link As String = item.Get("link")
ListView1.AddSingleLine2(title, link)
Next
End Sub
Sub ListView1_ItemClick (Position As Int, Value As Object)
B4A Question XML Parsing without events? - Erel (first post)    Jan 31, 2016   (1 reaction) XmlSax is a Sax parser so it relies on events. XOM is a Dom parser. It raises a single event when the tree is ready.
You can implement the code in a class and reuse it. It doesn't matter whether the library raises events or not. B4J Question xml library - which one to use - Erel (first post)    Jun 06, 2021   (1 reaction) XMLBuilder (B4A + B4J) / iXmlBuilder (B4i) - generate XML documents
jXmlSax, XmlSax, iXmlSax - XML SAX parser.
Xml2Map - a b4xlib based on the two above components that parses and generates XML. This should be the default for parsing XML. B4A Question xmlsax help - Erel (first post)    Sep 19, 2016   (1 reaction) There is a single XML text element here. It starts with 5:32 and ends with "a b ".
You will need to use XmlSax to get the text element (should be simple) and then split it with Regex.Split. Use \s as the separator. B4A Tutorial [B4X] Text, Strings and Parsers - Erel    May 19, 2020   (20 reactions) This guide is relevant for B4A, B4i and B4J. There are all kinds of tools and libraries available for the different text based formats. The purpose of this guide is to organize the available resources. JSON JSON (B4X) library supports parsing and generating JSON strings. This online tool will hel B4A Question xmlsax - Erel (first post)    Jan 22, 2016 The xml files are not parsed in parallel as they are parsed by the main thread. The JobDone event will only be raised after the previous file was parsed.
Make sure to test your solution in release mode. It will be faster. B4A Tutorial XML Parsing with the XmlSax library - Erel    Jan 04, 2017   (6 reactions) It is simpler to parse XML with Xml2Map class: https://www.b4x.com/android/forum/threads/b4x-xml2map-simple-way-to-parse-xml-documents.74848/
The XmlSax library provides an XML Sax parser.
This parser sequentially reads the stream and raises events at the beginning and end of each element.
The deve B4J Question XMLSax Parser for B4J - Erel (first post)    Dec 24, 2018   (2 reactions) It is included as an internal library:
https://www.b4x.com/basic4android/images/SS-2018-12-24_17.43.23.png
Tip: Use Xml2Map. B4A Example B4Xgoodies_from_walt61 Online - AnandGupta (first post)    Jun 25, 2023   (2 reactions) B4J
XML
jXmlSaxEnhanced
The current jXmlSax library lacks the character event as discussed here: https://www.b4x.com/android/forum/t...ements-and-text-are-mixed.121134/#post-757245 I modified the jXmlSax library to add the characters event and renamed it as jXmlSaxEnhanced.
https://www.b4x..148641/
B4A Question Project files B4A 8.80 - DonManfred (first post)    Jan 04, 2019 It is XmlSax library. check the library in the library tab. It is included as internal library.
check okhttputils and okhttp in the libraries tab (they should be included in the installation as internal libraries) Page: 1   2   3   4   5   6   7   Powered by ColBERT |