i am doing data transfer application from one database to another using XML as transfer format.I would like to know if there is any maximum size for an XML file.Further if there is no limitation for size,is there supposed to be any optimal size for XML file, beyond which parsing shall become very slow.I have to transfer data of the order of 150 Mb(data of about 50000 people).The xml format of client seems to be highly irregular,in the sense the xml is not designed properly which makes things worse.Using SAX parser for parsing the XML is complex and is tedious for the kind of format the client is asking for.DOM could be helpful in such cases eventhough it may not offer a total easy solution.But DOM is a slow parser and for parsing a Xml file with data of 50000 people (each person accounts for 750 entries in XML file),I find the application would take a very longtime to parse the file and then do data transfer.Can anybody suggest a solution for this problem?