delphi中怎样解析html文档,获得里面的值和图片的文件名。
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><head><title></title><...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
--></style>
</head>
<body>
<p><img align=middle alt="" hspace=1 vspace=1 src="1.jpg">refads<img align=middle alt="" hspace=1 vspace=1 src="2.jpg"><img align=middle alt="" hspace=1 vspace=1 src="3.jpg"><img align=middle alt="" hspace=1 vspace=1 src="4.jpg">oooo<img align=middle alt="" hspace=1 vspace=1 src="5.jpg">ooooo<img align=middle alt="" hspace=1 vspace=1 src="6.jpg"></p>
<hr noshade size=1>
</body></html>
上边是html文件,我想得到jpg的文件名字。 展开
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
--></style>
</head>
<body>
<p><img align=middle alt="" hspace=1 vspace=1 src="1.jpg">refads<img align=middle alt="" hspace=1 vspace=1 src="2.jpg"><img align=middle alt="" hspace=1 vspace=1 src="3.jpg"><img align=middle alt="" hspace=1 vspace=1 src="4.jpg">oooo<img align=middle alt="" hspace=1 vspace=1 src="5.jpg">ooooo<img align=middle alt="" hspace=1 vspace=1 src="6.jpg"></p>
<hr noshade size=1>
</body></html>
上边是html文件,我想得到jpg的文件名字。 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询