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
