Are we talking Delphi 2005? I guess so, but you need to be clear on this as it is completely different to previous versions, being a .NET language. Although I don't use it, it should share 99% of the functionality with the other .NET languages. In this case the DataSet class should have a LoadXml() method which does exaxtly what you need. However, your XML document will need to be formed differently - most importantly is the embedded schema which defines the record structure and datatypes. There are oodles of resources on the web which explain the layout better than I can. Displaying it on the grid is a simple matter of binding the DataSet to the grid control. BTW you don't need to use a component for the XML document. Just declare and load it inside your function then set it to nil when you're finished.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.