ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Struct XMLTag

alps::XMLTag — a struct to store the contents of an XML tag

Synopsis

// In header: <alps/parser/parser.h>


struct XMLTag {

  enum @0 { OPENING, CLOSING, SINGLE, COMMENT, PROCESSING };

  // public member functions
  bool is_comment();
  bool is_processing();
  bool is_element();
  std::string name;  // the name of the tag 
  XMLAttributes attributes;  // the attributes 
  enum alps::XMLTag::@0 type;
};

Description

XMLTag public member functions

  1. bool is_comment();
    returns true if the tag is a comment
  2. bool is_processing();
    returns true if the tag is a processing instruction
  3. bool is_element();
    returns true if the tag is an opening or closing tag of an XML element
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext