if you want to have an alternative to jaxen4gwt (XPath support for
GWT), you might find my Generative XPath useful:
``Generative XPath is an XPath 1.0 implementation, which can be
adapted to different hierarchical memory structures and different
programming languages. It is based on a small, easy to implement
virtual machine, which is already available for different platforms,
including plain C, Java and .NET.''
XML Prague 2007 paper, slides, download:
I'm currently using jaxen4gwt and would love to find something else. I need
to process a lot of XML. jaxen4gwt is very big and has at least one
untrapped exception that I have to code around.
On 31 Jul., 18:58, Thad Humphries <thad.humphr...@gmail.com> wrote:
> Can you explain how this could be used within the GWT client code? I don't
> see it.
Unfortunately, I have no answer. My experience with GWT is limited to
Scott Blum's presentation. The goal of my posting was to raise
interest in my work. Hopefully someone can decide it's cool and port
Generative XPath to GWT. A good diploma, by the way.
> These seem to be scripts requiring guile (admittedly, I'm no expert;
> I haven't Common Lisp since grad school over 15 years ago).
In my approach, to execute XPath, one needs
1) Compile an XPath expression to a Virtual Machine code using some
2) From an application, interpret/run the VM code.
The most cool way for (2) is to convert the VM code to the AST tree,
used internally by GWT compiler. In this case you get XPath, compiled
something for very very far future.
The practical way for (2) is to use SICP as the interpreter of the VM
But again, I can't suggest the details.
> I'm currently using jaxen4gwt and would love to find something else. I need
> to process a lot of XML. jaxen4gwt is very big
If the cool way were implemented, you'd get very little overhead. But
that's only dreams, unfortunately.
> and has at least one
> untrapped exception that I have to code around.
Oleg Parashchenko olpa@ http://uucode.com/
http://uucode.com/blog/ Generative Programming, XML, TeX, Scheme
http://tohtml.com/ Online syntax highlighting