I am using the xmlread.ReadXMLFile(doc, stream) function to read a XML. If I use a file works OK. If I use a Stream of the same file (I saved the Stream in a file and compare with de original file... are equal), happen an error: In 'stream:' (line 1 pos 1): Root element is missing Marcos Douglas