Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to use class property Pin
led mike12-Oct-06 7:36
led mike12-Oct-06 7:36 
AnswerRe: How to use class property Pin
Sreenath Madyastha12-Oct-06 7:40
Sreenath Madyastha12-Oct-06 7:40 
QuestionHow can i create Font property for a composite control similar to the default one? Pin
Lior S12-Oct-06 7:27
Lior S12-Oct-06 7:27 
AnswerRe: How can i create Font property for a composite control similar to the default one? Pin
Martin#12-Oct-06 20:26
Martin#12-Oct-06 20:26 
Questionnewbie: sort values in a text.txt and display by name? Pin
hristo197712-Oct-06 7:12
hristo197712-Oct-06 7:12 
AnswerRe: newbie: sort values in a text.txt and display by name? Pin
User 665812-Oct-06 7:25
User 665812-Oct-06 7:25 
GeneralRe: newbie: sort values in a text.txt and display by name? Pin
hristo197712-Oct-06 9:00
hristo197712-Oct-06 9:00 
QuestionConverting semi-structured htm data to xml Pin
RichardInToronto12-Oct-06 7:06
RichardInToronto12-Oct-06 7:06 
Hi everyone,

Posting for the first time here - this looks to be a very active forum.
I have some data in an htm file, enclosed in "pre" tags (well at least the beginning tag is there). It looks like this:

<small>----- --------- ----- --------- ---- ------------------------------------- ---------------- ---------- -------- ---------------- ----------------------
      Official  Pace  Chip                                                                  Gender     Category                   Split   Split  Split
Place Gun Time   km   Time        #  Name                                  City             Plce/Tot   Plce/Tot Category          @10km   @15km  @20km
----- --------- ----- --------- ---- ------------------------------------- ---------------- ---------- -------- ---------------- ----------------------
    1 1:37:58.2  3:16 1:37:58.2    3 BETCHIM, NOURDDINE                    Montreal            1/2297    1/277  Men 30 - 34        32:37   49:24 1:05:25 
    2 1:37:59.9  3:16 1:37:59.2    2 NSENGIYUMVA, JOSEPH                   Ottawa              2/2297    1/140  Men 25 - 29        32:37   49:23 1:05:26 
    3 1:38:50.0  3:18 1:38:50.0    5 DEHBI, AMOR                           Montreal            3/2297    2/277  Men 30 - 34        32:37   49:23 1:05:46 
    4 1:40:15.4  3:21 1:40:15.4    7 KASSAP, DANNY                         Toronto             4/2297    1/52   Men 20 - 24        32:38   49:23 1:05:35 
    5 1:42:04.6  3:25 1:42:04.6   19 PAULING, RYAN                         Rochester           5/2297    2/140  Men 25 - 29        33:34   50:50 1:07:50 
    6 1:42:25.0  3:25 1:42:25.0 1817 VOLLMER, MARK                         Guelph              6/2297    3/140  Men 25 - 29        33:33   50:49 1:07:49 
    7 1:43:10.6  3:27 1:43:10.6   12 GRAF, ERIC                            Meadville           7/2297    4/140  Men 25 - 29        33:48   51:22 1:08:27 
    8 1:43:14.8  3:27 1:43:13.8   16 PRINCIC, DANIEL                       Meadville           8/2297    5/140  Men 25 - 29        34:46   52:03 1:08:42 
    9 1:43:19.5  3:27 1:43:18.8 4462 KEMP, PAUL                            Toronto             9/2297    1/354  Men 35 - 39        34:12   51:33 1:08:25 
   10 1:43:44.5  3:28 1:43:42.9 1256 MACDONALD, JAY                        Hamilton           10/2297    6/140  Men 25 - 29        33:33   50:50 1:07:49 </small>

I'd like to convert this to XML, I think it's best to do this programmatically. I'm considering using C# or Perl to do this, but I'm open to other ideas. I have the following questions:

- With Perl, setting up my regex will be elegant, but I don't know if Active Perl has any way of producing an XML file.
- With C#, it might be faster, but I don't know what class I would use to produce the XML and serialize it to disk.

All information and advice is welcome!

Thanks a lot,

Richard
AnswerRe: Converting semi-structured htm data to xml Pin
led mike12-Oct-06 7:39
led mike12-Oct-06 7:39 
GeneralRe: Converting semi-structured htm data to xml Pin
RichardInToronto12-Oct-06 16:57
RichardInToronto12-Oct-06 16:57 
AnswerRe: Converting semi-structured htm data to xml Pin
Sreenath Madyastha12-Oct-06 7:46
Sreenath Madyastha12-Oct-06 7:46 
GeneralRe: Converting semi-structured htm data to xml Pin
RichardInToronto12-Oct-06 16:59
RichardInToronto12-Oct-06 16:59 
QuestionRun EXE from Windows service Pin
kalyan.n@dsolusys.com12-Oct-06 6:54
kalyan.n@dsolusys.com12-Oct-06 6:54 
AnswerRe: Run EXE from Windows service Pin
perlmunger12-Oct-06 7:33
perlmunger12-Oct-06 7:33 
QuestionWhere does my Console output go? Pin
snorkie12-Oct-06 6:48
professionalsnorkie12-Oct-06 6:48 
AnswerRe: Where does my Console output go? Pin
User 665812-Oct-06 6:57
User 665812-Oct-06 6:57 
GeneralRe: Where does my Console output go? Pin
snorkie12-Oct-06 10:56
professionalsnorkie12-Oct-06 10:56 
GeneralRe: Where does my Console output go? Pin
User 665812-Oct-06 13:27
User 665812-Oct-06 13:27 
GeneralRe: Where does my Console output go? Pin
snorkie13-Oct-06 11:29
professionalsnorkie13-Oct-06 11:29 
QuestionHidden Files Pin
Syed Shahid Hussain12-Oct-06 6:29
Syed Shahid Hussain12-Oct-06 6:29 
AnswerRe: Hidden Files Pin
Luc Pattyn12-Oct-06 8:05
sitebuilderLuc Pattyn12-Oct-06 8:05 
Questionrdlc dynamic formatting? Pin
CryoK12-Oct-06 6:28
CryoK12-Oct-06 6:28 
AnswerRe: rdlc dynamic formatting? Pin
Private_Void12-Oct-06 6:48
Private_Void12-Oct-06 6:48 
QuestionHow to Play Stream Videos in CSharp 2005 ? Pin
hdv21212-Oct-06 6:19
hdv21212-Oct-06 6:19 
QuestionListView Groups Pin
BoneSoft12-Oct-06 4:46
BoneSoft12-Oct-06 4:46 

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.