SWXml is an Open Source API for SWX. It provides flash developers with a very easy way to create applications using the popular XML format (e.g. RSS Feeds, Atom, Media RSS, …). In short, SWXml is a generic XML parser for SWX.
SWXml parses an XML file and returns an array containing all the information. So you don’t need to write ActionScript Code for parsing, you can just use the data of the XML file in a native way
Link: Beispiele / Examples (english)
Link: Dokumentation / Documentation (english)
Download: SWXml 0.8.2 (.zip)
German:
SWXml ist eine Open Source API für SWX. Mit SWXml kann man auf einfache Weise Flashanwendungen erstellen, die das beliebte XML Format (z.B. RSS Feeds, Atom, Media RSS, …) nutzen. SWXml ist ein generischer XML Parser für SWX.
SWXml liest eine XML Datei aus und gibt ein Array mit allen Informationen an Flash zurück. So muss man keine ActionScript Code schreiben, um den Feed zu parsen. Man kann die Daten aus dem Feed nativ in Flash nutzen.
[ad]
Aral was kind enough to point me in the direction of this great util class. Unfortunately it only take a remote path as input.
Would you be able to refactor this class slightly so I can pass a local string for processing too? This would allow me to perform a call to any application API which returns an xml file as a result and then ask SWXml to process it for me. And if you’re busy I’d be more than happy to contribute :)
Nice work!
Just updated the download with the iTunes and the weather examples.
Aral has added SWXml to the SWX Public Gateway, so you can start using SWXml in your applications today.
swx.gateway = „http://swxformat.org/php/swx.php“;
Here’s a screencast without sound, showing the basics of SWXml (2 min 48 sec).
http://www.screencast.com/users/videoflash/folders/Jing/media/1854fd67-f726-491c-92f0-84b0539b317b
Any chance you’re going to do a SAVE xml from flash extension for this?
I updated the SWXml class (0.8.2):
I added the possibility to send a local string containing XML to SWXml, e.g. <xml><demo>Hello World</demo></xml>.
Therefore, there’s a new parameter called “xmlType”. If you set it to “string”, SWXml interprets the XML source as a local string, not as a URL (which is default). The parameter is optional, so the new version is fully backward compatible.
I also prepared SWXml for mock data support.
And last but not least: SWXml now checks if you send a valid URL that starts with ‘http’.
By the way,SWX and SWXml also work perfect in the dashboard: SWXml dashboard picture (Mac OS X 10.5)