Re: [CODE] Stuck with recieving data from descriptor....

From: Daniel A. Koepke (
Date: 06/16/01

On Sat, 16 Jun 2001, Pure Krome wrote:

> The client_interpreter now goes OH! you want a list of all the mortals
> online ... hmm. ok .. here's the XML data of them.

The server sends

    <p name="Feeble" level="30" class="Ma">Feeble the Arch-Mage</m>
    <p name="Fiible" level="3" class="Wa">Fiible the Fledgling</m>
    <p name="Foible" level="5" class="Cl">Foible the Clergy Man</m>

You know the list of mortals is over when you receive the </players> tag.

Remember that XML is a _structured_ language.  Data can be nested.  The
benefit of this is that you don't need to consider a bunch of weird
schemes for handling lists or other data that should be grouped together,
like prefixing the output with special identifiers, etc.  The data just is
grouped together.  You can determine when you've reached the end of the
data by noting that you've encountered the terminating tag for that block
of data.

Daniel A. Koepke (dak),
Caveat emptor: I say what I mean and mean what I say.  Listen well.
Caveat venditor: Say what you mean, mean what you say.  Say it well.

   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 12/05/01 PST