Skip to Content.
Sympa Menu

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

Subject: OpenSAML user discussion

List archive

Detecting "xsi:nil" in AttributeValue


Chronological Thread 
  • From: "Clifford Johnson" <>
  • To: <>
  • Subject: Detecting "xsi:nil" in AttributeValue
  • Date: Wed, 12 Mar 2008 14:29:16 -0700

I may be missing something, but it seems that the org.opensaml.saml2.core.AttributeValue interface should have a method to determine whether or not the attribute value is marked “xsi:nil=true”.  At a minimum, it should extend the org.opensaml.xml.AttributeExtensibleXMLObject interface in order to have access to the org.opensaml.xml.AttributeExtensibleXMLObject#getUnknownAttributes method to get the “xsi:nil” attribute.  Right now, in order to determine if an AttributeValue is nil, I have to “hope” that the object is an XSAny so I can get the unknown attributes to see the xsi:nil value.

 

Am I missing something and not going at this the right way?

 

(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].)

 

Thanks.

 

Clifford




Archive powered by MHonArc 2.6.16.

Top of Page