Bug? FALSE POSITIVE - NO PROBLEM IN THE LAST B4A EXE - asales (first post)    Jan 28, 2023   (4 reactions) Sax (ophone) sites? 138627 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 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 Library JTidy library - Convert HTML pages to XML - Erel    Apr 08, 2018   (10 reactions) This library wraps JTidy open source project.
It is supported by B4A and B4J.
It allows you to convert a HTML page to XHTML page. XHTML can be parsed with a XML parser.
This approach is better than trying to parse HTML with regular expressions.
Usage is simple:
Sub Process_Globals
Dim sax As B4A Question How right to parse a XML element - Erel (first post)    May 04, 2016   (2 reactions) Complete example: Sub Process_Globals Private sax As SaxParser Type Record (Name As String, Rating As Int) Private Records As List End Sub Sub Globals End Sub Sub Activity_Create(FirstTime As Boolean) If FirstTime Then Records.Initialize sax.Initialize Dim in As Inp B4A Question SaxParser with Wait For - Erel (first post)    May 13, 2020   (1 reaction) Don't use SaxParser directly.
Use Xml2Map. B4A Question RSS - XML parser from dynamic page - Erel (first post)    Nov 05, 2019   (1 reaction) In most cases it is simpler to use Xml2Map instead of the sax parser. B4J Question Validate XML using a XSD / Json using Schema? - Daestrum (first post)    May 08, 2019   (9 reactions) If there is an error in the xml you get a log message like
org.xml.sax.SAXParseException; systemId: file:/c:/temp/Employee.xml; lineNumber: 13; columnNumber: 31; cvc-datatype-valid.1.2.1: 'A1999' is not a valid value for 'integer'.
which pretty much tells you exactly what is wrong and where.
Hope B4A Library BasicLib interpreter and BasicIDE development IDE revisited - JohnC (first post)    Jan 12, 2019 Cool! I remember a company called Sax that did something similar with VB. B4A Question Parseing web pages (the DOM) - Albert Kallal (first post)    Mar 23, 2021 But, of course they not "really" the same thing!
Even to this day, when I view a web page "as source"? I cut + paste that into a xml viewer (Visual Studio) - and that process has always worked well.
Now of course - chalk this up to me learning - not YET having landed on a better road and approach. Page: 1   2   3   4   5   6   7   Powered by ColBERT |