Xml.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * Xml.h
8  *
9  * @author mikee47 <mike@sillyhouse.net> Oct 2021
10  *
11  ****/
12 
13 #pragma once
14 
15 #include "Standard.h"
16 
17 namespace Format
18 {
19 class Xml : public Standard
20 {
21 public:
22  void escape(String& value) const override;
23 
24  MimeType mimeType() const override
25  {
26  return MIME_XML;
27  }
28 };
29 
30 extern Xml xml;
31 
32 } // namespace Format
Definition: Standard.h:20
Definition: Xml.h:20
MimeType mimeType() const override
Corresponding MIME type for this format.
Definition: Xml.h:24
void escape(String &value) const override
Perform any necessary text escaping so output is valid.
The String class.
Definition: WString.h:137
MimeType
Definition: WebConstants.h:53
Definition: Formatter.h:19