Home | History | Annotate | Download | only in xml
      1 // Copyright 2014 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 XFA_FDE_XML_FDE_XML_H_
      8 #define XFA_FDE_XML_FDE_XML_H_
      9 
     10 #include "core/fxcrt/fx_system.h"
     11 
     12 enum class FDE_XmlSyntaxResult {
     13   None,
     14   InstructionOpen,
     15   InstructionClose,
     16   ElementOpen,
     17   ElementBreak,
     18   ElementClose,
     19   TargetName,
     20   TagName,
     21   AttriName,
     22   AttriValue,
     23   Text,
     24   CData,
     25   TargetData,
     26   Error,
     27   EndOfString
     28 };
     29 
     30 enum FDE_XMLNODETYPE {
     31   FDE_XMLNODE_Unknown = 0,
     32   FDE_XMLNODE_Instruction,
     33   FDE_XMLNODE_Element,
     34   FDE_XMLNODE_Text,
     35   FDE_XMLNODE_CharData,
     36 };
     37 
     38 struct FDE_XMLNODE {
     39   int32_t iNodeNum;
     40   FDE_XMLNODETYPE eNodeType;
     41 };
     42 
     43 bool FDE_IsXMLValidChar(FX_WCHAR ch);
     44 
     45 #endif  // XFA_FDE_XML_FDE_XML_H_
     46