Output Content of XML-Element?

Stimulsoft Ultimate discussion
Post Reply
csbrogi
Posts: 89
Joined: Thu May 03, 2012 11:47 am
Location: Germany

Output Content of XML-Element?

Post by csbrogi »

Hello,
I am new to Stimulsoft and want to know, wether it is possible to output the value of an XML-Element. I only managed to print attribute values.
For example I have the following data

Die Beschreibung der Fachklasse 2-07 aus Paket "Fachklassenpaket 2".

Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


And want to generate the following as output:
Beschreibung
Die Beschreibung der Fachklasse 2-07 aus Paket "Fachklassenpaket 2

Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Output Content of XML-Element?

Post by HighAley »

Hello.

The unsupported html tags are invisible. You should prepare data for such output because "Titel" attribute will be ignored too.

Thank you.
csbrogi
Posts: 89
Joined: Thu May 03, 2012 11:47 am
Location: Germany

Output Content of XML-Element?

Post by csbrogi »

Hello,

I found a solution for my problem:
if you have the following XML you cannot output the text:

Code: Select all

text 1
text 2
But if you chage your XML to the following format

Code: Select all

text 1/
text 2/
you can build a subreport for the bar-elements and display the baz content there. This solved my problem.

Clemens

Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Output Content of XML-Element?

Post by Ivan »

Hello,

Let us know if you need any additional help.

Thank you.
csbrogi
Posts: 89
Joined: Thu May 03, 2012 11:47 am
Location: Germany

Output Content of XML-Element?

Post by csbrogi »

Hello
well the proble how to display mixed text is still difficult - I want to display the following XML in one Text-Field, with the formatting given by the text - the only way how to achive this, seems to be the usage of RTF?!

Code: Select all

 
	  Hier steht eine äußerst interessante
	  Spezifikation.
	  Dies ist ein
	  Hyperlink.
  
Regards
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Output Content of XML-Element?

Post by HighAley »

Hello.
csbrogi wrote:well the proble how to display mixed text is still difficult - I want to display the following XML in one Text-Field, with the formatting given by the text - the only way how to achive this, seems to be the usage of RTF?!

Code: Select all

 
	  Hier steht eine äußerst interessante
	  Spezifikation.
	  Dies ist ein
	  Hyperlink.
  
The list of supported html tags you could find in our manual at the 3.6 HTML Tags section.
You could use and tags for this needs.
But if you want to use Hyperlink. You could set the Hyperlink property for the whole text component.

As an option you could copy Richtext with hyperlink to the Richtext component but it will be shown right in Word or Richtext exports.

Thank you.
csbrogi
Posts: 89
Joined: Thu May 03, 2012 11:47 am
Location: Germany

Output Content of XML-Element?

Post by csbrogi »

Hello,
The list of supported html tags you could find in our manual at the 3.6 HTML Tags section.
You could use and tags for this needs.
But if you want to use Hyperlink. You could set the Hyperlink property for the whole text component.
but as far as I understand the documentation HTML-tags are only supported in fixed texts, not inside the values read from the xml-data-source, so the only way to generated formatted text is to use rtf-text or am I missing something?

Thanks
Clemens
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Output Content of XML-Element?

Post by HighAley »

Hello, Clemens.
csbrogi wrote:but as far as I understand the documentation HTML-tags are only supported in fixed texts, not inside the values read from the xml-data-source, so the only way to generated formatted text is to use rtf-text or am I missing something?
HTML-tags are supported in both cases. But you should use Character entity references in the XML file. For example, the Grade field:

Code: Select all

<b>B</b>
Thank you.
Post Reply