1 /** @source xmltext
2 **
3 ** Get XML document original text entries
4 **
5 ** @author Copyright (C) 2011 Peter Rice / EMBOSS
6 ** @version 1  First version</replaceable>
7 ** @modified May 2011  Peter Rice First version</replaceable>
8 ** @@
9 **
10 ** This program is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License
12 ** as published by the Free Software Foundation; either version 2
13 ** of the License, or (at your option) any later version.
14 **
15 ** This program is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 ** GNU General Public License for more details.
19 **
20 ** You should have received a copy of the GNU General Public License
21 ** along with this program; if not, write to the Free Software
22 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23 ********************************************************************/
24 
25 
26 /* ==================================================================== */
27 /* ========================== include files =========================== */
28 /* ==================================================================== */
29 
30 #include "emboss.h"
31 
32 /* Inclusion of system and local header files goes here */
33 
34 
35 
36 /* ==================================================================== */
37 /* ============================ constants ============================= */
38 /* ==================================================================== */
39 
40 /* #define and enum statements go here */
41 
42 
43 
44 /* ==================================================================== */
45 /* ======================== global variables ========================== */
46 /* ==================================================================== */
47 
48 /* Global variables definitions go here */
49 
50 
51 
52 /* ==================================================================== */
53 /* ============================== data ================================ */
54 /* ==================================================================== */
55 
56 /* Definition of datatypes go here */
57 
58 
59 
60 /* ==================================================================== */
61 /* ==================== function prototypes =========================== */
62 /* ==================================================================== */
63 
64 /* Function prototypes for public (external) functions go here */
65 
66 
67 
68 
69 /* @prog xmltext **************************************************************
70 **
71 ** Get XML document complete text
72 **
73 ******************************************************************************/
74 
main(int argc,char ** argv)75 int main(int argc, char **argv)
76 {
77     /* Variable declarations */
78     AjPFile outf = NULL;
79     AjPXmlall xmlall = NULL;
80 
81     AjPXml xml     = NULL;
82 
83     /* ACD processing */
84     embInit("xmltext", argc, argv);
85 
86     xmlall    = ajAcdGetXmlall("xml");
87     outf   = ajAcdGetOutfile("outfile");
88 
89     while(ajXmlallNext(xmlall, &xml))
90     {
91         ajFmtPrintF(outf,"%S",ajXmlGetEntry(xml));
92     }
93 
94     /* Memory clean-up and exit */
95 
96     ajXmlallDel(&xmlall);
97     ajXmlDel(&xml);
98 
99     ajFileClose(&outf);
100 
101     embExit();
102 
103     return 0;
104 }
105 
106 
107 /* ==================================================================== */
108 /* ============================ functions ============================= */
109 /* ==================================================================== */
110 
111