Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Using SAX to generate DOM documents

Using SAX to generate DOM documents

Scheduled Pinned Locked Moved XML / XSL
htmlregexxml
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve S
    wrote on last edited by
    #1

    I need to process some fairly large (>.75Gb) XML files, (actually in a batch, but once I can cope with one, he said, optimistically...) At the moment, I have used SAX and a FSA to parse and convert the data from XML to an internal format. However, the format changes rapidly, and the FSA is a pain to keep amending. The size means that DOM directly is a no-no. What I had in mind was to match specific tags, and collect all the contained stuff into a smaller DOM document, which I can then process in a simplified way. I've used DOM to read stuff before, and obviously, SAX, but not to write, so I'd be grateful for any hints or pointers to samples of this kind of thing, as I'm assuming I'm not the first to consider this option. Steve S

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups