Click here to Skip to main content
15,914,452 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralLearning XML Schemas Pin
mlauzon2727-May-04 9:26
mlauzon2727-May-04 9:26 
GeneralRe: Learning XML Schemas Pin
Arjan Einbu27-May-04 13:37
Arjan Einbu27-May-04 13:37 
Generalxsl generating META tag Pin
IsaacB26-May-04 10:56
IsaacB26-May-04 10:56 
GeneralSAX parser - dont work Pin
VictorPr25-May-04 5:21
VictorPr25-May-04 5:21 
GeneralXSD importing problem Pin
Grimolfr24-May-04 4:50
Grimolfr24-May-04 4:50 
Questioncompiling expatpp ? Pin
caignaoli23-May-04 21:57
caignaoli23-May-04 21:57 
QuestionWhy am I getting "The expression...should result in a NodeSet"? Pin
Marc Clifton22-May-04 13:08
mvaMarc Clifton22-May-04 13:08 
AnswerRe: Why am I getting "The expression...should result in a NodeSet"? Pin
Mike Ellison22-May-04 13:47
Mike Ellison22-May-04 13:47 
Hi Marc. I think you need to use the Evaluate method of the XPathNavigator class to get the sum value. Something like this:
XmlDocument doc = new XmlDocument();
doc.Load("transactions.xml");
XmlElement root = doc.DocumentElement;
XPathNavigator xpath = root.CreateNavigator();
 
string expr = "sum(/Transactions/Transaction[@BoothNum='1']/@Quarters)";
int quarterTotal = (int) xpath.Evaluate(expr);

GeneralRe: Why am I getting "The expression...should result in a NodeSet"? Pin
Marc Clifton22-May-04 14:48
mvaMarc Clifton22-May-04 14:48 
Generalamazon upload Need Help Pin
Sumit Kapoor19-May-04 19:52
Sumit Kapoor19-May-04 19:52 
QuestionXML the way? Pin
RichGuk18-May-04 11:16
RichGuk18-May-04 11:16 
AnswerRe: XML the way? Pin
Christian Graus18-May-04 11:45
protectorChristian Graus18-May-04 11:45 
AnswerRe: XML the way? Pin
eggie527-May-04 13:44
eggie527-May-04 13:44 
QuestionGet child nodes of certain element?? Pin
Jack78917-May-04 19:27
Jack78917-May-04 19:27 
AnswerRe: Get child nodes of certain element?? Pin
Wilbur J. Pereira17-May-04 19:52
Wilbur J. Pereira17-May-04 19:52 
GeneralRe: Get child nodes of certain element?? Pin
Jack78917-May-04 20:19
Jack78917-May-04 20:19 
GeneralRe: Get child nodes of certain element?? Pin
Philip Fitzsimons18-May-04 3:05
Philip Fitzsimons18-May-04 3:05 
GeneralRe: Get child nodes of certain element?? Pin
Wilbur J. Pereira18-May-04 19:40
Wilbur J. Pereira18-May-04 19:40 
GeneralRe: Get child nodes of certain element?? Pin
Jack78918-May-04 21:41
Jack78918-May-04 21:41 
GeneralRe: Get child nodes of certain element?? Pin
Ghazi Malik21-May-04 6:04
Ghazi Malik21-May-04 6:04 
QuestionHow to build a DataBase of data types (int, char, struct, …)? Pin
Michigan185417-May-04 4:25
Michigan185417-May-04 4:25 
GeneralDynamic Webservice Client Pin
BernardYardley17-May-04 2:29
BernardYardley17-May-04 2:29 
GeneralRe: Dynamic Webservice Client Pin
BernardYardley17-May-04 22:29
BernardYardley17-May-04 22:29 
QuestionInterested in article? Pin
Steve S16-May-04 23:09
Steve S16-May-04 23:09 
GeneralA simple question about MSXML Pin
zengkun12-May-04 18:01
zengkun12-May-04 18:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.