Xml query?

i was told this might fit better in this forum…

what’s the syntax to simply query an xml file?

i want to set up a form (in flash 8) that has 1 textbox input asking for your name. if your name is in the xml doc, then i want one action to occur… if not, another.