Hi
I'm using the sax parser to read in an xml file and write it to the database. It works just fine until the xml file size approaches 1MB, then I get the error:-
Dim in As InputStream
If (File.Exists(File.DirAssets, "db.xml")) Then
in = File.OpenInput(File.DirAssets, "db.xml")
Dim reader As TextReader
reader.Initialize(in)
parser.Parse2(reader,"Parser")
'parser.Parse(in, "Parser")
in.Close
End If
for the line :-
parser.Parse2(reader,"Parser")
I receive a 'LastException - java.io.IOException'
I've been testing this for a while now as I assumed it must be something with either my code or some invalid xml text, but both are fine, and I've noticed it falls over around 1MB. Can anyone help with a workaround?
Thanks!
(N.B. I've also posted this is the xml Sax parsing section but thought this could be a good place to add it so others can find it.
I'm using the sax parser to read in an xml file and write it to the database. It works just fine until the xml file size approaches 1MB, then I get the error:-
Dim in As InputStream
If (File.Exists(File.DirAssets, "db.xml")) Then
in = File.OpenInput(File.DirAssets, "db.xml")
Dim reader As TextReader
reader.Initialize(in)
parser.Parse2(reader,"Parser")
'parser.Parse(in, "Parser")
in.Close
End If
for the line :-
parser.Parse2(reader,"Parser")
I receive a 'LastException - java.io.IOException'
I've been testing this for a while now as I assumed it must be something with either my code or some invalid xml text, but both are fine, and I've noticed it falls over around 1MB. Can anyone help with a workaround?
Thanks!
(N.B. I've also posted this is the xml Sax parsing section but thought this could be a good place to add it so others can find it.