Nп/п : 20 из 37
 От   : Larry Serflaten                     2:5075/128        02 сен 23 12:02:38
 К    : Jim Mack                                              02 сен 23 22:04:01
 Тема : Re: Anyone know how read XML?
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<965cbf88-2aa7-42ea-962c-42f6c42544a9n@googlegroups.com> 62ffa160
@REPLY: <oFKdncM5N4x9eGz5nZ2dnZfqn_idnZ2d@giganews.com>
d470f5b2
@REPLYADDR Larry Serflaten <serflaten@gmail.com>
@REPLYTO 2:5075/128 Larry Serflaten
@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>
<6aa51ffe-f4a3-46a4-a793-f971c42d26f5n@googlegroups.com> 1@paganini.bofh.team>
<bde707de-6b62-41b9-b198-a25c135762d2n@googlegroups.com> 1@paganini.bofh.team>
<f4046b66-7001-40fe-8667-a246c4403dcdn@googlegroups.com> <oFKdncM5N4x9eGz5nZ2dnZfqn_idnZ2d@giganews.com>
@RFC-Message-ID:
<965cbf88-2aa7-42ea-962c-42f6c42544a9n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
Jim Mack wrote:

 > > Thanks. The file is about 300 MB so I can`t load the whole
file. I was hoping to find a way to load just one parent node at a
time.

> 300MB isn`t that large a file, but if it`s an issue for you, try memory 
> mapping it. Plenty of examples if you search on that term -- I think 
> Karl Petersen or Randy Birch has a complete one. 

 I was going to mention that a day ago, or so, but I decided it
would probably be easier to learn the MSXML library than follow all those
API calls. Likewise for reading the file in binary chunks (6-8 MB), to
parse out the tags as needed.

 However, here is a link to Karl`s method, I did not see memory
mapped methods during a quick (TOC) scan on Randy`s site.

https://classicvb.net/samples/MapFile/

Good luck!
LFS
--- 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    
                                                                                
В этой области больше нет сообщений.

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