> I have experimented with a couple docs (FGDC Metadata standard) and am > not sure if this is a side-effect or what... I'm affraid the extra #text you see are the newlines between an end-tag and the following tag. Try to write all in a line