1
Answer

XML Reading

ZogoChieftan

ZogoChieftan

21y
2.1k
1
Hi I was wondering if there are any experts on xml here who could send me a function that can jump to a certain element by name then read either the element's string or one of the attributes values. Attached is the xml file that I need to read onto text boxes on a form. --Start Config.xml C:\xboxdash.xb Xbo 192.168.1.100 255.255.255.0 192.168.0.1 192.168.0.1 192.168.0.7 xbox xbox 21 2 Yes Welcome to XBOX FTP Server www.xbox-scene.com/xbox1data/xbox-scene.xml www.xbins.org/xbins.xml C:\xboxdash.xbe C:\xboxdash.xbe 90 90 True False 192.168.1.1 1 My Xbox RuLeZ 0 True False Launch DVD E:\Games F:\Games E:\HDDLoader F:\HDDLoader E:\Apps F:\Apps C:\ MS Dashboard Evolution X Off Settings Stop FTP Start FTP Reset FTP Restart Network Close DVD Tray Open DVD Tray Format F Drive Format G Drive Format X Drive Format Y Drive Format Z Drive Skins File Explorer Reboot Shutdown --End Config.xml
Answers (1)
0
marqs

marqs

NA 4 0 15y

Thanks for your help!
0
Mahesh Chand

Mahesh Chand

2 286.9k 123.7m 15y
How many files are you converting to thumbnails too? Are there too many files? You may want to put this process in a worker thread and have your UI display a status message after every file is converted. To test it, try one or two files to see if program is working fine.

Also, you may want to put a try..catch..finally block around your code and put Dispose method in finally to make sure bitmaps are being disposed. If there is an error in your code before Dispose, bitmaps may not being disposed.

Debug .. debug .. I always suggest debug line by line to see how long your code is taking and what it is doing.