45    XNODE*    iNode = 
nullptr, *cNode = 
nullptr;
 
   46    wxString  str, propValue, content;
 
   47    wxCSConv  conv( wxT( 
"windows-1251" ) );
 
   49    FILE* fp = wxFopen( aFileName, wxT( 
"rt" ) );
 
   55    if( !fgets( line, 
sizeof( line ), fp )
 
   61    fseek( fp, 0, SEEK_SET );
 
   66    iNode = 
new XNODE( wxXML_ELEMENT_NODE, wxT( 
"www.lura.sk" ) );
 
   82            cNode = 
new XNODE( wxXML_ELEMENT_NODE, wxString( lexer.
CurText(), conv ) );
 
   83            iNode->AddChild( cNode );
 
   88            str = wxString( lexer.
CurText(), conv );
 
   93                if( iNode->GetAttribute( wxT( 
"Name" ), &propValue ) )
 
   95                    iNode->DeleteAttribute( wxT( 
"Name" ) );
 
   96                    iNode->
AddAttribute( wxT( 
"Name" ), propValue + wxT( 
' ' ) + str );
 
  103            else if( str != wxEmptyString )
 
  106                content = cNode->GetNodeContent() + wxT( 
' ' ) + str;
 
  108                if( cNode->GetChildren() )
 
  109                    cNode->GetChildren()->SetContent( content );
 
  111                    cNode->AddChild( 
new wxXmlNode( wxXML_TEXT_NODE, wxEmptyString, content ) );
 
  118        aXmlDoc->SetRoot( iNode );