4
I am generating an XML by Excel itself (file type XML Sheet 2003).
The generated file has the following XML data standard:
<Row>
<Cell><Data ss:Type="String">Williams</Data></Cell>
<Cell ss:StyleID="s63"><Datass:Type="Number">10644</Data></Cell>
<Cell><Data ss:Type="String">UK</Data></Cell>
<Cell><Data ss:Type="String">Qtr 2</Data></Cell>
</Row>
Creating a project in Delphi, using a Dataset and a Datasource, and making the default configuration, Delphi cannot read the fields of this XML, as occurs when we have a file in the pattern below. What to do to convert the Excel spreadsheet into an XML standard that Delphi understands, or how to interpret this XML standard?
<ROW NOME="PAMELA" DT_NASCIMENTO="19521002" DT_CADASTRO="20031020" TELEFONE="2548874"
CELULAR="93712225" EMAIL="[email protected]"/>
Incompatible types: 'Txmldocument' and 'Ixmlnode'
– user3771516
This appears when compiled the Mainnode... and Rownode line. I left the code exactly as you suggested, just changed the XML address and added Xmldocumet from the Internet tab.
– user3771516
@user3771516 I fixed the example. The type of nodes is Txmlnode or Ixmlnode. I am without Deplhi here to test the example. Any other mistake, tell me I see.
– Caputo
Ran with Ixmlnode type. Now there is another error that occurs when running the first For line. Access Violation at address 00000000. Read of address 000000. Note: The xml address is right, and it’s the default I put in the initial post. Does it have something different in the file header?
– user3771516
@user3771516 apparently Delphi is releasing Xmldocument ahead of time because it is no longer used directly. I will change now to use Ixmldocument and disable it before Finally
– Caputo
Same start fault. Incompatible types: 'Txmldocument' and 'Ixmlnode'. If you have any other suggestions, thank you. To break a branch, I’m using Excel + VBA to mount the screens I need.
– user3771516