summaryrefslogtreecommitdiff
path: root/xmlscript/source/xml_helper/xml_impctx.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript/source/xml_helper/xml_impctx.cxx')
-rw-r--r--xmlscript/source/xml_helper/xml_impctx.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx
index 5c2dec389677..9189e534d8d7 100644
--- a/xmlscript/source/xml_helper/xml_impctx.cxx
+++ b/xmlscript/source/xml_helper/xml_impctx.cxx
@@ -563,7 +563,7 @@ void DocumentHandlerImpl::startElement(
pQNames[ nPos ] = xAttribs->getNameByIndex( nPos );
OUString const & rQAttributeName = pQNames[ nPos ];
- if (rQAttributeName.compareTo( m_sXMLNS, 5 ) == 0)
+ if (rQAttributeName.startsWith( m_sXMLNS ))
{
if (rQAttributeName.getLength() == 5) // set default namespace
{