Thread: Poker Hand XML
View Single Post
  #9  
Old 07-31-2007, 10:05 PM
jamzfive jamzfive is offline
Senior Member
 
Join Date: Mar 2006
Location: PA, USA
Posts: 181
Default Re: Poker Hand XML

[ 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.

[/ QUOTE ]

Maybe this used to be true, but it's certainly not still the case, as "sequence" is one of the compositors available in the XML Schema specification.

jb
Reply With Quote