C
Cheryl
I have problems selecting the attribute when I use the SelectNode function.
<book>
<title store='7456' >Nutshell</title>
<author id='1'>Drayton</author>
<xauthor publish = "1" publishtime = "2"/>
<author id='3'>Neward</author>
<author id='2'>Albahari</author>
</book>
**************************************************************
doc.Loadxml(dom);
XmlDocument doc = new XmlDocument(dom);
XmlNode docElement = doc.DocumentElement;
XmlNodeList result = SelectNodes("/book/title[@store='7456']")
**************************************************************
What I am trying to do is assign a variable to each tag attribute publishtime.
opublishtime = ??
<book>
<title store='7456' >Nutshell</title>
<author id='1'>Drayton</author>
<xauthor publish = "1" publishtime = "2"/>
<author id='3'>Neward</author>
<author id='2'>Albahari</author>
</book>
**************************************************************
doc.Loadxml(dom);
XmlDocument doc = new XmlDocument(dom);
XmlNode docElement = doc.DocumentElement;
XmlNodeList result = SelectNodes("/book/title[@store='7456']")
**************************************************************
What I am trying to do is assign a variable to each tag attribute publishtime.
opublishtime = ??