Nп/п : 13 из 37
 От   : Accu Backup                         2:5075/128        29 авг 23 04:15:43
 К    : Newyana2                                              29 авг 23 14:18:02
 Тема : Re: Anyone know how read XML?
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<6aa51ffe-f4a3-46a4-a793-f971c42d26f5n@googlegroups.com> 86b70d9b
@REPLY: 1@paganini.bofh.team>
45fbb092
@REPLYADDR Accu Backup <accubackup1@gmail.com>
@REPLYTO 2:5075/128 Accu Backup
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
<0c640188-cdf2-421e-aca2-583457644423n@googlegroups.com> <d0dfac9e-d413-490b-a595-fb2fcde550aan@googlegroups.com>
<24c250df-8e59-4af9-b5bf-d17f6a92a6e4n@googlegroups.com> <20230414171132.00006d23@mvps.org.invalid>
<5cf1be47-7a74-42fa-b012-9e0c167ae58en@googlegroups.com> <1c082c0f-fad1-4a99-834b-22db0cc3c815n@googlegroups.com>
<20230822174909.00004e84@mvps.org.invalid> <d8705cd6-a647-4f5c-92e7-4746e79a5448n@googlegroups.com>
<20230825113749.00003ea6@mvps.org.invalid> <20230825113913.000017cb@mvps.org.invalid>
<877e2be8-725d-4849-9c7c-4ea2adc83303n@googlegroups.com> 1@paganini.bofh.team>
@RFC-Message-ID:
<6aa51ffe-f4a3-46a4-a793-f971c42d26f5n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
On Friday, August 25, 2023 at 8:11:44 AM UTC-4, Newyana2 wrote:
> "Accu Backup" <accub...@gmail.com> wrote
> > 
> Thanks for this info. You are right, I don`t have a good grip on XML and 
> parsers. As I wrote in an earlier post, this was the first time I was able 
> to successfully read an XML file after many, many unsuccessful attempts over 
> the past 5 or 6 years. Now that I am able to, the file is too large for it 
> to work. I understand the concept of reading it in pieces but those 
> Microsoft pages are written for someone with much more experience and 
> knowledge of programming. I`m a novice at this. They are not showing a 
> clear example similar to my case. 
> >
> My advice would be to fire the clown who thought 
> there was no need to limit file size. :) 

> Aside from that, I can think of some other options. 
> A native RichEdit might do it. I`ve never tested anything 
> like 300 MB, but they load files very fast. Another option 
> might be to load it yourself in byte form, perhaps part 
> of it at a time, then either tokenize it or do a basic instr 
> operation. XML is not rocket science. It doesn`t 
> require a special library. You look for " > look for " from that point. If you find both then 
> you parse the lines in between. A bit tedious, but not hard. 
> And instr is incredibly fast, especially if you ucase or lcase 
> the parent string first.

 Thanks Newyana2. Currently, with this large file, I`m reading
line-by-line and parsing for what I need. But yea, if I can just read it in
one Parent node at a time, do my parsing and then repeat with the
next Parent node and so on, that would be ideal. I just can`t figure
out how to read each node into a string.
--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх