<speakword color="#888888" background-color="#008000" >
<i>
<b>Hello,Fanciex!</b>
</i>
</speakword>
我要從這個XML串中提取出各個元素如用(dom)應如何做?給出完整例子加100分。
<i>
<b>Hello,Fanciex!</b>
</i>
</speakword>
我要從這個XML串中提取出各個元素如用(dom)應如何做?給出完整例子加100分。
解决方案 »
- 如何检测屏蔽键盘钩子的拦截
- 有谁知道在那里可以下到网吧管理、酒店管理软件,请大家帮个忙!
- 快速读取大文本文件..
- 关于图片的问题?
- myling(阿德), firetoucher(风焱) 过来拿分,刚才结贴没看到你的回复
- 我是一个新手谁帮我一下谢谢
- 帮忙呀各位,关于主表和从表的!
- 如何把C/S程序改写为B/S程序?
- tmidaspageproducer的htmlfile文件的加载问题?
- 原来贴过,无人能解决,网络程序高手请进,如何监测局域网中他人的网卡的工作模式,如何发现局域网中的监听器??
- 请问酒店管理软件的客房管理中的动态客房图是怎么制作的?大家发言,交流交流吧。
- 大家来看看人民教育出版社的书,如此粗劣!义务教育教材竟然雷同!!!---请斑竹不要删除好么
xmldocument1.xml为:
-------------------------------------------
<speakword color="88ff99" background-color="0088000" b="true" i="true" >
"Hello,Fanciex!"</speakword>
----------------------------------
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, xmldom, XMLIntf, StdCtrls, msxmldom, XMLDoc;type
TForm1 = class(TForm)
XMLDocument1: TXMLDocument;
Edit1: TEdit;
Edit2: TEdit;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
edit1.Text:=xmldocument1.DocumentElement['speakword'];
end;end.
--------------------