• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_FXCRT_XML_CFX_XMLELEMENT_H_
8 #define CORE_FXCRT_XML_CFX_XMLELEMENT_H_
9 
10 #include <memory>
11 #include <vector>
12 
13 #include "core/fxcrt/fx_string.h"
14 #include "core/fxcrt/xml/cfx_xmlattributenode.h"
15 
16 class CFX_XMLElement : public CFX_XMLAttributeNode {
17  public:
18   explicit CFX_XMLElement(const WideString& wsTag);
19   ~CFX_XMLElement() override;
20 
21   // CFX_XMLNode
22   FX_XMLNODETYPE GetType() const override;
23   std::unique_ptr<CFX_XMLNode> Clone() override;
24 
25   WideString GetLocalTagName() const;
26   WideString GetNamespacePrefix() const;
27   WideString GetNamespaceURI() const;
28 
29   WideString GetTextData() const;
30   void SetTextData(const WideString& wsText);
31 };
32 
33 #endif  // CORE_FXCRT_XML_CFX_XMLELEMENT_H_
34