Skip to Content.
Sympa Menu

mace-opensaml-users - How can I create an instance of a AttributeValue

Subject: OpenSAML user discussion

List archive

How can I create an instance of a AttributeValue


Chronological Thread 
  • From:
  • To:
  • Subject: How can I create an instance of a AttributeValue
  • Date: Fri, 29 Feb 2008 10:10:41 -0500 (EST)

How can I create an instance of an AttributeValue of a simple type such as
xs:string.

I have tried the following, but the returned XMLObjectBuilder is null.

XMLObjectBuilder xmlObjectBuilder =
xmlObjectBuilderFactory.getBuilder(AttributeValue.DEFAULT_ELEMENT_NAME);

XSString xsString =
(XSString)xmlObjectBuilder.buildObject(AttributeValue.DEFAULT_ELEMENT_NAME,
XSString.TYPE_NAME);

xsString.setValue(value);

Thanks

Regards

Matthew Webb



Archive powered by MHonArc 2.6.16.

Top of Page