Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Queries entries from XML nodes.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
XML | 11.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
XML | The XML to process. Can be XML as text or the reference returned by XML.Parse function, so you can make several times changes to the XML without parsing it each time. |
"<test>Hello</test>" |
Flags | Various Flags. Add 1 to ignore errors in xml and continue parsing. This may lead to not everything in the xml being read. Add 8 to remove namespaces. |
0 |
Returns list or error.
Try it:
# New Script in file Extract Text
Set Variable [ $xml ; Value: "<people><person><firstname>Peter</firstname></person><person><firstname>Michael</firstname></person></people>" ]
# split it
Set Variable [ $list ; Value: MBS( "XML.ItemRefs"; $xml; 0 ) ]
# now take items from the list and show
Set Variable [ $xml1 ; Value: GetValue($list; 1) ]
Show Custom Dialog [ "xml1" ; MBS("XML.Format"; $xml1) ]
Set Variable [ $xml2 ; Value: GetValue($list; 2) ]
Show Custom Dialog [ "xml2" ; MBS("XML.Format"; $xml2) ]
# free memory
Set Variable [ $r ; Value: MBS( "XML.Release"; $list ) ]
This function checks for a license.
Created 19th September 2021, last changed 19th September 2021