Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Encoding a report design in another xml?
Encoding a report design in another xml? [message #756815] Tue, 15 November 2011 09:13 Go to next message
js Missing name is currently offline js Missing name
Messages: 73
Registered: July 2009
Member
I use a xml file to exchange data between a client and a server. Now I need to transfer a rptdesign file from the client to the server via this xml file.

First I thought of embedding the rptdesign file as CDATA, but since the rptdesign file might contain CDATA itself this it not a good idea (nesting CDATA is not allowed, there are workarounds though):

http://www.w3schools.com/xml/xml_cdata.asp
http://web-design.blogs.webucator.com/2010/11/20/nesting-cdata-blocks/

Optionally the data can be encoded using eg. base64.

Now to my question does the birt api/runtime offer any tools for embedding rptdesign files into eg. xml files?
Re: Encoding a report design in another xml? [message #756946 is a reply to message #756815] Tue, 15 November 2011 16:12 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I think the b64 option is your best option.

Jason

On 11/15/2011 4:13 AM, js wrote:
> I use a xml file to exchange data between a client and a server. Now I
> need to transfer a rptdesign file from the client to the server via this
> xml file.
>
> First I thought of embedding the rptdesign file as CDATA, but since the
> rptdesign file might contain CDATA itself this it not a good idea
> (nesting CDATA is not allowed, there are workarounds though):
>
> http://www.w3schools.com/xml/xml_cdata.asp
> http://web-design.blogs.webucator.com/2010/11/20/nesting-cdata-blocks/
>
> Optionally the data can be encoded using eg. base64.
>
> Now to my question does the birt api/runtime offer any tools for
> embedding rptdesign files into eg. xml files?
Previous Topic:Set master page header height different for different pages
Next Topic:Trying to create a report variable that returns yesterday's date in yyyy-MM-dd format
Goto Forum:
  


Current Time: Fri Oct 31 19:34:03 GMT 2014

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

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