X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2FAbstractAttributeExtensibleXMLObject.cpp;h=166e96c696a50c7b1773fb321cba160892577387;hp=a89d8a1a7012cc44765dc5d8e43fb764320a8c86;hb=2d795c731e6729309044607154978696a87fd900;hpb=6be00e059abcb7ccf026c9fca93ae147032ee2b0 diff --git a/xmltooling/AbstractAttributeExtensibleXMLObject.cpp b/xmltooling/AbstractAttributeExtensibleXMLObject.cpp index a89d8a1..166e96c 100644 --- a/xmltooling/AbstractAttributeExtensibleXMLObject.cpp +++ b/xmltooling/AbstractAttributeExtensibleXMLObject.cpp @@ -135,6 +135,13 @@ const XMLCh* AbstractAttributeExtensibleXMLObject::getAttribute(const xmltooling return (i != m_attributeMap.end()) ? i->second : nullptr; } +const XMLCh* AbstractAttributeExtensibleXMLObject::getLang() const +{ + static const XMLCh _lang[] = UNICODE_LITERAL_4(l,a,n,g); + static xmltooling::QName qname(xmlconstants::XML_NS, _lang); + return getAttribute(qname); +} + void AbstractAttributeExtensibleXMLObject::setAttribute(const xmltooling::QName& qualifiedName, const XMLCh* value, bool ID) { map::iterator i=m_attributeMap.find(qualifiedName);