Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
AnswerRe: .net Query Pin
Richard MacCutchan6-Aug-14 22:40
mveRichard MacCutchan6-Aug-14 22:40 
AnswerRe: .net Query Pin
Keith Barrow7-Aug-14 1:45
professionalKeith Barrow7-Aug-14 1:45 
AnswerRe: .net Query Pin
Gerry Schmitz7-Aug-14 11:00
mveGerry Schmitz7-Aug-14 11:00 
QuestionConnecting to License Application on Server Pin
Jassim Rahma6-Aug-14 20:25
Jassim Rahma6-Aug-14 20:25 
AnswerRe: Connecting to License Application on Server Pin
Bernhard Hiller6-Aug-14 20:39
Bernhard Hiller6-Aug-14 20:39 
QuestionSame EXE vs Different EXE Pin
KUMAR6196-Aug-14 19:36
professionalKUMAR6196-Aug-14 19:36 
AnswerRe: Same EXE vs Different EXE Pin
Akhil Mittal6-Aug-14 20:05
professionalAkhil Mittal6-Aug-14 20:05 
AnswerRe: Same EXE vs Different EXE Pin
Bernhard Hiller6-Aug-14 20:43
Bernhard Hiller6-Aug-14 20:43 
AnswerRe: Same EXE vs Different EXE Pin
Mycroft Holmes6-Aug-14 21:54
professionalMycroft Holmes6-Aug-14 21:54 
GeneralRe: Same EXE vs Different EXE Pin
KUMAR6196-Aug-14 23:06
professionalKUMAR6196-Aug-14 23:06 
GeneralRe: Same EXE vs Different EXE Pin
Mycroft Holmes6-Aug-14 23:10
professionalMycroft Holmes6-Aug-14 23:10 
GeneralRe: Same EXE vs Different EXE Pin
KUMAR6196-Aug-14 23:49
professionalKUMAR6196-Aug-14 23:49 
GeneralRe: Same EXE vs Different EXE PinPopular
Mycroft Holmes7-Aug-14 0:57
professionalMycroft Holmes7-Aug-14 0:57 
GeneralRe: Same EXE vs Different EXE PinPopular
GuyThiebaut7-Aug-14 2:44
professionalGuyThiebaut7-Aug-14 2:44 
GeneralRe: Same EXE vs Different EXE Pin
Bernhard Hiller7-Aug-14 21:11
Bernhard Hiller7-Aug-14 21:11 
AnswerRe: Same EXE vs Different EXE Pin
Akhil Mittal7-Aug-14 20:05
professionalAkhil Mittal7-Aug-14 20:05 
QuestionCall a SAP transaction, execute with given parameters and download a report with C# Pin
Goliadkin6-Aug-14 16:41
Goliadkin6-Aug-14 16:41 
AnswerRe: Call a SAP transaction, execute with given parameters and download a report with C# Pin
Goliadkin7-Aug-14 15:07
Goliadkin7-Aug-14 15:07 
QuestionXML usage Pin
eblaschka6-Aug-14 14:26
eblaschka6-Aug-14 14:26 
AnswerRe: XML usage Pin
Dave Kreskowiak6-Aug-14 17:08
mveDave Kreskowiak6-Aug-14 17:08 
XML really wasn't designed to be a database if that's what you mean by "store and retrieve data". It's more intended for the formatting, serialization, transmission and transformation of data. It just so happens that XML is a text format that happens to be very easily stored on any storage medium.

In any case, I think your schema could be laid out a bit better. Such as:
<drives>
    <drive identifier="C">
        <folders>
            <folder name="Program Files">
                <folders>
                    <folder name="Some Folder">
                        <folders />
                        <files>
                            <file name="MyApplication.exe" size="1064322" />
                            <file name="MyLibrary.dll" size="103223" />
                        </files>
                    </folder>
                    <files />
                </folders>
            </folder>
        </folders>
        <files>
            <file name="Some Junk.txt" size="2310" />
        </files>
    </drive>
</drives>


A better option would be to skip trying to worry about the details of the XML file and worry more about your class definitions that can be serialized into an XML file. That way you can just build an object graph with the data you're tracking and then just send it to the XmlSerializer and it'll create the XML file for you.

The same serializer can be used to reconstitute the graph from the XML data it wrote.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak


modified 7-Aug-14 1:33am.

AnswerRe: XML usage Pin
Bernhard Hiller6-Aug-14 20:49
Bernhard Hiller6-Aug-14 20:49 
AnswerRe: XML usage Pin
Richard Deeming7-Aug-14 1:35
mveRichard Deeming7-Aug-14 1:35 
GeneralRe: XML usage Pin
eblaschka10-Aug-14 11:39
eblaschka10-Aug-14 11:39 
GeneralRe: XML usage Pin
Richard Deeming11-Aug-14 1:53
mveRichard Deeming11-Aug-14 1:53 
GeneralRe: XML usage Pin
eblaschka12-Aug-14 4:42
eblaschka12-Aug-14 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.