thanks for the answers. This point is clear,however it brought up some 
new questions.
The Hex Format still is not clear. Especially not for arrays.
What must the xml encoding of an array in Hex format look like, i.e. are 
they grouped into blocks of 4 separated by spaces? If so, what about 
padding? For example, if we have a byte array in hex format. One needs 
two hex digits to represent a byte. But what if a byte's value is 
smaller than 16 (-> value can be decoded by a single hex digit). Do we 
add a leading zero to the xml encoding?
For example:
Having a byte array with two elements: [255,1]. Now, if we encode this 
as xml in hex format, do we have <element>FF1</element> or
<element>FF01</element> or should be group it by byte using spaces, 
giving us  <element>FF 1</element> or possibly <element>FF 01</element>?
<element>FF01</element>would make the most sense to me.

best.
Basil

Gordon Waidhofer schrieb:
> Bytes are in most significant to least significant order
> (increasing addresses on the tag).
> The bitstring is aligned at the most significant bit.
> Zero padding on the right (least significant).
>
> -----Original Message-----
> From: [EMAIL PROTECTED] on behalf of John R. Hogerhuis
> Sent: Mon 11/19/2007 11:46 PM
> To:   LLRP Toolkit Development List
> Cc:   
> Subject:      Re: [ltk-d] XML Encoding of Bit Array in Hex format
>
> On Nov 19, 2007 11:18 PM, Basil Gasser <[EMAIL PROTECTED]> wrote:
>   
>> According to the XML file (llrp-1x0-def.xml), there exist Bit Arrays in
>> Hex Format. For example field TagMask of parameter C1G2TargetTag.
>> I was wondering how a Bit Array can be in Hexadecimal format.
>> Can someone please give an example of what the XML encoding should look
>> like?!.
>>
>> thx.
>>     
>
> Well actually representing bit arrays with raw binary bitstrings in
> the XML would be unwieldy and difficult to look at.
>
> So I elected to represent bit arrays as hexadecimal, with no spaces between.
>
> The problem you run into is that xs:hexBinary only lets you define a
> number of bits evenly divisible by 8. But bit arrays may not have a
> length in bits evenly divisible by 8.
>
> So, I added the Count attribute. If you don't have a number of bits
> evenly divisible by 8, then put a Count attribute to indicate the
> actual total number of bits you are attempting to represent.
>
> -- John.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> llrp-toolkit-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> llrp-toolkit-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to