1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | Private Sub Timer1_Timer() Dim xmlDoc As DOMDocument Dim xmlNodeList As IXMLDOMNodeList Dim xmlNode As IXMLDOMNode Set xmlDoc = New DOMDocument hehe = getPage("http://localhost/fokxml.xml") MsgBox (hehe) xmlDoc.loadXML hehe Set xmlNodeList = xmlDoc.selectNodes("/activetopics") MsgBox (xmlDoc.text) End Sub |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | Dim xml As New DOMDocument Dim nList As IXMLDOMNodeList Dim n As IXMLDOMNode Dim txt As String Dim hehe As String hehe = getPage("http://localhost/fokxml.xml") MsgBox (hehe) 'geeft XML output xml.loadXML hehe MsgBox (xml.xml) 'LAAT TOTAAL NIETS ZIEN ???? txt = xml.documentElement.childNodes(0).childNodes(1).xml Set n = xml.selectSingleNode("/activetopics/topic/replies[text()='0']") Set nList = xml.selectNodes("/activetopics/topic") Set nList = xml.documentElement.getElementsByTagName("make") For Each n In nList txt = txt & vbCrLf & n.xml Next MsgBox (txt) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Private Sub Command1_Click() Dim xmlDoc As DOMDocument Dim xmlNodeList As IXMLDOMNodeList Dim xmlNode As IXMLDOMNode Set xmlDoc = New DOMDocument xmlDoc.loadXML Text1.Text Set xmlNodeList = xmlDoc.childNodes(1).selectNodes("/activetopics/topic") For Each xmlNode In xmlNodeList Debug.Print xmlNode.Text & vbCrLf Next xmlNode Set xmlDoc = Nothing End Sub |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | <?xml version="1.0" encoding="ISO-8859-1" ?> <activetopics> <topic> <id>760127</id> <titel>[POL-SC #714] The Matchmaker</titel> <forum>56</forum> <forumafkorting></forumafkorting> <startts>1127932095</startts> <lastts>1127932951</lastts> <topicstarter>Drugshond</topicstarter> <starterid>89730</starterid> <replies>6</replies> <last_replier>Monidique</last_replier> <replierid>78909</replierid> <messageid>31009355</messageid> </topic> <topic> <id>750439</id> <titel>[CL] Fenerbahçe - PSV</titel> <forum>70</forum> <forumafkorting></forumafkorting> <startts>1126040835</startts> <lastts>1127932951</lastts> <topicstarter>appelsientje</topicstarter> <starterid>10119</starterid> <replies>154</replies> <last_replier>LuNaTiC</last_replier> <replierid>12602</replierid> <messageid>31009356</messageid> </topic> <topic> <id>760118</id> <titel>Raad je Plaatje voor te nieuwsgierige aagjes # 387</titel> <forum>32</forum> <forumafkorting></forumafkorting> <startts>1127930916</startts> <lastts>1127932950</lastts> <topicstarter>Diaan73</topicstarter> <starterid>114177</starterid> <replies>31</replies> <last_replier>wyccie</last_replier> <replierid>36683</replierid> <messageid>31009354</messageid> </topic> <topic> <id>759342</id> <titel>[PC] Battlefield 2 - Deel 36</titel> <forum>61</forum> <forumafkorting></forumafkorting> <startts>1127765022</startts> <lastts>1127932950</lastts> <topicstarter>Sickert</topicstarter> <starterid>61422</starterid> <replies>146</replies> <last_replier>Droopie</last_replier> <replierid>38824</replierid> <messageid>31009353</messageid> </topic> <topic> <id>759834</id> <titel>1072 Gijsjes 1 ..2 .. stap en kick en 1 ..2 .. stap...</titel> <forum>49</forum> <forumafkorting></forumafkorting> <startts>1127888913</startts> <lastts>1127932945</lastts> <topicstarter>silver-surfer</topicstarter> <starterid>6085</starterid> <replies>135</replies> <last_replier>Bastard</last_replier> <replierid>8372</replierid> <messageid>31009351</messageid> </topic> <topic> <id>758433</id> <titel>Verander één letter - 6 letter editie # 4</titel> <forum>15</forum> <forumafkorting></forumafkorting> <startts>1127583999</startts> <lastts>1127932945</lastts> <topicstarter>dolle_hond</topicstarter> <starterid>23107</starterid> <replies>297</replies> <last_replier>iamredleader</last_replier> <replierid>104106</replierid> <messageid>31009352</messageid> </topic> <topic> <id>760124</id> <titel>[SC BB #340] De Grootste Familie van Nederland</titel> <forum>103</forum> <forumafkorting></forumafkorting> <startts>1127932009</startts> <lastts>1127932938</lastts> <topicstarter>Stereotomy</topicstarter> <starterid>55709</starterid> <replies>116</replies> <last_replier>Stereotomy</last_replier> <replierid>55709</replierid> <messageid>31009348</messageid> </topic> <topic> <id>760000</id> <titel>Wat luister je nu? oude stijl, deel 832</titel> <forum>30</forum> <forumafkorting></forumafkorting> <startts>1127914218</startts> <lastts>1127932938</lastts> <topicstarter>dolle_hond</topicstarter> <starterid>23107</starterid> <replies>170</replies> <last_replier>cosmick</last_replier> <replierid>49096</replierid> <messageid>31009347</messageid> </topic> <topic> <id>759697</id> <titel>een bedrijf kapot maken, prima van de rechter</titel> <forum>56</forum> <forumafkorting></forumafkorting> <startts>1127847552</startts> <lastts>1127932930</lastts> <topicstarter>McCarthy</topicstarter> <starterid>119078</starterid> <replies>54</replies> <last_replier>McCarthy</last_replier> <replierid>119078</replierid> <messageid>31009346</messageid> </topic> <topic> <id>756878</id> <titel>Lieske (Deel III)</titel> <forum>103</forum> <forumafkorting></forumafkorting> <startts>1127298152</startts> <lastts>1127932929</lastts> <topicstarter>Giem</topicstarter> <starterid>107953</starterid> <replies>113</replies> <last_replier>ilona-scuderia</last_replier> <replierid>36559</replierid> <messageid>31009345</messageid> </topic> <topic> <id>757508</id> <titel>[CENTRAAL] AH-medewerkers-topic [ Deel 6 ]</titel> <forum>41</forum> <forumafkorting></forumafkorting> <startts>1127403581</startts> <lastts>1127932928</lastts> <topicstarter>Carpento</topicstarter> <starterid>128546</starterid> <replies>269</replies> <last_replier>donald_dick</last_replier> <replierid>19054</replierid> <messageid>31009343</messageid> </topic> <topic> <id>760109</id> <titel>PUB SC #253 Dit topic is echt wel sjiek! (slippen)</titel> <forum>104</forum> <forumafkorting></forumafkorting> <startts>1127930110</startts> <lastts>1127932919</lastts> <topicstarter>Maikuuul</topicstarter> <starterid>79000</starterid> <replies>86</replies> <last_replier>Renesite</last_replier> <replierid>72712</replierid> <messageid>31009341</messageid> </topic> <topic> <id>760120</id> <titel>Schoolstukken beschikbaar stellen</titel> <forum>41</forum> <forumafkorting></forumafkorting> <startts>1127931015</startts> <lastts>1127932918</lastts> <topicstarter>wobbel</topicstarter> <starterid>37634</starterid> <replies>1</replies> <last_replier>harlingen</last_replier> <replierid>105357</replierid> <messageid>31009339</messageid> </topic> <topic> <id>758198</id> <titel>Keetwoningen Wenckebachweg e.a. in A'dam [deel 3]</titel> <forum>35</forum> <forumafkorting></forumafkorting> <startts>1127551945</startts> <lastts>1127932912</lastts> <topicstarter>Jvvianen</topicstarter> <starterid>95789</starterid> <replies>92</replies> <last_replier>MisterEE</last_replier> <replierid>98380</replierid> <messageid>31009338</messageid> </topic> <topic> <id>755247</id> <titel>Welke film heb jij vandaag/pas gezien? Deel LXXV</titel> <forum>7</forum> <forumafkorting></forumafkorting> <startts>1126978046</startts> <lastts>1127932911</lastts> <topicstarter>kinky_queen</topicstarter> <starterid>56685</starterid> <replies>215</replies> <last_replier>Kolkus</last_replier> <replierid>50939</replierid> <messageid>31009337</messageid> </topic> <topic> <id>758386</id> <titel>Afghanistan - Wat je altijd al wilde weten</titel> <forum>4</forum> <forumafkorting></forumafkorting> <startts>1127578866</startts> <lastts>1127932909</lastts> <topicstarter>MrReaL</topicstarter> <starterid>33206</starterid> <replies>47</replies> <last_replier>sp3c</last_replier> <replierid>14679</replierid> <messageid>31009336</messageid> </topic> <topic> <id>759875</id> <titel>[SC] Discussieparty #518 - Deaud</titel> <forum>13</forum> <forumafkorting></forumafkorting> <startts>1127896574</startts> <lastts>1127932907</lastts> <topicstarter>NiNi</topicstarter> <starterid>20100</starterid> <replies>223</replies> <last_replier>progje</last_replier> <replierid>52646</replierid> <messageid>31009335</messageid> </topic> <topic> <id>759630</id> <titel>Mijn sjieke slip !</titel> <forum>49</forum> <forumafkorting></forumafkorting> <startts>1127833887</startts> <lastts>1127932904</lastts> <topicstarter>Maikuuul</topicstarter> <starterid>79000</starterid> <replies>81</replies> <last_replier>DeLeider</last_replier> <replierid>104153</replierid> <messageid>31009333</messageid> </topic> </activetopics> |
Heb de code nog wat verkort trouwens.quote:Op donderdag 29 september 2005 07:24 schreef Chandler het volgende:
tnx sop, toch nog maar ff gepost zie ik hehe... ik zal er vandaag ff mee gaan pielen!!!
|
Forum Opties | |
---|---|
Forumhop: | |
Hop naar: |