Skip to Content.
Sympa Menu

mace-opensaml-users - RE: Detecting "xsi:nil" in AttributeValue

Subject: OpenSAML user discussion

List archive

RE: Detecting "xsi:nil" in AttributeValue


Chronological Thread 
  • From: "Scott Cantor" <>
  • To: <>
  • Subject: RE: Detecting "xsi:nil" in AttributeValue
  • Date: Thu, 13 Mar 2008 11:00:14 -0400
  • Organization: The Ohio State University

> (Based on my reading of XML Schema Part 1, the xsi:nil attribute is
defined
> in *every* schema with global scope suggesting that an "isNil()" method
> should be in org.opensaml.xml.XMLObject along with getSchemaType() [for
> xsi:type], getSchemaLocation() [for xsi:schemaLocation], and
> getNoSchemaLocation() [for xsi:noSchemaLocation].)

No, that wouldn't make sense. Not every type is nillable (in fact very few
are). The attribute is global but it's legality isn't, same as with
xml:lang.

What makes sense is for nillable types to carry it as a flag, unless they
extend other classes that would give you access to the arbitrary attributes.

-- Scott





Archive powered by MHonArc 2.6.16.

Top of Page