Hi,
my data.xml looks so
I can access chatID and question so:
But how can I map answers???
Thanks in advance.
my data.xml looks so
Code:
<chatStatistics>
<chatStatistic>
<chatID>Chat3</chatID>
<question>Question A</question>
<answers>
<answer>
<nr>1</nr>
<rating>5</rating>
<text>Answer 1</text>
<expert>expert</expert>
</answer>
<answer>
<nr>2</nr>
<rating>5</rating>
<text>Answer 2</text>
<expert>expert</expert>
</answer>
</answers>
</chatStatistic>
<chatStatistic>
...
</chatStatistic>
...
<chatStatistics>
Code:
setRecordXPath("//chatStatistic");
DataSourceTextField chatIDField = new DataSourceTextField("chatID", "Chat ID");
chatIDField.setRequired(true);
DataSourceTextField queationField = new DataSourceTextField("question", "Question");
queationField.setRequired(true);
Thanks in advance.
Comment