From 5af2acfa78654a80b70b2bce2ad01d94d29611fc Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 21 Aug 2009 14:41:43 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/CPPXT-39 --- xmltooling/util/XMLHelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmltooling/util/XMLHelper.cpp b/xmltooling/util/XMLHelper.cpp index 6128bff..87a165c 100644 --- a/xmltooling/util/XMLHelper.cpp +++ b/xmltooling/util/XMLHelper.cpp @@ -259,7 +259,7 @@ DOMElement* XMLHelper::getPreviousSiblingElement(const DOMNode* n, const XMLCh* void XMLHelper::serialize(const DOMNode* n, std::string& buf, bool pretty) { static const XMLCh impltype[] = { chLatin_L, chLatin_S, chNull }; - static const XMLCh UTF8[]={ chLatin_U, chLatin_T, chLatin_F, chDigit_8, chNull }; + static const XMLCh UTF8[]={ chLatin_U, chLatin_T, chLatin_F, chDash, chDigit_8, chNull }; MemBufFormatTarget target; DOMImplementation* impl=DOMImplementationRegistry::getDOMImplementation(impltype); @@ -312,7 +312,7 @@ namespace { ostream& XMLHelper::serialize(const DOMNode* n, ostream& out, bool pretty) { static const XMLCh impltype[] = { chLatin_L, chLatin_S, chNull }; - static const XMLCh UTF8[]={ chLatin_U, chLatin_T, chLatin_F, chDigit_8, chNull }; + static const XMLCh UTF8[]={ chLatin_U, chLatin_T, chLatin_F, chDash, chDigit_8, chNull }; StreamFormatTarget target(out); DOMImplementation* impl=DOMImplementationRegistry::getDOMImplementation(impltype); -- 2.1.4