📄 xml.h
字号:
/*************************************************************************** * * * db.* * * open source database kernel * * * * Copyright (c) 2000 Centura Software Corporation. All rights reserved. * * * * Use of this software, whether in source code format, or in executable, * * binary object code form, is governed by the CENTURA OPEN SOURCE LICENSE * * which is fully described in the LICENSE.TXT file, included within this * * distribution of source code files. * * * * Except as provided herein, the contents of this file are subject to the * * Centura Open Source Public License Version 1.0 (the "License"); you may * * not use this file except in compliance with the License. A copy of the * * License will be provided to you by Club ITTIA. * * * * Software distributed under the License is distributed on an "AS IS" * * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * * License for the specific language governing rights and limitations * * under the License. * * * * The Original Code is db.linux version 1.0, released February 29, 2000. * * * * The Initial Developer of the Original Code is Centura Software * * Corporation. Portions created by Centura Software Corporation are * * Copyright (C) 1984-2000 Centura Software Corporation. All Rights * * Reserved. * * * * This file contains modifications to the Original Code made by ITTIA. * * This file may only be used in accordance with the ITTIA DB.* V.2 * * License Agreement which is available at WWW.ITTIA.COM. * * * **************************************************************************//*----------------------------------------------------------------------- xml.h - XML support Provides XML export.-----------------------------------------------------------------------*/#ifndef DBSTAR_XML_H#define DBSTAR_XML_H#include "dbexp.h"typedef struct{ FILE *fp; int depth; int previous_type; EXPOPTS *xo;} XML_FILE;typedef struct{ DB_TCHAR *key; DB_TCHAR *value;} XML_ATTRIBUTE;/* XML content types */#define XML_PCDATA 0#define XML_COMMENT 1#define XML_START_TAG 2#define XML_END_TAG 3#define XML_EMPTY_TAG 4/* General XML document functions. */int xml_start_file(XML_FILE *, FILE *, DB_TCHAR *, DB_TCHAR *);int xml_end_file(XML_FILE *);int xml_print_content(XML_FILE *, int, DB_TCHAR *, XML_ATTRIBUTE *, short);/* Database export XML functions. */int xml_print_db(XML_FILE *, DB_TASK *);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -