Hi,
I would like to know how can I parse the following htm file :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML xmlns:MSHelp="http://msdn.microsoft.com/mshelp" DIR="LTR"><HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>RegCopyFile</TITLE>
<xml>
<MSHelp:TOCTitle Title="RegCopyFile"/>
<MSHelp:RLTitle Title="RegCopyFile"/>
<MSHelp:Keyword Index="K" Term="RegCopyFile"/>
<MSHelp:Keyword Index="A" Term="wce50lrfRegCopyFile"/>
....
<MSHelp:Attr Name="TargetOS" Value="WinCE"/>
<MSHelp:Attr Name="TargetOSVers" Value="kbwce50"/>
<MSHelp:Attr Name="TopicType" Value="apiref"/>
</xml>
<SCRIPT SRC="../scripts/dtuelink.js"></SCRIPT><META NAME="msdnID"
CONTENT="_1042004">
</HEAD>
<body topmargin=0 id="bodyID" class = "dtBODY"><!--NONSCROLLING BANNER
START-->
<div id="nsbanner">
<div id="bannerrow1">
<TABLE CLASS="bannerparthead" CELLSPACING=0>
<TR ID="hdr">
<TD CLASS="runninghead" nowrap>
<!--BANNER TITLE START-->Platform Builder for Microsoft Windows CE
5.0<!--BANNER TITLE END-->
</TD>
<TD CLASS="product" nowrap> </TD>
</TR>
</TABLE>
</div>
<div id="TitleRow">
<H1 class="dtH1"><A NAME="wce50lrfregcopyfile"></A>RegCopyFile</H1>
</div></div>
<!--NONSCROLLING BANNER END-->
<DIV id="nstext" valign="bottom"><!--Content Start-->
<P>This function saves a copy of the current Windows CE RAMbased
registry to a specified file.</P>
<PRE class="syntax"><B>BOOL RegCopyFile( </B>
<B>LPCWSTR </B><I>lpszFile </I>
<B>);</B></PRE>
This file is the MSDN help for Wince5.
Actually I have a file as shown below :
{ 2, "InitializeCriticalSection", ARG(5), 0xFFFFFFFF,
0x00000001, HK_InitializeCriticalSection },
{ 3, "DeleteCriticalSection", ARG(5), 0xFFFFFFFF,
0x00000001, HK_DeleteCriticalSection },
and for each function I want to parse the corresponding HTML file to
extract the signature.
To be sure the HTML file is the right I want to check that Topictype is
apiref : MSHelp:Attr Name="TopicType" Value="apiref"
and then extract the signature present bewteen <PRE class="syntax"and
</PREwithout all the <B><Istuff.
Could someone tell me the class to use because I am new to .NET.
I just need to know if I have to use XMlReader or XmlDocument, ....