In your file "some.xml" try adding the line
<?xml version="1.0" encoding="UTF-8" ?>
to the top.

I think this should fix your problem, assuming that the xml file is actually saved with UTF-8 encoding. If it is saved with another character set, you need to find an editor that will let you save in UTF-8.


Mikko Valjento wrote:
Hello again,

I think I was bit too quick to send the previous message. I now managed to
trace the problem to some special characters I have in the xml file. Many
scandinavian names have characters like a with umlaut and o with umlaut.
When I removed these, the all the rows displayed correctly.

I'm not sure how to go around this problem though.. Why is the data
displayed in the first instance but cuts the dataset short in the second
instance? Maybe it has something to do with how IIS encodes the data?

Mikko


-----Alkuperainen viesti-----
Lahettaja: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Mikko Valjento
Lahetetty: 26. lokakuuta 2006 20:54
Vastaanottaja: [email protected]
Aihe: [Laszlo-user] loading xml data, only a few rows displayed


Hello,

I have a problem loading simple XML data. The solution must be quite simple,
but despite searching the Laszlo reference and developer's guide I haven't
found the error yet.

I have a very simple XML file that I'm attempting to display in a grid. The
file is located in the my-apps directory. For some reason, if I refer to the
file simply as "some.xml", all the rows in the file are displayed in a grid.

<dataset name="mydata" src="some.xml" />
<simplelayout axis="y" spacing="0" />
<grid datapath="mydata:/root" />

However, in the following case only the first few rows are displayed:

<dataset name="mydata"
src="http://localhost:8080/lps-3.3.3/my-apps/some.xml"; request="true" />
<simplelayout axis="y" spacing="0" />
<grid datapath="mydata:/root" />

I tried two different files and got different number of rows displayed, but
in both cases only the first few items. If I access the file with the above
URL with my browser, all the data in the file is displayed correctly.

Any ideas?

Regards,
Mikko






--
Jason Stafford
Principal Developer
Inspiration Software, Inc.
The leader in visual thinking & learning

InspireData(tm), the newest innovative thinking and learning tool from
Inspiration Software(r), extends the proven power of visual learning to
data analysis. Learn more at www.inspiration.com.
503-297-3004 Extension 119
503-297-4676 (Fax)
9400 SW Beaverton-Hillsdale Highway
Suite 300
Beaverton, OR 97005-3300

Reply via email to