German SaxParser - NullPointerException

D

Deleted member 19424

Guest
Hello,

can somebody explain, what's wrong with the following code:

Sub Process_Globals
Dim Parser as SaxParser
End Sub

Sub xy
Dim in as InputStream
in = File.OpenInput(File.DirAssets, "Camera.xml")
Parser.Parse(in, "Parser") '"NullPointerException"
End Sub

Remark: The file "Camera.xml" exits (in the Assets-folder").
 

Kiffi

Well-Known Member
Licensed User
Longtime User
Ein Parser.Initialize vor dem Parser.Parse() sollte helfen.

Grüße ... Kiffi
 
D

Deleted member 19424

Guest
Ja, so geht es.

Vielen Dank für die Hilfe.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…