B4J Library [B4X] Xml2Map - Simple way to parse XML documents - Erel    
Jul 16, 2023   
(51 reactions)Nobody likes to parse XML.
Parsing JSON is simple and fun. Parsing XML is tedious and boring.
That is the reason behind the Xml2Map class. It internally parses the XML document and returns a Map...: https://www.b4x.com/android/forum/threads/xml-parsing-with-the-xmlsax-library.6866/#content
We...)
If FirstTime Then
Dim xm As Xml2Map
xm.Initialize
xm.StripNamespaces = True '<--- new in v1.01
ParsedData = xm.Parse(File.ReadString(File.DirAssets, "rss.xml"...
B4A Library XmlLayoutBuilder - Load Xml layouts - Erel    
Feb 20, 2020   
(25 reactions) create UI elements by code.
This library adds a third option which is to use xml files to define... Activity_Create(FirstTime As Boolean)
Dim x As XmlLayoutBuilder
'load the layout
x.LoadXmlLayout(Activity, "layout1")
'load the Animation
anim = x.LoadAnimation...="wrap_content"
android:tag="chk1" />
</LinearLayout>
LoadXmlLayout method loads... an xml file. It allows you to create all kinds of animations including a set of animations (not...
Other [Tool] b4xlib - XML generation - Erel    
Jul 8, 2020   
(16 reactions)b4xlibs do not require an XML file. The IDE parses the packed code modules.
With this tool you can generate the XML from the packed source code. It is useful for documentation purposes as there are tools that expect this XML.
For example: https://www.b4x.com/android/forum/threads/java-auto-generate-library-documentation-with-xml2bb.18564/#content
The parser is not very sophisticated and will not always be 100% correct.
Note that the XML files shouldn't be kept in the libraries folder...
B4A Tutorial XML Parsing with the XmlSax library - Erel    
Jan 4, 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... the element's text.
In this example we will parse the forum RSS feed. RSS is formatted using XML.
A simplified example of this RSS is:
<?xml version="1.0" encoding="ISO-8859-1"... of the XML protocol and is ignored.
On the second line the StartElement event will be raised...
Share My Creation B4Rh2xml UI Simple tool to create B4R xml file from B4R header file - max123    
May 1, 2024   
(6 reactions) B4R conversion.
On this direction I used the B4Rh2xml tool made by Erel to create B4R xml files... with B4J.
This simple tool internally uses B4Rh2xml from Erel. It is very easy to use, just copy..., the tool create the xml file in the same directory of the header file. If you see errors, then your header file is not in correct format, this even will not works in B4Rh2xml NONUI.
The first time... B4R libraries as it is exactly the Erel's B4Rh2xml but a GUI version.
Comments and improvements...
B4A Library JTidy library - Convert HTML pages to XML - Erel    
Apr 8, 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...
'parse the Html page and create a new xml document.
tid.Parse(File.OpenInput(File.DirAssets, "index.html"), File.DirRootExternal, "1.xml")
sax.Initialize
sax.Parse(File.OpenInput(File.DirRootExternal, "1.xml"), "sax")
End Sub
Tips: By default...
B4i Library Updates to internal libraries - Erel    
Sep 20, 2026   
(3 reactions)This thread will be used for updates of libraries that are included in the IDE.
You should check the currently installed version before updating an internal library.
Installation instructions
Each zip file contains an xml file and a xcframework folder.
You need to copy the xml file to the internal libraries folder on the Windows computer.
If you are using a local Mac builder then you need to copy the xcframework to the Mac Libs folder....
B4A Tutorial [java] Auto generate library documentation with xml2bb - warwound    
Nov 29, 2013   
(4 reactions) not bother and leave the library user to figure things out themselves?
Try my xml2bb script.
Copy n paste a library's XML file into the textarea and hit Submit and my script will generate some...
B4A Library B4A / B4J - XmlBuilder - mebcs    
Mar 24, 2012My app needs to output its data in xml files.
Someone pointed me to XmlBuilder.
I have the java-xmlbuilder-0.4.jar file but need its xml to use in the b4a library. Catch 22 lol
Does anyone use it? can you post the needed files?...
B4A Question How to parse "strange" xml - vecino    
Mar 12, 2024Hi, a webservice soap returns a strange xml and I can't extract the information.
What can I use to get it?
Thank you very much.
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle...
Page: 1  
2  
3  
4  
5  
6  
7