Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is there any reason why 'SetMessage' isn't working?
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#11
RE: is there any reason why 'SetMessage' isn't working?

A forward slash at the end of an opening XML element means you're telling the parser that it is an empty element (i.e. incapable of having children). So, having something like this is going to cause issues:

<CATEGORY Name="category name" />
    <Entry Name="entry name">Some text.</Entry>
</CATEGORY>

The category ended at the first line, so any child elements and text are not properly nested, and then there's the closing tag that is not related to any opening tag. So, the proper way to do it would be:

<CATEGORY Name="category name">
    <Entry Name="entry name">Some text.</Entry>
</CATEGORY>

Tutorials: From Noob to Pro
03-25-2012, 04:20 PM
Website Find




Users browsing this thread: 1 Guest(s)