diff options
author | Mattijs Korpershoek <mattijsx.korpershoek@intel.com> | 2014-04-08 14:05:21 +0200 |
---|---|---|
committer | Mattijs Korpershoek <mattijsx.korpershoek@intel.com> | 2014-06-25 10:52:20 +0200 |
commit | 3141891778a0564887d25b8b06b898daf3c1c9b5 (patch) | |
tree | 8774f6d48211002dc50ec654520b9d98aacf89a2 /xmlserializer/XmlStringDocSource.cpp | |
parent | f394b389ff6202e94d42266ba39144bdcdefe3ba (diff) | |
download | external_parameter-framework-3141891778a0564887d25b8b06b898daf3c1c9b5.zip external_parameter-framework-3141891778a0564887d25b8b06b898daf3c1c9b5.tar.gz external_parameter-framework-3141891778a0564887d25b8b06b898daf3c1c9b5.tar.bz2 |
Added possibility to toggle xml validation
BZ: 184054
It was not possible to enable/disable xml file validation.
The parameter framework only relied on the LIBXML_SCHEMAS flag.
This patchs implements a new constructor for XmlFiles
which allows enabling/disabling xml/xsd check.
Change-Id: I32d220a42bb27f4ce685f07cb194e78e76f44a5d
Signed-off-by: Mattijs Korpershoek <mattijsx.korpershoek@intel.com>
Diffstat (limited to 'xmlserializer/XmlStringDocSource.cpp')
-rw-r--r-- | xmlserializer/XmlStringDocSource.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xmlserializer/XmlStringDocSource.cpp b/xmlserializer/XmlStringDocSource.cpp index b360322..12307f2 100644 --- a/xmlserializer/XmlStringDocSource.cpp +++ b/xmlserializer/XmlStringDocSource.cpp @@ -37,12 +37,14 @@ CXmlStringDocSource::CXmlStringDocSource(const string& strXmlInput, const string& strXmlSchemaFile, const string& strRootElementType, const string& strRootElementName, - const string& strNameAttrituteName) : + const string& strNameAttrituteName, + bool bValidateWithSchema) : base(xmlReadMemory(strXmlInput.c_str(), strXmlInput.size(), "", NULL, 0), - strXmlSchemaFile, - strRootElementType, - strRootElementName, - strNameAttrituteName) + strXmlSchemaFile, + strRootElementType, + strRootElementName, + strNameAttrituteName, + bValidateWithSchema) { } |