Click here to Skip to main content
15,908,909 members
Home / Discussions / C#
   

C#

 
GeneralRe: An XML newbie's problem Pin
Kentamanos6-Feb-04 8:50
Kentamanos6-Feb-04 8:50 
I'm not an expert on the XmlNavigator class (I usually just use SelectNodes and get a collection of XmlNodes), but I think I see your problem.

You're finding a bunch of book nodes, and then you're moving to the first child, expecting to find the ISBN. The first child (child node) of book is the title node. What you want is an attribute, and not a child (isbn is an attribute and not a child node).

Take a look at XmlNavigator.GetAttribute. I think that will allow you to get the ISBN.



I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.

-David St. Hubbins
GeneralRe: An XML newbie's problem Pin
cemlouis8-Feb-04 8:59
cemlouis8-Feb-04 8:59 
GeneralResources files in VS.NET with CSharp. Pin
NeoAsimov6-Feb-04 5:50
NeoAsimov6-Feb-04 5:50 
GeneralRe: Resources files in VS.NET with CSharp. Pin
Kentamanos6-Feb-04 9:07
Kentamanos6-Feb-04 9:07 
GeneralRe: Resources files in VS.NET with CSharp. Pin
NeoAsimov6-Feb-04 9:28
NeoAsimov6-Feb-04 9:28 
GeneralAdding an event to prepackaged control Pin
dgroves6-Feb-04 5:01
dgroves6-Feb-04 5:01 
GeneralRe: Adding an event to prepackaged control Pin
Heath Stewart7-Feb-04 19:43
protectorHeath Stewart7-Feb-04 19:43 
GeneralRe: Adding an event to prepackaged control Pin
dgroves9-Feb-04 4:42
dgroves9-Feb-04 4:42 
GeneralPrivate Assembly in same Solution Pin
Anonymous6-Feb-04 4:52
Anonymous6-Feb-04 4:52 
GeneralRe: Private Assembly in same Solution Pin
Heath Stewart7-Feb-04 19:47
protectorHeath Stewart7-Feb-04 19:47 
GeneralObject reference not set to an instance of an object. Pin
cdwaddell6-Feb-04 4:06
cdwaddell6-Feb-04 4:06 
GeneralRe: Object reference not set to an instance of an object. Pin
Douglas Troy6-Feb-04 4:15
Douglas Troy6-Feb-04 4:15 
GeneralRe: Object reference not set to an instance of an object. Pin
cdwaddell6-Feb-04 4:22
cdwaddell6-Feb-04 4:22 
GeneralRe: Object reference not set to an instance of an object. Pin
Douglas Troy6-Feb-04 4:35
Douglas Troy6-Feb-04 4:35 
Generalsetting install location for merge module Pin
godzooky6-Feb-04 3:58
godzooky6-Feb-04 3:58 
GeneralRe: setting install location for merge module Pin
Douglas Troy6-Feb-04 4:04
Douglas Troy6-Feb-04 4:04 
GeneralRe: setting install location for merge module Pin
godzooky6-Feb-04 4:37
godzooky6-Feb-04 4:37 
GeneralRe: setting install location for merge module Pin
Douglas Troy6-Feb-04 6:09
Douglas Troy6-Feb-04 6:09 
GeneralRecommended Book Pin
pn19956-Feb-04 3:41
pn19956-Feb-04 3:41 
GeneralRe: Recommended Book Pin
Douglas Troy6-Feb-04 4:11
Douglas Troy6-Feb-04 4:11 
GeneralRe: Recommended Book Pin
Charlie Williams6-Feb-04 5:45
Charlie Williams6-Feb-04 5:45 
GeneralControlling generation of interface stubs Pin
Robert Matheson6-Feb-04 1:32
Robert Matheson6-Feb-04 1:32 
Generaldestructor and dispose Pin
GetOn&GetGoing6-Feb-04 1:08
GetOn&GetGoing6-Feb-04 1:08 
GeneralRe: destructor and dispose Pin
Colin Angus Mackay6-Feb-04 2:17
Colin Angus Mackay6-Feb-04 2:17 
GeneralC# Program Pin
SatyaDY5-Feb-04 23:00
SatyaDY5-Feb-04 23:00 

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.