diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-23 00:50:47 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-23 00:50:47 +0100 |
commit | 8891dea26a1653a003b4171155e155d3aa6689ae (patch) | |
tree | ae03e305ca4dd5bb26f70763db8a5b5574ef6558 /src/plugins/xml/XmlOutput.hpp | |
parent | 2d4508837b7885c962f815c062f98803917eca71 (diff) |
Output element names in XML serialization
Diffstat (limited to 'src/plugins/xml/XmlOutput.hpp')
-rw-r--r-- | src/plugins/xml/XmlOutput.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/xml/XmlOutput.hpp b/src/plugins/xml/XmlOutput.hpp index d0caf62..da406a7 100644 --- a/src/plugins/xml/XmlOutput.hpp +++ b/src/plugins/xml/XmlOutput.hpp @@ -38,7 +38,8 @@ namespace xml { class XmlTransformer { private: std::map<std::string, std::string> transformAttributes( - DocumentEntity *entity, Logger &logger, bool pretty); + const std::string &name, DocumentEntity *entity, Logger &logger, + bool pretty); void addNameAttribute(Handle<ousia::Node> n, std::map<std::string, std::string> &attrs); @@ -53,7 +54,7 @@ private: Rooted<Element> transformAnchor(Handle<Element> parent, Handle<Anchor> a, Logger &logger, bool pretty); - Rooted<Text> transformPrimitive(Handle<Element> parent,Handle<Type> type, + Rooted<Text> transformPrimitive(Handle<Element> parent, Handle<Type> type, Handle<DocumentPrimitive> p, Logger &logger, bool pretty); @@ -79,4 +80,4 @@ public: }; } } -#endif
\ No newline at end of file +#endif |