Home > Back-end >  XML fast write dbgrid (don't use. XTR) way
XML fast write dbgrid (don't use. XTR) way

Time:09-16

XML fast write dbgrid (don't use. XTR) way

CodePudding user response:

According to the method to read text reading.

CodePudding user response:


Connect the DBGrid a AdoQuery, will write values in AdoQuery after XML parsing,

Var
Node: IXMLNode;
XMLDocument1: TXMLDocument;
The begin
XMLDocument1. LoadFromFile (' XML file path);
Node:=XMLDocument1. DocumentElement;
For I:=0 to GNode..childnodes. Do the Count - 1
Operating cycle take nodes assignment
end;

CodePudding user response:

Attention, the great god appeared to solve

CodePudding user response:

XML Root and node, the node and text and attributes, can only by XML syntax parsing.

CodePudding user response:

If your XML is ClientDataSet generated, can ClientDataSet.XMLData=https://bbs.csdn.net/topics/xml directly, and then set the datasource associated with the grid these can
  • Related