Click here to Skip to main content
15,900,482 members
Home / Discussions / C#
   

C#

 
GeneralRe: While loop in C# Pin
Colin Angus Mackay3-Apr-08 1:24
Colin Angus Mackay3-Apr-08 1:24 
GeneralRe: While loop in C# PinPopular
Luc Pattyn3-Apr-08 1:33
sitebuilderLuc Pattyn3-Apr-08 1:33 
GeneralRe: While loop in C# Pin
Paul Conrad3-Apr-08 6:06
professionalPaul Conrad3-Apr-08 6:06 
GeneralRe: While loop in C# Pin
DaveyM693-Apr-08 7:57
professionalDaveyM693-Apr-08 7:57 
GeneralRe: While loop in C# Pin
Luc Pattyn3-Apr-08 8:32
sitebuilderLuc Pattyn3-Apr-08 8:32 
GeneralRe: While loop in C# Pin
DaveyM693-Apr-08 10:05
professionalDaveyM693-Apr-08 10:05 
GeneralRe: While loop in C# Pin
Luc Pattyn3-Apr-08 10:21
sitebuilderLuc Pattyn3-Apr-08 10:21 
GeneralInteresting problem with XML nodes Pin
Krippers3-Apr-08 1:12
Krippers3-Apr-08 1:12 
Hi,
I have a little issue with some code I'm doing. Basically I have a source xml document that looks like this:

<Paragraph>This is a <Emphasis Type="Bold">test</Emphasis> line with these:<List><Entry>Keyword alpha</Entry><Entry>Keyword Bravo</Entry></List></Paragraph>

and the problem is this, if I wanted my code to tag a specific word for example replace the word alpha with
<Emphasis Type="Italic">alpha</Emphasis>

to create this new node:
<Paragraph>This is a <Emphasis Type="Bold">test</Emphasis> line with these:<List><Entry>Keyword <Emphasis Type="Italic">alpha</Emphasis></Entry><Entry>Keyword Bravo</Entry></List></Paragraph>

is there a way of identifying a specific point in the overall line to correctly replace it, given that the word alpha could conceivably appear before or after the instance to be tagged?

At the moment I am attempting to use a function that pulls the Paragraph Node to text (innertext) and clears out everything after the required word and then starts to create a new string builder by individually pulling innerxml of each node until the patterns match.

To me this is incredibly convoluted, is there a better way? Confused | :confused:
GeneralRe: Interesting problem with XML nodes Pin
panoskatws3-Apr-08 3:12
panoskatws3-Apr-08 3:12 
GeneralThanks Pin
Krippers3-Apr-08 4:05
Krippers3-Apr-08 4:05 
GeneralRe: Interesting problem with XML nodes [modified] Pin
PIEBALDconsult3-Apr-08 7:16
mvePIEBALDconsult3-Apr-08 7:16 
GeneralRe: Interesting problem with XML nodes Pin
Krippers4-Apr-08 2:28
Krippers4-Apr-08 2:28 
GeneralRe: Interesting problem with XML nodes Pin
PIEBALDconsult5-Apr-08 7:05
mvePIEBALDconsult5-Apr-08 7:05 
Generaldrop down list selected index changed event Pin
chithra.r3-Apr-08 1:10
chithra.r3-Apr-08 1:10 
GeneralRe: drop down list selected index changed event Pin
rah_sin3-Apr-08 1:17
professionalrah_sin3-Apr-08 1:17 
GeneralRe: drop down list selected index changed event Pin
chithra.r3-Apr-08 2:47
chithra.r3-Apr-08 2:47 
QuestionHow to reset binding of textbox control? [modified] Pin
Hum Dum3-Apr-08 0:54
Hum Dum3-Apr-08 0:54 
AnswerRe: How to reset binding of textbox control? Pin
darkelv3-Apr-08 0:59
darkelv3-Apr-08 0:59 
GeneralRe: How to reset binding of textbox control? Pin
Hum Dum3-Apr-08 1:03
Hum Dum3-Apr-08 1:03 
GeneralRe: How to reset binding of textbox control? Pin
darkelv3-Apr-08 1:48
darkelv3-Apr-08 1:48 
Generalaccess datetime Pin
Razvan Dimescu3-Apr-08 0:49
Razvan Dimescu3-Apr-08 0:49 
GeneralRe: access datetime Pin
Rob Philpott3-Apr-08 0:54
Rob Philpott3-Apr-08 0:54 
GeneralRe: access datetime Pin
Razvan Dimescu3-Apr-08 0:58
Razvan Dimescu3-Apr-08 0:58 
GeneralRe: access datetime Pin
Rob Philpott3-Apr-08 5:20
Rob Philpott3-Apr-08 5:20 
QuestionTreeview problem... Pin
cooltoad1233-Apr-08 0:32
cooltoad1233-Apr-08 0:32 

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.