Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Query a database with multiple pieces of data
#6
maybe this can be useful
i use single xml file for all wordlists
Macro
Code:
Copy      Help
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")


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)