Subversion Repositories gelsvn

Rev

Rev 381 | Rev 540 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 381 Rev 539
Line 111... Line 111...
111
    seek_string(in, "<");
111
    seek_string(in, "<");
112
 
112
 
113
    string head;
113
    string head;
114
    read_until(in, head, ">");
114
    read_until(in, head, ">");
115
 
115
 
116
    if(head[0] == '!') return in;
116
    if(head.empty() || head[0] == '!') return in;
117
    if(head[0] == '/')
117
    if(head[0] == '/')
118
    {
118
    {
119
      if(elem.parent && elem.parent->name == head.substr(1))
119
      if(elem.parent && elem.parent->name == head.substr(1))
120
        in.setstate(ios_base::eofbit);
120
        in.setstate(ios_base::eofbit);
121
      else
121
      else
Line 177... Line 177...
177
  void XmlElement::process_elements()
177
  void XmlElement::process_elements()
178
  {
178
  {
179
    if(!doc) return;
179
    if(!doc) return;
180
    if(!body) return; 
180
    if(!body) return; 
181
 
181
 
182
    while((doc->infile >> body->element) && !doc->infile.eof())
182
    while(!doc->infile.eof() && (doc->infile >> body->element))
183
    {
183
    {
184
      XmlElementHandler h = doc->handlers[body->element.name];
184
      XmlElementHandler h = doc->handlers[body->element.name];
185
      if(h) 
185
      if(h) 
186
        h(body->element);
186
        h(body->element);
187
      else 
187
      else