Changeset 476 for XIOS/trunk


Ignore:
Timestamp:
02/19/14 17:49:40 (10 years ago)
Author:
ymipsl
Message:

bug fix : bug while parsing xml file when field has content.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/field.cpp

    r473 r476  
    697697   { 
    698698      SuperClass::parse(node); 
    699       node.getContent(this->content) ; 
    700       if (node.goToChildElement()) 
    701       { 
    702         do 
     699      if (! node.getContent(this->content))  
     700      { 
     701        if (node.goToChildElement()) 
    703702        { 
    704           if (node.getElementName()=="variable" || node.getElementName()=="variable_group") this->getVirtualVariableGroup()->parseChild(node); 
    705         } while (node.goToNextElement()) ; 
    706         node.goToParentElement(); 
    707       } 
    708  
     703          do 
     704          { 
     705            if (node.getElementName()=="variable" || node.getElementName()=="variable_group") this->getVirtualVariableGroup()->parseChild(node); 
     706          } while (node.goToNextElement()) ; 
     707          node.goToParentElement(); 
     708        } 
     709      } 
    709710    } 
    710711     
Note: See TracChangeset for help on using the changeset viewer.