Click here to Skip to main content
15,915,160 members
Home / Discussions / C#
   

C#

 
Questioninsert date and time in oracle Pin
mjawadkhatri22-Jul-09 20:37
mjawadkhatri22-Jul-09 20:37 
AnswerRe: insert date and time in oracle Pin
Nagy Vilmos22-Jul-09 22:53
professionalNagy Vilmos22-Jul-09 22:53 
GeneralRe: insert date and time in oracle Pin
mjawadkhatri23-Jul-09 0:42
mjawadkhatri23-Jul-09 0:42 
GeneralRe: insert date and time in oracle Pin
Nagy Vilmos23-Jul-09 6:30
professionalNagy Vilmos23-Jul-09 6:30 
Questioni need to get Alert mail in inbox when one perticular News(ex: about Tata steel Ltd.) updated Pin
ravindarp22-Jul-09 20:09
ravindarp22-Jul-09 20:09 
AnswerRe: i need to get Alert mail in inbox when one perticular News(ex: about Tata steel Ltd.) updated Pin
Nagy Vilmos22-Jul-09 23:09
professionalNagy Vilmos22-Jul-09 23:09 
GeneralRe: i need to get Alert mail in inbox when one perticular News(ex: about Tata steel Ltd.) updated Pin
ravindarp22-Jul-09 23:31
ravindarp22-Jul-09 23:31 
GeneralRe: i need to get Alert mail in inbox when one perticular News(ex: about Tata steel Ltd.) updated Pin
Nagy Vilmos23-Jul-09 0:24
professionalNagy Vilmos23-Jul-09 0:24 
GeneralRe: i need to get Alert mail in inbox when one perticular News(ex: about Tata steel Ltd.) updated Pin
ravindarp23-Jul-09 0:45
ravindarp23-Jul-09 0:45 
QuestionShow the list of users at each client Pin
tamir90122-Jul-09 19:55
tamir90122-Jul-09 19:55 
AnswerRe: Show the list of users at each client Pin
Tamer Oz22-Jul-09 20:21
Tamer Oz22-Jul-09 20:21 
GeneralRe: Show the list of users at each client Pin
tamir90122-Jul-09 20:24
tamir90122-Jul-09 20:24 
GeneralRe: Show the list of users at each client Pin
J4amieC22-Jul-09 22:24
J4amieC22-Jul-09 22:24 
AnswerRe: Show the list of users at each client Pin
tamir90123-Jul-09 2:18
tamir90123-Jul-09 2:18 
QuestionSharing common enum with main app and class library Pin
souren7722-Jul-09 18:34
souren7722-Jul-09 18:34 
AnswerRe: Sharing common enum with main app and class library Pin
Adam R Harris22-Jul-09 19:11
Adam R Harris22-Jul-09 19:11 
GeneralRe: Sharing common enum with main app and class library Pin
souren7722-Jul-09 19:22
souren7722-Jul-09 19:22 
GeneralRe: Sharing common enum with main app and class library Pin
Tamer Oz22-Jul-09 20:16
Tamer Oz22-Jul-09 20:16 
GeneralRe: Sharing common enum with main app and class library Pin
PIEBALDconsult23-Jul-09 6:30
mvePIEBALDconsult23-Jul-09 6:30 
GeneralRe: Sharing common enum with main app and class library Pin
souren7723-Jul-09 6:33
souren7723-Jul-09 6:33 
GeneralRe: Sharing common enum with main app and class library Pin
Adam R Harris23-Jul-09 6:57
Adam R Harris23-Jul-09 6:57 
QuestionReading XML file From C# Pin
maheesh22-Jul-09 17:39
maheesh22-Jul-09 17:39 
AnswerRe: Reading XML file From C# Pin
Christian Graus22-Jul-09 18:16
protectorChristian Graus22-Jul-09 18:16 
AnswerRe: Reading XML file From C# Pin
harold aptroot22-Jul-09 18:21
harold aptroot22-Jul-09 18:21 
I would have suggested that you use SelectSingleNode (member of XmlDocument), but that won't work since this is not valid XML. The problem is this part <Failure_ID="1", which as far as I can see quickly is never valid XML, and certainly not in this case. The problem is, there is either no element name or no attribute name (but it's impossible to tell which is missing). I suggest you change it to <Failure ID="3" Name="whatever" Description="Something">
Or if you're not in a position to change the format, use an other way to read the data - not as XML because that's not what it is.

If you go for the first option, the code to select the Name based on the ID could be something like
myDocument.SelectSingleNode("/Failure_Table/Failure[@ID=\"" + theID + "\"]/Name).Value

(warning: untested, and does not do any checking so will fail if Name is not present)

Hope that helps



AnswerRe: Reading XML file From C# Pin
infneeta22-Jul-09 20:54
infneeta22-Jul-09 20:54 

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.