With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.
My attempt to read the file looks like this:
<?xml version="1.0"?> <Email> <Subject>3 events scheduled starting 3/13 1:30 PM: Job 1034</Subject> <DeptID>111</DeptID> <sPersonIDs>10240; 175</sPersonIDs> <MessageText>3/11, 3/12, 3/13 1:30 - 5:00 PM Water Damage Assigned to: Bilbo Baggins</MessageText> </Email>
Apparently I'm missing something important since I'm not getting any values back out of my file. This is my first time working with IXMLDocument/IXMLNode, so happy for any guidance. Thanks.
procedure TChronEmail.GetFromTempFile; var i:integer; sFile : string; Doc: IXMLDocument; Email: IXMLNode; begin sFile := [filename--I've tested that it is valid and that it is there]; if fileExists(sFile) then begin Doc.LoadFromFile(sFile); i := 0; // for this test, only need the first entry in the file Email := DOC.ChildNodes.Nodes['Email'].ChildNodes[i]; Subject := Email.ChildNodes['Subject'].Text; if tryStrToInt(Email.ChildNodes['DeptID'].Text, i) then DeptID := i; sPersonIDs := Email.ChildNodes['sPersonIDs'].Text; MessageText := Email.ChildNodes['MessageText'].Text;
|Migration from Netsuite to Quickbooks||1||39|
|Tembedded WB animatid gifs not animated on some pcs||2||72|
|TEMBEDDEDWB how can i change its user agent ?||8||47|
|How to remove Recent Projects from Embarcadero C++ builder XE10. Berlin||2||31|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
15 Experts available now in Live!