[EDIT] NOW on the wiki:
https://hutonggames.fogbugz.com/default.asp?W1133[EDIT] Also available on the
EcosystemHi,
Ok, I have an xml reader with a first action to select a node using Xpath! it's very very powerful!! Many features need to be added like being able to select multiple nodes, and output them into ArrayMaker for example, but for now this hilite the ease of use and power and is already very useful as is actually!
basically it works like this:
1: create a DataMaker Xml Proxy and point to a text resource in your assets
2: then use the action "XPath Select Single Node" and point to that proxy to use xpath queries on that resource.
-- Xpath wildcard system
instead of letting you just input a string, I have created a simple wildcard format that allow you to define places in the xpath query that are flexible and points to FsmSTring variables.
in the sample provide, the xPath looks like
content[@type='%%0%%']
the action has defined one XPath variable for an FsmString, to %%0%% will be replaced by whatever is defined there
-- Result
The innerText is of course available, but I go much further then that
you can access any number of properties
-- attributes ( that is when you define a property starting with "@")
-- innerXml using again XPath, if your property starts with / then it will be processed as an XPath query locally on the selected node ( this is important to be aware of that, because I prepend a "." to make that path be really locale, else it will search from the document root, which is not what we want here)
-- direct child nodes innerText. simply reference the name and its inner Text will be returned
Your first stop is to read this:
http://msdn.microsoft.com/en-us/library/ms256471.aspxIf you need some of these XPath not yet supported, let me know, the play is to support XPath fully anyway.
Have fun, Any questions and suggestions or trouble, don't hesitate.
Jean