PDA

View Full Version : set content(&file)



rk0747
6th February 2010, 06:13
Is it compulsary to to specify if(!document.setContent(&file)) while reading?

if(!document.if(!document.setContent(&file))(&file))

faldzip
6th February 2010, 09:31
Are you asking about if () or about setContent()? setContent() is necessary as it sets your file contents to the dom document. And you don't have to use if but how you will know then that the file is not XML or is not well-formed XML?