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. <![CDATA

<![CDATA

Scheduled Pinned Locked Moved XML / XSL
xmlquestion
7 Posts 4 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.
  • H Offline
    H Offline
    Hesham Amin
    wrote on last edited by
    #1

    Hi.. I exported an access 2000 table to XML file in some elements appears: myDataHere in some elements appears: <![CDATA[myDataHere]]> what does CDATA do ? what if I ommit it ? note than in cases that CDATA appears myDataHere includes (") or (..)

    Z T 2 Replies Last reply
    0
    • H Hesham Amin

      Hi.. I exported an access 2000 table to XML file in some elements appears: myDataHere in some elements appears: <![CDATA[myDataHere]]> what does CDATA do ? what if I ommit it ? note than in cases that CDATA appears myDataHere includes (") or (..)

      Z Offline
      Z Offline
      ZoogieZork
      wrote on last edited by
      #2

      CDATA specifies a chunk of raw character data, terminated by ]]>. This allows you to embed data with characters with special meaning in XML (namely, <, >, &, and ") without escaping them. More info (straight from the XML spec): http://www.w3.org/TR/REC-xml#sec-cdata-sect[^] - Mike

      1 Reply Last reply
      0
      • H Hesham Amin

        Hi.. I exported an access 2000 table to XML file in some elements appears: myDataHere in some elements appears: <![CDATA[myDataHere]]> what does CDATA do ? what if I ommit it ? note than in cases that CDATA appears myDataHere includes (") or (..)

        T Offline
        T Offline
        Tom Archer
        wrote on last edited by
        #3

        CDATA is simply data that will not be parsed when read. For example, I have an XML help file that contains code snippets for common programming tasks. Since a lot of the characters in the code would violate XML rules and I don't want the format touched. I enter that data into my file as CDATA-type nodes. Cheers, Tom Archer Inside C#,
        Extending MFC Applications with the .NET Framework It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson

        J H 2 Replies Last reply
        0
        • T Tom Archer

          CDATA is simply data that will not be parsed when read. For example, I have an XML help file that contains code snippets for common programming tasks. Since a lot of the characters in the code would violate XML rules and I don't want the format touched. I enter that data into my file as CDATA-type nodes. Cheers, Tom Archer Inside C#,
          Extending MFC Applications with the .NET Framework It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson

          J Offline
          J Offline
          J Dunlap
          wrote on last edited by
          #4

          I didn't know about this. Helpful! :)

          "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
          "You must be the change you wish to see in the world." - Mahatma Gandhi

          T 1 Reply Last reply
          0
          • J J Dunlap

            I didn't know about this. Helpful! :)

            "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
            "You must be the change you wish to see in the world." - Mahatma Gandhi

            T Offline
            T Offline
            Tom Archer
            wrote on last edited by
            #5

            Coolbeans. I'm glad I could you also. By the way, great sig! Funny how words like that can mean different things to you depending on what you're currently going through in life. Cheers, Tom Archer Inside C#,
            Extending MFC Applications with the .NET Framework It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson

            J 1 Reply Last reply
            0
            • T Tom Archer

              CDATA is simply data that will not be parsed when read. For example, I have an XML help file that contains code snippets for common programming tasks. Since a lot of the characters in the code would violate XML rules and I don't want the format touched. I enter that data into my file as CDATA-type nodes. Cheers, Tom Archer Inside C#,
              Extending MFC Applications with the .NET Framework It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson

              H Offline
              H Offline
              Hesham Amin
              wrote on last edited by
              #6

              Thank you all :)

              1 Reply Last reply
              0
              • T Tom Archer

                Coolbeans. I'm glad I could you also. By the way, great sig! Funny how words like that can mean different things to you depending on what you're currently going through in life. Cheers, Tom Archer Inside C#,
                Extending MFC Applications with the .NET Framework It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson

                J Offline
                J Offline
                J Dunlap
                wrote on last edited by
                #7

                Tom Archer wrote: By the way, great sig! :-D Tom Archer wrote: Funny how words like that can mean different things to you depending on what you're currently going through in life. True. :)

                "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
                "You must be the change you wish to see in the world." - Mahatma Gandhi

                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