The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: News.Report message schema in xAPFramework.net


  • Subject: Re: News.Report message schema in xAPFramework.net
  • From: Stuart Booth
  • Date: Tue, 23 Sep 2003 17:11:00 +0000

On Tue, 23 Sep 2003 00:16:17 +0100, James <<a
href="/group/xAP_developer/post?postID=S4SR_pc6PGjUeGTZwZKqfRd0bChOemEryc-zZUTMjPEqsmI7qVLfzA2RUWz59dcRL4nXXHLz">James@m...</a>>
wrote:

>> James, do you always include the index number in the News.Report
>> schema News.Feed blocks, even when there is only the one block in
the
>> entire message?

>Yup. It's so if I want story one I know it is always at
>news.report:news.story.1:Title It would just get messy if you had to
>look at news.report:news.story:Title as well .
>I like things simple

No problem. The current encapsulation of your schema does it exactly
as you require, although at the moment the general implementation up
in the actual base classes of the xAPFramework does not.

The general version adds a block exactly as you specify it e.g.
"Block.Name". Add a subsequent block of the same name and IFF the
unique block names property is set to true will it rename the first
block to "Block.Name.1" and add the 2nd as
"Block.Name.2".

If the unique block names property is left as false, you'll end up
with:

Block.Name
{
}
Block.Name
{
}

None of this prevents you adding in "Block.Name.4" if that's what
you
want to do, or adding them in yourself manually exactly as you want
without intervention from the framework, etc etc. Ie it gives extra
options and possibilities where possible.

S
--
Stuart Booth
xAPFramework.net - a reusable xAP framework for .net

<a href="http://www.xapframework.net/";>http://www.xapframework.net/</a>
<a
href="/group/xAP_developer/post?postID=P51rTsfgj-xJIAXDO9u9fLGVjxvgzCtMsOJfFcOFtciSOAGcjU3FsayV5OANJRlCBeJXgTiGzpvVcI474g">stuart@x...</a>





xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.