Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Simplify Xml handling - #110

Open
clero wants to merge 8 commits into
intel:nextfrom
clero:remove_manual_xml_include
Open

Simplify Xml handling#110
clero wants to merge 8 commits into
intel:nextfrom
clero:remove_manual_xml_include

Conversation

@clero

@cleroclero commented May 5, 2015

Copy link
Copy Markdown
Contributor

This pull request aims to simplify xml handling.
Some base patch could be merged in an other pull request.


@clero
cleroforce-pushed the remove_manual_xml_include branch from 7742656 to 6423d40CompareMay 5, 2015 11:47
@clero

clero commented May 5, 2015

Copy link
Copy Markdown
ContributorAuthor

Coverage decrease for XmlFileDocSource.cpp and XmlDocSource.cpp is due to CXmlFileIncluderElement removal, but is not dead code. Call to that code may be trigged in ParameterMgr, line 715.

@clero
cleroforce-pushed the remove_manual_xml_include branch from d4da654 to d30488aCompareMay 5, 2015 13:35
@clero
cleroforce-pushed the remove_manual_xml_include branch 2 times, most recently from 481ce2b to 1d4a7deCompareMay 12, 2015 15:54
@clero
cleroforce-pushed the remove_manual_xml_include branch from ec67345 to 2c635abCompareMay 22, 2015 08:49
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.21%) to 69.79% when pulling 2c635ab on clero:remove_manual_xml_include into 391d970 on 01org:next.

@clero
cleroforce-pushed the remove_manual_xml_include branch 4 times, most recently from cd7b241 to 7441431CompareJune 9, 2015 08:15
@clero
cleroforce-pushed the remove_manual_xml_include branch 3 times, most recently from 17920d8 to d70c97eCompareJune 18, 2015 06:44
clero added 2 commits June 18, 2015 08:45
SubsystemInclude is correspond to an XInclude.
This patch removes this tag handling and replaces it by the standard
xml inclusion tag.
Signed-off-by: Jules Clero <julesx.clero@intel.com>
Latest patch removes SubsystemInclude tag support. It leads to some
dead code.
This patch removes code which was providing the Folder of the xml file
to include which is now dead.
Signed-off-by: Jules Clero <julesx.clero@intel.com>
@clero
cleroforce-pushed the remove_manual_xml_include branch 4 times, most recently from 2ce3b62 to 87931feCompareJune 19, 2015 12:53
clero added 3 commits June 19, 2015 15:03
Signed-off-by: Jules Clero <julesx.clero@intel.com>
getAttribute API forces the user to call a specific
API for each call getAttributeString etc..
This patch replaces this API by a template one.
The success of of the action can now be checked.
It can be useful one to check that a conversion succeed.
Signed-off-by: Jules Clero <julesx.clero@intel.com>
XML exportation does not validate generated file even if
a schema is provided.
This patch enables the validation of the file at the end
of the export. Moreover, the generated XML is checked against
its schema if one is provided.
Signed-off-by: Jules Clero <julesx.clero@intel.com>
@clero
cleroforce-pushed the remove_manual_xml_include branch from 87931fe to eaa0f13CompareJune 19, 2015 13:23
@clero

Copy link
Copy Markdown
ContributorAuthor

@dawagner@krocard@OznOg please review

@clero
cleroforce-pushed the remove_manual_xml_include branch from eaa0f13 to 3a39ef3CompareJune 19, 2015 13:30
clero added 3 commits June 19, 2015 15:31
Current serialization implementation require to map the design to
the desired xml files. Thus, xml can't be easily removed and the code is
hard to test.
This patch introduces a serializer, based on the current xmlSerializer
library. This serializer uses an Xml bindings structure which describe
the mapping of the data holder to the desired xml files.
Signed-off-by: Jules Clero <julesx.clero@intel.com>
Current configuration design is mapping classes on xml node.
It leads to some empty classes which contains a node information.
It also leads to inconsistent information retrieval method. Some
can be retrieved through simple getters and some others are retrieved
through child mechanism inherited from Element.
This patch introduces a real configuration object which is a simple
struct. Information retrieval is handled through xml bindings.
Signed-off-by: Jules Clero <julesx.clero@intel.com>
isParsable is never used and the check made through it
can easily be replaced by testing the return value of
getDoc against NULL.
Signed-off-by: Jules Clero <julesx.clero@intel.com>
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@clero@coveralls