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/XmlMemoryDocSource.h | |
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/XmlMemoryDocSource.h')
-rw-r--r-- | xmlserializer/XmlMemoryDocSource.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmlserializer/XmlMemoryDocSource.h b/xmlserializer/XmlMemoryDocSource.h index 1e549ff..072cb06 100644 --- a/xmlserializer/XmlMemoryDocSource.h +++ b/xmlserializer/XmlMemoryDocSource.h @@ -50,10 +50,12 @@ public: * @param[in] strXmlSchemaFile a string containing the path to the schema file * @param[in] strProduct a string containing the product name * @param[in] strVersion a string containing the version number + * @param[in] bValidateWithSchema a boolean that toggles schema validation */ CXmlMemoryDocSource(const IXmlSource* pXmlSource, const string& strRootElementType, const string& strXmlSchemaFile, const string& strProduct, - const string& strVersion); + const string& strVersion, + bool bValidateWithSchema); /** * Constructor @@ -61,8 +63,9 @@ public: * @param[in] pXmlSource a pointer to a parameter-framework structure that can generate * an xml description of itself * @param[in] strRootElementType a string containing the root element type + * @param[in] bValidateWithSchema a boolean that toggles schema validation */ - CXmlMemoryDocSource(const IXmlSource* pXmlSource, const string& strRootElementType); + CXmlMemoryDocSource(const IXmlSource* pXmlSource, const string& strRootElementType, bool bValidateWithSchema); /** * Implementation of CXmlDocSource::populate() method. |