How can I link one piece of data from a xml-file?

asked 2016-08-03 09:46:18 +0200

blab gravatar image

Hello, i am writing a report and I have Data in a xml-file that is supposed to be included in the report. I will write more then one report and only the data needs to be changed. So I was wondering if you could link the data. I know that this is possible in microsoft word (IncludeText-Field), but I do not have access to a computer with “word” for writing this reports.

for exaple:

My xml-file

<?xml version="1.0"?>
<payments>
  <payment1>
    <purpose>CD</purpose>
    <amount>12.95</amount>
    <tax>19.1234</tax>
    <maturity>2008-03-01</maturity>
  </payment1>
</payments>

and I only want to link the 12.95.

I already tried different methods. So far I like "section" the most. But I either manage to linke the whole file or I get an empty section. I think my input might be wrong. Does anybody have any ideas regarding this? (Totally different ideas would be very welcome too!)

edit retag flag offensive close merge delete

Comments

Also posted on http://en.libreofficeforum.org/node/1... - it's a lot nicer if you post such links yourself, so the discussion can take place in one location and people don't waste offering solutions that have been offered somewhere else already.

floris v gravatar imagefloris v ( 2016-08-03 10:28:39 +0200 )edit

Sorry, did not know/think about it!

blab gravatar imageblab ( 2016-08-03 13:33:33 +0200 )edit