BUG while setting a Room Attribute VALUE to an XML String

All Union Platform questions, comments, feature requests, and bug reports.

BUG while setting a Room Attribute VALUE to an XML String

Postby sean » Wed 14 May 2014 11:02

I know that Union Protocol messages are sent as XML and I assumed it would be okay to set an Attribute Value to XML String to be parsed as XML in ActionScript when it arrives to the client.

It seems it works sometimes and doesn't work at other times...is this a known issue? Any work arounds?

Code: Select all
[<U>
   <M>S2C_ROOM_ATTR_UPDATE(u9)</M>
   <L>
      <A><![CDATA[CRO1-X]]></A>
      <A>10</A>
      <A><![CDATA[table-1]]></A>
      <A>
         <![CDATA
         [<table playersWaiting="1" gameInProgress="0" isPrivate="0">
            <seat number="1" userName=" " score="0" hiatus="0" />
            <seat number="2" userName="admin" score="0" hiatus="0" />
            <seat number="3" userName=" " score="0" hiatus="0" />
            <seat number="4" userName="admin" score="0" hiatus="0" />
         </table>]
         ]>
      </A>
   </L>
</U>]


After calling Room.getAttribute() , sometimes the String gets the Union </A> added onto the end when parsing through Reactor and it triggers an error for badly formed XML:
Code: Select all
<table>
...
</table>
</A>


Please help...I'm suck...

:-(
sean
 
Posts: 40
Joined: Sun 13 Nov 2011 15:47

Return to Union Platform

Online

Users browsing this forum: No registered users and 7 guests