xml文件
Time
="2008-1-28 09:00" Time="120" ScoreValue="100" Score="0">
Count
="1" Score="0">
if
ficulty="1" ScoreValue="20" Score="0">
诸葛亮姓什么?
Key
="1">诸
诸葛
诸葛亮
亮
2
三国是指那三国?
魏国
吴国
辽国
蜀国
1,2,4
刘备建立了蜀国?
0
1
1
三国里的五虎上将是指关羽,$_4.1_$,$_4.2_$,$_4.3_$,赵云。
]]>
张飞
魏延
马超
为什么诸葛亮没能统一三国?
因为魏国统一了三国。
<?xml version="1.0" encoding="UTF-8" ?>xmlns:xsl="http://www.w3.org/1999/XSL/Trans
for
m"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:rules="http://www.netguy.cn/xslt"
exclude-result-prefixes="rules msxsl">
uage="
C#
">
public
static
string
ChangeTextBox(string content)
{
// Define a regular expression for repeated w
ord
s.
Regex rx =
new
Regex(@"\$_\S\S\S_\$",
RegexOptions.Compiled | RegexOptions.IgnoreCase);
// Find matches.
MatchCollection matches = rx.Matches(content);
// Report on
each
match.
foreach
(Match match in matches)
{
string word = match.Value;
content=content.Replace(word,"
Substr
ing(2,word.Length-4)+"\" type=\"text\">");
}
return
content;
}
]]>
<
head
>
姓名:
学号:
开考时间:
时间:
总分: