Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: Circle Generation Pin
saran27715-Mar-07 17:04
saran27715-Mar-07 17:04 
QuestionGrid advice needed for both a WinForms and ASP.NET application Pin
alias4715-Mar-07 16:11
alias4715-Mar-07 16:11 
QuestionDyanmically creating templatefield Gridview c# Pin
SharonRao15-Mar-07 14:21
SharonRao15-Mar-07 14:21 
AnswerRe: Dyanmically creating templatefield Gridview c# Pin
SharonRao15-Mar-07 14:22
SharonRao15-Mar-07 14:22 
GeneralRe: Dyanmically creating templatefield Gridview c# Pin
Seishin#16-Mar-07 0:19
Seishin#16-Mar-07 0:19 
QuestionHow can another class access my main Form 's variables? Pin
dino209415-Mar-07 13:48
dino209415-Mar-07 13:48 
AnswerRe: How can another class access my main Form 's variables? Pin
Leslie Sanford15-Mar-07 14:41
Leslie Sanford15-Mar-07 14:41 
QuestionMemory efficient way to parse XML Pin
disruptor10815-Mar-07 11:56
disruptor10815-Mar-07 11:56 
Hi,

I was wondering if anyone could recommend the best way to parse XML in a memory efficient manner. I have an XML document that stores an ID and the corresponding English string, for example:

<string>
<id>Dialog_Button_OK</id>
<value>OK</value>
</string>

I am traversing an XMLDocument with around 250 strings, and for each string I read the ID, look for it in an enum that I've created previously that includes all of the IDs, and when I find the ID in the enum, I store the ID and the corresponding value in a dictionary.

The problem I have with this method is that its taking up too much memory. Although this method can produce the strings very quickly, the footprint it leaves is larger than I like.

Is there a way to store these strings without using up so much memory? I've seen possibilities with caching, and I've also seen promise with a class I saw in .NET 3.0 called a XmlDictionary. Could anyone lend a hand with this problem?

Thanks,
Adam
AnswerRe: Memory efficient way to parse XML Pin
Ed.Poore19-Mar-07 13:08
Ed.Poore19-Mar-07 13:08 
Questionsending sms to mobile using webservices gfghfghgh Pin
reddyuii15-Mar-07 11:36
reddyuii15-Mar-07 11:36 
Questionsending sms to mobile using webservices Pin
reddyuii15-Mar-07 11:35
reddyuii15-Mar-07 11:35 
AnswerRe: sending sms to mobile using webservices Pin
Dave Kreskowiak15-Mar-07 13:20
mveDave Kreskowiak15-Mar-07 13:20 
QuestionOverride Pin
shamsteady15-Mar-07 11:11
shamsteady15-Mar-07 11:11 
AnswerRe: Override Pin
Guffa15-Mar-07 12:19
Guffa15-Mar-07 12:19 
AnswerRe: Override Pin
Christian Graus15-Mar-07 16:58
protectorChristian Graus15-Mar-07 16:58 
AnswerRe: Override Pin
PIEBALDconsult15-Mar-07 17:25
mvePIEBALDconsult15-Mar-07 17:25 
GeneralRe: Override Pin
shamsteady15-Mar-07 17:45
shamsteady15-Mar-07 17:45 
AnswerRe: Override Pin
mav.northwind16-Mar-07 13:30
mav.northwind16-Mar-07 13:30 
Questionwin Forms Pin
marwan_siala15-Mar-07 10:58
marwan_siala15-Mar-07 10:58 
AnswerRe: win Forms Pin
Stefan Troschuetz15-Mar-07 11:15
Stefan Troschuetz15-Mar-07 11:15 
GeneralRe: win Forms Pin
marwan_siala15-Mar-07 11:24
marwan_siala15-Mar-07 11:24 
GeneralRe: win Forms Pin
Stefan Troschuetz15-Mar-07 11:44
Stefan Troschuetz15-Mar-07 11:44 
AnswerRe: win Forms Pin
MoustafaS15-Mar-07 11:21
MoustafaS15-Mar-07 11:21 
GeneralRe: win Forms Pin
marwan_siala15-Mar-07 11:33
marwan_siala15-Mar-07 11:33 
GeneralRe: win Forms Pin
MoustafaS15-Mar-07 11:40
MoustafaS15-Mar-07 11:40 

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.