View Single Post
  #1 (permalink)  
Old 11-11-2007, 08:49 PM
yildi yildi is offline
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default Newbie - question about loadXML

Hi to all,

After having bought basic4PPC some years ago, I have at the end some time to play with it. My first project is normally very simple: I try to write a small PPC application that would allow me to view the XML output of my actions in the GettingThingsDone software called ThinkingRock.

It can export in the XML format and the output looks like the following:

<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<desc>Call YYY</desc>
<context-desc>None</context-desc>
<topic-desc>Recherche</topic-desc>
<project-desc>Project XXX</project-desc>
<action-date>sam. 10 nov. 2007 00:00:00</action-date>
</action>
</actions>

When I try to load this file to a table, doing

file = OpenDialog1.File
Table1.LoadXML (file)

I get an error ath the line LaodXML telling me it is impossible to find table 0

What am I doing wrong? What are the constraints about the XML files that can be load to the table control? I cannot find anything on this point in the help file, neither in the table sample written by Erel. I am rather lost...

Precisions: I try this code on the desktop. The error appears after having chosen the xml file in the open file dialog.

Thank you very much in advance for your help.

Murat

Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French
PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...)

Last edited by yildi : 11-11-2007 at 08:54 PM.
Reply With Quote