[Home] [By Thread] [By Date] [Recent Entries]

  • From: noah_mendelsohn@u...
  • To: "Michael Kay" <mike@s...>
  • Date: Mon, 15 Jan 2007 11:50:38 -0500

Michael Kay writes:

> >         <e xsi:type="xs:integer">123</e>
> > 
> > You have asserted that <e> is an integer.  In particular, you 
> > have asserted that its type is specifically the integer type 
> > specified in the XML Schema Recommendation [2]. 
> 
> Moreover, if the recipient doesn't trust the sender, they can put the
> document through a schema validator to check that integer was the 
expected
> or permitted type for element e.

Indeed, at least to check that the lexical form is consistent with the 
asserted type.  Of course, if you really don't trust the sender, it would 
be that 123 I'd be worried about ;-).

Noah

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member