Topic: xml problem

i have a problem in ajax and xajax about Xmldocument
I write a php script in server side that make an object of xmlDocument and then
create this.
but i dont know ,how i can recieve this object as XML .
i should print this object in server page and recieve this object in client page
with ResponseXml ? or ....?