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. C / C++ / MFC
  4. c++ and canonical xml

c++ and canonical xml

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++algorithmsxml
4 Posts 2 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.
  • I Offline
    I Offline
    Imre Koszo
    wrote on last edited by
    #1

    Hello! I have to write a class in c++ which takes a char* as input, which is the content of an xml document, and gives back the canonical form of it without comments. The problem is: i have to use msxml 4.0 or older, i cannot use .net, libxml etc. I have been searching the web for a while now but nothing. If anybody could help me please do so.

    D 1 Reply Last reply
    0
    • I Imre Koszo

      Hello! I have to write a class in c++ which takes a char* as input, which is the content of an xml document, and gives back the canonical form of it without comments. The problem is: i have to use msxml 4.0 or older, i cannot use .net, libxml etc. I have been searching the web for a while now but nothing. If anybody could help me please do so.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Ruis Ngetal wrote: ...and gives back the canonical form of it without comments. Are you wanting to canonicalize the name of the XML file or its contents? If the latter, are the strings actually file paths or URLs?


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      I 1 Reply Last reply
      0
      • D David Crow

        Ruis Ngetal wrote: ...and gives back the canonical form of it without comments. Are you wanting to canonicalize the name of the XML file or its contents? If the latter, are the strings actually file paths or URLs?


        "One must learn from the bite of the fire to leave it alone." - Native American Proverb

        I Offline
        I Offline
        Imre Koszo
        wrote on last edited by
        #3

        Well i get a string like: " Hello, world! " with all the whitespaces and linefeeds and the like, and i have to give back something like this: " Hello, world! " normalizing the line feeds and whitespaces etc. as written in w3c's c14n standard (http://www.w3.org/TR/2001/REC-xml-c14n-20010315) so i have to make a c14n canonicalizer.

        D 1 Reply Last reply
        0
        • I Imre Koszo

          Well i get a string like: " Hello, world! " with all the whitespaces and linefeeds and the like, and i have to give back something like this: " Hello, world! " normalizing the line feeds and whitespaces etc. as written in w3c's c14n standard (http://www.w3.org/TR/2001/REC-xml-c14n-20010315) so i have to make a c14n canonicalizer.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Ruis Ngetal wrote: so i have to make a c14n canonicalizer. I wonder if the document's author, John Boyer, knows of any such utility.


          "One must learn from the bite of the fire to leave it alone." - Native American Proverb

          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