XPath4AS2 - Traversing through complex hierarchies
XPath for Flash, wait a second.. why do i need that and what is it good for?
In simple words, XPath is a grammar one can use to navigate through the hierarchical structure of an XML document. XPath4AS2 is an api one can use with Flash to do exactly this.
Now, imagine if you have a interactive catalog picking up its data from an xml document, wouldn't your client love to have a search feature? (an extra 100 dollars for you to earn!)
Building a search engine for a simple xml can be possible using string techniques but would require a custom rewrite for every application and would slow down with the density in hierarchy. That's where XPath comes in, with simple consistent grammar that works with any well-formed xml document tools like search are easy to develop.
** Try the demo at osflash.org and do not forget to try the path examples provided. **
Are you starting to think of the possibilities by now, I am starting to build something right away!
In simple words, XPath is a grammar one can use to navigate through the hierarchical structure of an XML document. XPath4AS2 is an api one can use with Flash to do exactly this.
Now, imagine if you have a interactive catalog picking up its data from an xml document, wouldn't your client love to have a search feature? (an extra 100 dollars for you to earn!)
Building a search engine for a simple xml can be possible using string techniques but would require a custom rewrite for every application and would slow down with the density in hierarchy. That's where XPath comes in, with simple consistent grammar that works with any well-formed xml document tools like search are easy to develop.
** Try the demo at osflash.org and do not forget to try the path examples provided. **
Are you starting to think of the possibilities by now, I am starting to build something right away!


0 Comments:
Post a Comment
<< Home