[Year 12 SofDev] XML Query

David Mitchell DMitchell at ecmelb.catholic.edu.au
Sun Jul 24 22:48:29 AEST 2016


Hi Carlin


You have referenced the file as a relative file, so when you execute the program it will look in the same directory as the executable.


 string path = @"ItemsXML.xml";


If you want to grab it from the solution window as you call it, you would need to try something like:


string path = @"..\..\ItemsXML.xml";

Kind regards,

Dave


________________________________
From: sofdev-bounces at edulists.com.au <sofdev-bounces at edulists.com.au> on behalf of Grieve, Carlin C <grieve.carlin.c at edumail.vic.gov.au>
Sent: Sunday, 24 July 2016 10:38 PM
To: Year 12 Software Development Teachers' Mailing List
Subject: [Year 12 SofDev] XML Query


Hi All,



I have been trying to get my head around XML and C# implementation, rather than the patchwork of knowledge I am currently sporting. I have attached a very basic program that loads/saves XML Data. I am curious as to why it only updates the \BIN folder .xml File, and not the .xml File in the solution window. Any ideas?



Solution Files

https://1drv.ms/u/s!AsoB592u7VVjkP0AhhTgzvyBFBH7Iw



Also, If you notice anything wrong or bad programming habits, please let me know :)





Kind Regards,



[cid:image001.png at 01D1E5FC.214EB2A0]







Carlin Grieve

Learning Technologies Leading Teacher

Epping Secondary College

T: +61 3 9401 2599

W: www.eppingsc.vic.edu.au










IMPORTANT - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Training.


[cid:ECBanner_c15c5243-2141-47bf-bf21-318439f08451.JPG]<http://web.ecmelb.catholic.edu.au>      David Mitchell
System Manager
DMitchell at ecmelb.catholic.edu.au
T 03 8325 5100
St Paul's Campus
423 Blackshaws Road
Altona North    F 03 9314 2475
Notre Dame Campus
2-40 Foxwood Drive
Point Cook      M 0407 868 055
PO Box 5
Altona North
Vic 3025

This Email and any attachments may be confidential and, if you are not the intended recipient, you must not disclose or use the information in this mail. If received in error, please notify us immediately and delete the Email and all copies. The school does not guarantee that this Email is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this Email are not necessarily those of the school.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20160724/4f536629/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 14801 bytes
Desc: image001.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20160724/4f536629/image001-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ECBanner1_d9c5678c-2db7-402b-90b7-617831bd0308.JPG
Type: image/jpeg
Size: 12644 bytes
Desc: ECBanner1_d9c5678c-2db7-402b-90b7-617831bd0308.JPG
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20160724/4f536629/ECBanner1_d9c5678c-2db7-402b-90b7-617831bd0308-0001.JPG 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ECBanner_c15c5243-2141-47bf-bf21-318439f08451.JPG
Type: image/jpeg
Size: 12644 bytes
Desc: ECBanner_c15c5243-2141-47bf-bf21-318439f08451.JPG
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20160724/4f536629/ECBanner_c15c5243-2141-47bf-bf21-318439f08451-0001.JPG 


More information about the sofdev mailing list