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. Delphi
  4. Decrypt, validate and read large XML files

Decrypt, validate and read large XML files

Scheduled Pinned Locked Moved Delphi
xmldelphidatabasequestion
3 Posts 3 Posters 7 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.
  • A Offline
    A Offline
    abeaumont
    wrote on last edited by
    #1

    Hi all, I have been looking for a component for Delphi 7 (enterprise edition), which will allow me to do the following: 1) Decrypt specific encrypted nodes in an XML file to a stream. 2) Validate specific nodes against specific schemas (typically this will be the decrypted nodes, which will have their contents described in a encrypted schema) 3) Parse large XML files (several hundreds MB's). Unfortunately, I have not found any components that are capable of this. Does anyone know of a component which will allow me to do the above? Kind regards, Arthur de Beaumont

    D N 2 Replies Last reply
    0
    • A abeaumont

      Hi all, I have been looking for a component for Delphi 7 (enterprise edition), which will allow me to do the following: 1) Decrypt specific encrypted nodes in an XML file to a stream. 2) Validate specific nodes against specific schemas (typically this will be the decrypted nodes, which will have their contents described in a encrypted schema) 3) Parse large XML files (several hundreds MB's). Unfortunately, I have not found any components that are capable of this. Does anyone know of a component which will allow me to do the above? Kind regards, Arthur de Beaumont

      D Offline
      D Offline
      dan_fish
      wrote on last edited by
      #2

      I think you'll struggle to find a single component to do all that for you. When it comes to de/encryption in Delphi, it's hard to beat dcpcrypt As for your xml documents, just use the classes and interfaces available to you in the XMLDoc, XMLIntf, XMLDOM units. They give you TXMLDocument and IXMLNode, which is all you really need to load up a file and parse its nodes.

      1 Reply Last reply
      0
      • A abeaumont

        Hi all, I have been looking for a component for Delphi 7 (enterprise edition), which will allow me to do the following: 1) Decrypt specific encrypted nodes in an XML file to a stream. 2) Validate specific nodes against specific schemas (typically this will be the decrypted nodes, which will have their contents described in a encrypted schema) 3) Parse large XML files (several hundreds MB's). Unfortunately, I have not found any components that are capable of this. Does anyone know of a component which will allow me to do the above? Kind regards, Arthur de Beaumont

        N Offline
        N Offline
        nortee
        wrote on last edited by
        #3

        You can try NativeXML[^].

        abeaumont wrote:

        Decrypt specific encrypted nodes in an XML file to a stream.

        There is no real way of getting around this, however if I am not mistaken this class allows for events to fire when reading a node/attribute.

        abeaumont wrote:

        Validate specific nodes against specific schemas (typically this will be the decrypted nodes, which will have their contents described in a encrypted schema)

        I haven't needed to use this feature for the component in question, but I suppose fiddling around with that shouldn't be too much of a problem, even if you have to do your manipulation via the component, then use the XML DOM to load the schema.

        abeaumont wrote:

        Parse large XML files (several hundreds MB's).

        This would probably be more a case of the machine that the application will be running on and the efficiency of the XML traversal algorithm that the component uses. However, you must remember that traversing XML documents in itself tends to take longer based on the depth of the nodes. Expect delays in the region of something like:

        TimeToLoad = ((XMLFileSize)^NodeDepth)/TraversalEfficiencyOfComponent

        ... or something to that effect. NOTE: This is a thumbsuck at best, but you will see what I basically mean when you load large XML files. A plus of this component/class is the fact that it does not use the XML DOM at all... AND it is free... which to me is always a bonus :D. Hope this helps :)

        Cheers, Glen Vlotman QFTD: "You cannot code for stupidity."

        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