Send/Receive UDP on Ethernet shield and XBEE

Objective: I used the Ethernet shield to send and receive the UDP packet, and would like to use the XBEE to send the UDP byte on air.\

The problem I found was that when the UDP packet was sent from a PC to the Arduino Ethernet shield,
I used the Serial to print out what it received, the first part of the UDP packet received was same to what the PC sent, but the latter part was not.
I am not sure if it is the problem of flow control or any other has the same experience with that?

I am using the UDP.cpp library which is included in the Arduino program.
Thanks.

without a piece of code, we can't help you.

How do you want us to help you to track a bug without any elements ?