hi
i have a string:
<presence to="[email protected]/d9ec56e4"
from="[email protected]/testsubject_2">
<x xmlns="http://jabber.org/protocol/muc#user"><item affiliation="none"
role="visitor"/></x></presence>
how would i find out if it contains the presence attribute as well as who its from? ive tried using as3's xml methods but they require that the xml is a complete document so i figure to use regex but its late and im lost so ill post before i go to sleep :)
if (string contains <presence to="){
// get who its from
}