Page 1 of 1

Output Content of XML-Element?

Posted: Thu May 03, 2012 11:54 am
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.

Output Content of XML-Element?

Posted: Fri May 04, 2012 10:09 am
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.

Output Content of XML-Element?

Posted: Wed May 16, 2012 10:07 am
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


Output Content of XML-Element?

Posted: Thu May 17, 2012 5:26 am
by Ivan
Hello,

Let us know if you need any additional help.

Thank you.

Output Content of XML-Element?

Posted: Fri May 18, 2012 10:03 am
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

Output Content of XML-Element?

Posted: Mon May 21, 2012 10:03 am
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.

Output Content of XML-Element?

Posted: Tue May 22, 2012 4:44 am
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

Output Content of XML-Element?

Posted: Wed May 23, 2012 6:02 am
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.