|LANGREITER.COM plain, simple|
Examples of Use
var children = root.select("*");
var josefsPages = root.select("company/team/*[creator/@name='josef']");
var friendsOfFriends = chris.select("friends/*/friends/*");
var wahreFreunde = chris.select("friends/*[@rating > 5]");
var allTexts = root.select("//@text", true); // note the hierarchyMode!
As there's no 1:1 object graph/XML Infoset mapping, a few tradeoffs concerning graph expansion had to be made: In "hierarchy mode", the navigator follows only the hierarchy defined by _parent relationships (plus one expansion at the leaves), in "graph mode" all child nodes are always expanded, which can result in infinite loops when using recursive queries like //<element>. It is thought that this is one of the more practical approaches to solve that problem.
helma-select in its current incarnation is probably not exactly fast. If usefulness warrants the effort, a native Java version should replace this implementation.
So far I've only tested helma-select with a fairly simple application and an accordingly simple object graph. It seems to work nicely.
Helma 1.3.0 alpha + (Rhino).
Jaxen: Put jaxen-core.jar and saxpath.jar in lib/ext.
Put the files into the hopobject directory of an application.
To me, please.
GET YOUR MOVE ON
ALMOST ALL ABOUT YOU
So log in, fella — or finally get your langreiter.com account. You always wanted one.
Nearby in the temporal dimension:
... and 131 of the anonymous kind.
Click on for a moderate dose of lcom-talk. This will probably not work in Lynx and other browser exotica.
RECENT EDITS (MORE)
Uncut Games bei Gameware
Offenlegung gem. §25 MedienG:
Christian Langreiter, Langkampfen