H
Hareth
How can I read lines from an XML file. & add them to a counter.
If possible, words between <page> <\page> is considered as +1 to my counter.
if it isnt possible, I would atlest like to read until the word "explorer"
then add it (+1) to my counter, then read next word, and so on.
Example File:
<?xml version="1.0" encoding="utf-8" ?>
- <Site>
<page>Games - Microsoft Internet Explorer</page>
<page>Cars - Microsoft Internet Explorer</page>
<page>The Biggest And The Best! - Microsoft Internet Explorer</page>
<page>AutoWhatever - Microsoft Internet Explorer</page>
<\Site>
I DONT want to add the following "words" to my counter:
<?xml version="1.0" encoding="utf-8" ?>
- <Site><\Site>
or <page></page>
If possible, words between <page> <\page> is considered as +1 to my counter.
if it isnt possible, I would atlest like to read until the word "explorer"
then add it (+1) to my counter, then read next word, and so on.
Example File:
<?xml version="1.0" encoding="utf-8" ?>
- <Site>
<page>Games - Microsoft Internet Explorer</page>
<page>Cars - Microsoft Internet Explorer</page>
<page>The Biggest And The Best! - Microsoft Internet Explorer</page>
<page>AutoWhatever - Microsoft Internet Explorer</page>
<\Site>
I DONT want to add the following "words" to my counter:
<?xml version="1.0" encoding="utf-8" ?>
- <Site><\Site>
or <page></page>