Using libraries <Fat16.h> and <XBee.h> together

Hei,

I am trying to transmit sensor values from 5 different remote Xbee nodes to save the values into microSD card. Using libraries described in subject line.

There is a problem, that when I include the line:
“XBee xbee = XBee();”
into my code, then printing the values into NewSoftSerial serial port doesn’t work.
Has anybody had the same problem and what could be the workaround for described problem.
The Xbee is connected to D0, D1 and SD card to ports 10-13 as usual. I am not using XBee shield.
Hereby, i also add the code for better understanding.

#include <Fat16.h>
#include <XBee.h>
#include <NewSoftSerial.h>

//!!!!Here is the problematic line!!!
XBee xbee = XBee();
Rx16IoSampleResponse ioSample = Rx16IoSampleResponse();

NewSoftSerial mySerial(3, 2);

SdCard card;
Fat16 file;

// store error strings in flash to save RAM
#define error(s) error_P(PSTR(s))
void error_P(const char *str)
{
  mySerial.print("error: ");
  mySerial.println(str);
  if (card.errorCode) {
    mySerial.print("SD error: ");
    mySerial.println(card.errorCode, HEX);
  }
  while(1);
}
//PIN
int sdPower = 8;
int xbeePower = 7;

void setup(void)
{
  pinMode( sdPower, OUTPUT );
  digitalWrite ( sdPower, HIGH );  
//  Serial.begin(9600);
//  Serial.println();
  // set the data rate for the NewSoftSerial port
  mySerial.begin(9600);
  mySerial.println("mySerial Started");
  
  mySerial.println("Type any character to start");

  while (!mySerial.available());
  
  // initialize the SD card
  if (!card.init()) error("card.init");
  
  // initialize a FAT16 volume
  if (!Fat16::init(card)) error("Fat16::init");
  
  char name[] = "APPEND.TXT";
  mySerial.print("Appending to: ");
  mySerial.println(name);
  
  // clear write error
  file.writeError = false;
  
  for (uint8_t i = 0; i < 10; i++) {
    // O_CREAT - create the file if it does not exist
    // O_APPEND - seek to the end of the file prior to each write
    // O_WRITE - open for write
    if (!file.open(name, O_CREAT | O_APPEND | O_WRITE)) error("open");
    // print 100 lines to file
    for (uint8_t j = 0; j < 10; j++) {
      file.print("line ");
      file.print(j, DEC);
      file.print(" of pass ");
      file.print(i, DEC);
      file.print(" millis = ");
      file.println(millis());
      if (file.writeError) error("write");
    }
    if (!file.close()) error("close");
    if (i > 0 && i%25 == 0) mySerial.println();
    mySerial.print('.');
  }
  mySerial.println();
  mySerial.println("Done");
}

void loop(void){
  mySerial.print( "spoooky" );
  delay( 1000 );
}