Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ARRAY
#2
Macro
Code:
Copy      Help
str s=
;<ROOT>
,;<CHILD>
,,;<CC>
,,,;<SUB1>Data1</SUB1>
,,,;<SUB2>Data2</SUB2>
,,;</CC>
,,;<CC>
,,,;<SUB1>Data3</SUB1>
,,,;<SUB2>Data4</SUB2>
,,;</CC>
,;</CHILD>
;</ROOT>
IXml xml=CreateXml
xml.FromString(s)

ARRAY(IXmlNode) a
xml.Path("ROOT/CHILD/CC" a)
int i
for i 0 a.len
,str sub1=a[i].ChildValue("SUB1")
,str sub2=a[i].ChildValue("SUB2")
,s.format("%s, %s" sub1 sub2)
,out s
,


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)