Skip to main content



      Home
Home » Archived » BIRT » Problem with XML data source
Problem with XML data source [message #158175] Thu, 04 May 2006 06:31 Go to next message
Eclipse UserFriend
Hi,

I'm trying to use the XML data source in the latest 2.1 milestone. I have
successfully mapped most of my XML element. But I have problems with the
following snippet:

?xml version="1.0" encoding="UTF-8"?>
<ComparisonReport>
<ComparisonResult>
<ChangedFiles>
<File path="d:\bal\BG100.bal">BG100.bal</File>
<File path="d:\bal\BG105.bal">BG105.bal</File>
<File path="d:\bal\BG100.bal">BG100.bal</File>
<File path="d:\bal\BG105.bal">BG105.bal</File>
</ChangedFiles>
</ComparisonResult>
</ComparisonReport>

I use /ComparisonReport/ComparisonResult/ChangedFiles as the table mapping
and /File as column mapping. But I only get the first File element as
output in the table preview (in the column mapping dialog) and in the
report preview.

I can't figure out what I am doing wrong. Please help me.

Best Regards

Henrik
Re: Problem with XML data source [message #159239 is a reply to message #158175] Tue, 09 May 2006 02:00 Go to previous message
Eclipse UserFriend
Your table mapping is off. Use
"/ComparisonReport/ComparisonResult/ChangedFiles/File" to define table
mapping. Then use "/" to define a "File" column if you want the text value
of the <File> node ( "BG100.bal", "BG105.bal", etc.). Or "/@path" if you
want the file paths.

regards,

--
Gary Xue
Actuate Corporation - Product Development
BIRT Committer
"Henrik J
Previous Topic:Nested Loop in XML DS.
Next Topic:Why is "onRowSets()" not called in my ReportElement?
Goto Forum:
  


Current Time: Sat May 10 08:58:30 EDT 2025

Powered by FUDForum. Page generated in 0.03114 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top