Problem with xbees or arduinos?

SoftwareSerial portOne(0,1);

 // Open serial communications and wait for port to open:
  Serial.begin(9600);
  // Start each software serial port
  portOne.begin(9600);

You can NOT use SoftwareSerial on the hardware serial pins. Especially not when you are also doing hardware serial on those pins.