I have no idea what i'm doing, but i did it (i just choose 1 element of array):

void main()
{
    string xmlstring = cast(string)read("test.xml");
    XmlNode newdoc = xmlstring.readDocument();

XmlNode[] searchlist = newdoc.parseXPath(`//instancesSet/item`);
    foreach(list; searchlist)
    {
string test1 = list.parseXPath(`//instanceId`)[0].getCData;

        writeln(test1);
    }

}

Is it really how it should looks like? Is there any better/more beautiful solution?

Reply via email to