1. What is meant by HexBinary Encoding,how is this done?
2. How must i convert a IPv4 Address to HexBinary Format ???
The schema datatypes spec defines a hexBinary format. You can see it
at:
http://www.w3.org/TR/xmlschema-2/#hexBinary
Basically each byte is represented by two ASCII hexadecimal
characters.
It's also common in schemas to represent IP addresses using xs:string
and then restrict that with a pattern along the lines of:
<xs
attern value="[1-9][0-9]{0,2}(\.[1-9][0-9]{0,2}){3}"/>
You can refine the pattern if you like to take into account that you
don't get IP addresses like 876.432.354.974, but that's too much like
hard work for me!
HTH,
Pete.
--
=============================================
Pete Cordell
Codalogic Ltd
for XML Schema to C++ data binding visit
http://www.codalogic.com/lmx/
=============================================