Note: An alternative skin, TW4MW (work in progress), is available from the user preferences.
TextToXMLDOMPlugin
TiddlyWiki Community Wiki
| Name: | TextToXMLDOMPlugin |
| Author : | Phil Hawksworth |
| URL : | #TextToXMLDOMPlugin |
| Description : | Convert a chunk of text into XML DOM for traversing using standard XML DOM methods |
| Version : | 0.2 |
- CodeRepository: http://svn.tiddlywiki.org/Trunk/contributors/PhilHawksworth/plugins/TextToXMLDOMPlugin.js
- License: BSDLicense
- TiddlyWiki CoreVersion: 2.3
- JSSpec test script: http://svn.tiddlywiki.org/Trunk/contributors/PhilHawksworth/tests/jsspec/TextToXMLDOMPlugin.jsspec.js
[edit] Usage examples:
- Create an XMLDOM object from some text
var xml = getXML(text);
- Use standars XML DOM methods to parse the object. For example, get all of the 'thing' tag elements.
var things = xml.getElementsByTagName("thing");
- Get the uri attribute of the first 'thing' element.
var thingUri = things[0].getAttribute("uri");

