The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> PHP Development
|
Valid use of < |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

March 1st, 2013, 03:33 PM
|
 |
A Change of Season
|
|
|
|
|
Valid use of <![CDATA[ in XML. Why dreamweaver changes the color as if this is error?
In Dreamweaver when the code gets to don't, it changes the color as if this is error. But the browser doesn't show this as an error. Why?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<things><![CDATA[ We walk you step by step to make sure you don't miss anything. We seriously care about every single client. We spend time together in public and make sure you understand and learn everything. ]]></things>
</root>
|

March 1st, 2013, 04:25 PM
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
|
Because it isn't an error.
|

March 1st, 2013, 08:41 PM
|
 |
Likely to be eaten by a grue.
|
|
Join Date: Oct 2006
Location: Pennsylvania, USA
|
|
|
Dreamweaver isn't exactly a CIA supercomputer. It's not great. That's your explanation: Dreamweaver isn't great.
__________________
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
|

March 2nd, 2013, 03:52 PM
|
 |
A Change of Season
|
|
|
|
Quote: | Originally Posted by requinix Because it isn't an error. | Ok 'm confused! The Firefox shows it as a well formatted XML with no errors.
I also tried replacing ' with ' but it shows is as ' in the browser and not '.
What is going on there.
|

March 2nd, 2013, 04:18 PM
|
|
|
|
It's not an error. It's using Dreamweaver that's an error.
__________________
I ♥ ManiacDan & requinix
This is a sig, and not necessarily a comment on the OP:
Please don't be a help vampire!
|

March 2nd, 2013, 04:19 PM
|
 |
pollyanna
|
|
Join Date: Jul 2012
Location: Germany
|
|
|
What? requinix and ManiacDan just told you there is no error. The XML is correct.
If Dreamweaver shows errors, then that's because its XML parser is broken -- which is what ManiacDan just said. The only way to fix that is to send a bug report to Adobe or something.
Again: The XML is correct, so no matter what you do, you won't get it "correcter".
XML entities don't get parsed within CDATA sections. That's actually the whole point of CDATA sections: to prevent parsing.
|

March 2nd, 2013, 05:09 PM
|
 |
A Change of Season
|
|
|
|
Quote: | Originally Posted by Jacques1 What? requinix and ManiacDan just told you there is no error. The XML is correct.
If Dreamweaver shows errors, then that's because its XML parser is broken -- which is what ManiacDan just said. The only way to fix that is to send a bug report to Adobe or something.
Again: The XML is correct, so no matter what you do, you won't get it "correcter".
XML entities don't get parsed within CDATA sections. That's actually the whole point of CDATA sections: to prevent parsing. | Excuse me I didn' read the posts carefully! Now it makes sense.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|