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

XML / XSL

 
GeneralRe: VB.net XmlNode to C# Pin
eggie527-May-04 15:18
eggie527-May-04 15:18 
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 
I have a very simple XML file:

<?xml version="1.0" encoding="utf-8"?>
<Transactions>
<Transaction BoothNum='1' Date='5/22/2004' Time='5:18:02 PM' Quarters='5'/>
<Transaction BoothNum='1' Date='5/22/2004' Time='5:18:25 PM' Quarters='10'/>
</Transactions>

(wierd, the editor is converting the T's to lower case.)

And some very simple code:

XmlDocument doc=new XmlDocument();
doc.Load("transactions.xml");
try
{
XmlNode n=doc.SelectSingleNode("sum(/Transactions/Transaction[@BoothNum='1']/@Quarters)");
...

And I get that stupid error. Why doesn't sum work?

If I call doc.SelectNodes("/Transactions/Transaction[@BoothNum='1']/@Quarters"
) I get two Nodes back!

Thanks!

Marc

AnswerRe: Why am I getting &quot;The expression...should result in a NodeSet&quot;? Pin
Mike Ellison22-May-04 13:47
Mike Ellison22-May-04 13:47 
GeneralRe: Why am I getting &quot;The expression...should result in a NodeSet&quot;? 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, &#8230;)? 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 

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.