DOCUMENT version=1.0 standalone=true ELEMENT rubynet ELEMENT pkg And by setting a property on the root node: DOCUMENT version=1.0 standalone=true ELEMENT rubynet ATTRIBUTE xmlns:xlink TEXT content=http://www.w3.org/1999/xlink ELEMENT pkg Am I missing the point of xmlNewDocProp()? It doesn't seem like it's used anywhere. -sc -- Sean Chittenden