summaryrefslogtreecommitdiff
path: root/modules/CIAO/CCF/Example/CodeGenerationKit/Indentation/XML/indent_xml.cpp
blob: f244249c69b95c00f43de708f77914ae88da2d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// file      : CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
// author    : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id    : $Id$

#include "CCF/CodeGenerationKit/IndentationXML.hpp"
#include "CCF/CodeGenerationKit/IndentationImplanter.hpp"

#include <iostream>

using std::cout;
using std::endl;

int
main ()
{
  Indentation::Implanter<Indentation::XML> guard (cout);

  cout << "<?xml version=\"1.0\"?>" << endl;
  cout << "<!DOCTYPE corbacomponent SYSYEM \"corbacomponent.dtd\">" << endl << endl;

  cout << "<atag>whatever</atag>" << endl;

  cout << "<open>" << endl;
  cout << "<openother>" << endl;
  cout << "<openother \nlabel=\"<<<<<<<<<>><>\">" << endl;
  cout << "text" << endl;
  cout << "<taginitself/>" << endl;
  cout << "</openother>" << endl;
  cout << "</openother>" << endl;
  cout << "</open>" << endl;

}