// now get the value
try
{
Node child = root.getFirstChild();
if (child == null)
return new StringAttribute("");
//get the type of the node
short nodetype = child.getNodeType();
// now see if we have (effectively) a simple string value
if ((nodetype == Node.TEXT_NODE) || (nodetype == Node.CDATA_SECTION_NODE)
|| (nodetype == Node.COMMENT_NODE))
{
return new StringAttribute(child.getNodeValue());
}
return AttributeFactory.getInstance().createValue(child, type);
}
catch (UnknownIdentifierException uie)