01-16-2009, 09:29 AM
maybe this can be useful
i use single xml file for all wordlists
Macro
i use single xml file for all wordlists
Macro
str SearchWord="Who's Bobby Darin w/2nite?"
out
str defXml=
;<x>
;<w name="Tonight">
;tonight
;2nite
;tonight
;now
;</w>
;<w name="Bobby_Darin">
;bobby darin
;bobbie darin
;</w>
;</x>
IXml x=CreateXml
x.FromFile("$desktop$\0752.xml" defXml)
ARRAY(IXmlNode) aw
x.Path("x/w" aw) ;;get all w nodes
str s
int w nt
for w 0 aw.len
,foreach s aw[w].Value
,,if(!s.len) continue
,,if(SearchWord.findreplace(s "" 1))
,,,out aw[w].AttributeValue("name")