In Java, how do I create a temp file only in memory to parse xml? -


i'd read in xml response , make temp file in memory out of xml. then, i'd read in file see if elements exist. after done, i'd rid of temp file. familiar making , reading files to/from file system, possible not write, , read, file in memory only?

why bother creating "file" in memory? keep xml representation (whether that's using jdom, w3c dom api or whatever).

it lot simpler examine in that format "file" in memory. after all, if had serialized form of it, appear on disk, in order query you'd have parse again anyway!


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -