Hi,

I want to get attribute values of "min" and "max" (see below)
and found this code: Is this the proper sulution for me?

const XMLCh * DOMElementImpl::getAttribute(const XMLCh *nam) const
{
    static const XMLCh emptyString[]  = {0};
    DOMNode * attr=0;

attr=fAttributes->getNamedItem(nam);

    if (!attr && fAttributes->hasDefaults())
      attr=fDefaultAttributes->getNamedItem(nam);

    const XMLCh *retString = emptyString;
    if (attr != 0)
        retString = attr->getNodeValue();

    return retString;
};


XML: ---- <ElementLength min="2" max="2"/>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to