Re: Poker Hand XML
[ QUOTE ]
<action no="2" player="abc" type="2" sum="$0.50"/><action no="3" player="def" type="2" sum="$0.50"/><action no="1" player="ghi" type="1" sum="$0.25"/>
This really means:
ghi posted small blind of 0.25
abc posted big blind of 0.50
def posted big blind of 0.50
[/ QUOTE ]
One thing that you have to realise concerning xml is that you should never ever make any xml standard that is positional depending.
If you have an action section like this:
<hand>
starting stack info, handnumber etc.....
<preflopaction>
<blind>
<player1 kind=sb>$0.10</player1>
<player2 kind=bb>$0.20</player2>
<player3 kind=lb>$0.20</player3>
The sequence of the above <player1>, <player2> and <player3> are not required to be in exactly that order, if they are it is not xml. No order is to be infered by the sequence, it has to be inferred by the attributes, in this case the kind attribute where sb is small blind, lb is live blind.
|