getOutput should return a const reference.
FIx bug in ndn_encodeBinaryXmlData: need to return error for an error, not success.