CDATA against parsers!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #1

    CDATA against parsers!

    Hey Gang!

    Hoping to get a better understanding of CDATA and what it really means:

    [HTML]

    Set cd = dom.createCDATA Section("<some mark-up text or what ever you feel like>")

    [/HTML]

    So far what I gather is this is used for data or fields we do not need parsed.

    Does it mean whatever is included within CDATA, if say "6464566546lklk jkj;ljlhjfhdkgf sfkdshf", it will not be touched?


    Or does it have to do with fields added on one line:

    <first>Pierre </first><second>P aul</second>

    Being be parsed as:

    <first>Pierre </first>
    <second>Paul</second>


    Is CDATA going up against parsers who rearrange stuff?

    Can you give me an example why CDATA may be needed?

    Thanks in advance for your help?

    Dököll
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by Dököll
    Hey Gang!

    Hoping to get a better understanding of CDATA and what it really means:

    [HTML]

    Set cd = dom.createCDATA Section("<some mark-up text or what ever you feel like>")

    [/HTML]

    So far what I gather is this is used for data or fields we do not need parsed.

    Does it mean whatever is included within CDATA, if say "6464566546lklk jkj;ljlhjfhdkgf sfkdshf", it will not be touched?


    Or does it have to do with fields added on one line:

    <first>Pierre </first><second>P aul</second>

    Being be parsed as:

    <first>Pierre </first>
    <second>Paul</second>


    Is CDATA going up against parsers who rearrange stuff?

    Can you give me an example why CDATA may be needed?

    Thanks in advance for your help?

    Dököll

    I think I'm okay, Googled it, still not clear but I get a sense of it. Thanks!

    Comment

    Working...