HomeAbout

xml search class

A neat little class that allows you to search an already loaded xml file. You can search for attributes or node data and you can search for the first match only or you can search recursivly.

http://blog.maxgarfinkel.com/archives/8

1 Comment »

  1. Hi there, thanks for your little class, i’m sure i’ll use it very often.

    The only thing is that i want to make sure i use it the right way, since i dont have extensive experience using flash and actionscript. I’m more used to php.

    So here’s my code (doesnt work actually). If you could guide me with tips i sure would be very grateful.

    So beforehand, i’ve created the path “classLib/com/maxgarfinkel/data” and have stored your XmlSearch.as file there.

    After that, i’ve set the right classpath in flash in order to be able to have access to it.

    Should i use #include instead of import?

    import com.maxgarfinkel.data.XmlSearch;

    xmlData = new XmlSearch();

    xDoc = new XML();
    xDoc.ignoreWhite = true;
    xDoc.load(”test.xml”);

    xSearch = new Array;

    xSearch = xmlData.getAttributes(”test.xml”, “season2″, “path”, recursive);
    trace(xSearch);

    thank you so much for your time…

    Comment by jeanmichel — June 28, 2007 @ 1:59 pm

RSS feed for comments on this post. | TrackBack URI
You can also bookmark this on del.icio.us or check the cosmos

Leave a comment





XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .