BOM in this case Byte order Mark (I think) I am completely unsure about that UTF-8 stuff though. http://en.wikipedia.org/wiki/Byte_Order_Mark replacing anything inside the node contents would render the whole purpose of using UTF-8 encoding useless, wouldn´t it? All the best, malte