Dear all,
I want work a project as Demo_stock.
But data into a file XML .
I have try modifi demo but i can't .
Plz help me.
You can work file demo help me.
Printable View
Dear all,
I want work a project as Demo_stock.
But data into a file XML .
I have try modifi demo but i can't .
Plz help me.
You can work file demo help me.
Where did you stuck?
I don't know code how into data into file XML.
Plz help me.
You can code a simple example ?
Quote:
<?xml version="1.0"?>
<pairs>
<pairitem>
<pair>GOLD</pair>
<bid>1004.40</bid>
<ask>1004.90</ask>
<updown>up</updown>
</pairitem>
<pairitem>
<pair>SILVER</pair>
<bid>16.69</bid>
<ask>16.74</ask>
<updown>up</updown>
</pairitem>
</pairs>
hi,
you just have to write an adapter that reads your xml file and publishes updates to lightstreamer.
The internet is full of articles about XML and Java, you could start with those:
Parse using SAX or DOM
Should I use SAX or DOM?
Also this thread could contain some hints.
HTH