Hi Klaad,
It would be easier to answer this if we could see the code you've already written. However, in C# you will do something like this:
IXMLDOMDocument tempDom = thisXDocument.CreateDOM();
tempDom.LoadXml( "<hous rooms='4'><price perMonth='1000' avoidable='No'/></house>" );
Or you can actually create the attribute nodes by calling .CreateAttribute() on the Document object.
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge