Home
Analytics
XML data source with multiple namespaces
R2D4
Hello all,
I'm quite new to BIRT and trying to get some reports up. My XML data source includes a few namespaces, which I all need in my reports. Thing is that I can't seem to figure out how to use XML data sources with multiple namespaces (used as prefixes in the instance).
How does BIRT handle this? Can I somewhere / somehow declare these namespaces to make BIRT aware of the namespaces?
Best, Rob
Find more posts tagged with
Comments
rogertu
I'm not sure I understand your problem. But I know name spaces can be included in row/column mapping XPath expressions.<br />
<br />
see the fixed bug:<br />
<a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=259467'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=259467</a>
;
R2D4
<blockquote class='ipsBlockquote' data-author="rogertu"><p>I'm not sure I understand your problem. But I know name spaces can be included in row/column mapping XPath expressions.<br />
<br />
see the fixed bug:<br />
<a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=259467'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=259467</a></p></blockquote>
;
<br />
Thanks for the answer.<br />
<br />
My XML (dummy sample)<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<root:a ... some declarations for the namespaces>
<x:p>
<x:value>0</x:value>
</x:p>
<u:q>
<u:morevalue>1</u:morevalue>
<u:q>
</root>
</pre>
<br />
Birt's XML tool doesn't seem to be able to map this, I figured because it doesn't seem to pick the namespaces. When I leave the namespaces out (so I put everything in one big namespace) it all works fine. <br />
<br />
Thanks, Rob
rogertu
What version birt are you using?
Please try versions built later than that bug is fixed.
R2D4
<blockquote class='ipsBlockquote' data-author="rogertu"><p>What version birt are you using?<br />
Please try versions built later than that bug is fixed.</p></blockquote>
<br />
I'm using the latest Eclipse Ganymede for Report designer, including all available updates. My BIRT version is 2.3.1. <br />
<br />
Is there any more recent build? Maybe some nightly I should try?<br />
<br />
Best, Rob
R2D4
<blockquote class='ipsBlockquote' data-author="R2D4"><p>I'm using the latest Eclipse Ganymede for Report designer, including all available updates. My BIRT version is 2.3.1. <br />
<br />
Is there any more recent build? Maybe some nightly I should try?<br />
<br />
Best, Rob</p></blockquote>
<br />
Hi, <br />
<br />
I just updated DTP with a development version and not it works. Thanks for your help!<br />
<br />
Best, Rob