Here's a silly one: The nodeName of certain node types is described as being like '#cdata-section' or '#document'. I take it these are string literals? As in: doc->nodeName = "#document"; Thanks, Mike