Page 1 of 1
Well-formed character data or markup
Posted: Thu Jun 01, 2006 9:40 pm
by BigAbe
I am getting this error message, and I have no clue as to it's meaning.
The content of elements must consist of well-formed character data or markup.
If someone could shed some light, I'd be greatly appreciative!
-- Abe --
Posted: Thu Jun 01, 2006 9:43 pm
by hawleyjr
What type of error is it? What are you trying to do? Hard to say without seeing any code

Posted: Thu Jun 01, 2006 9:52 pm
by Ambush Commander
It looks like XML (RSS, perhaps?). Are you sure you entity-ized your quotes and ampersands?
Posted: Thu Jun 01, 2006 10:03 pm
by BigAbe
hawleyjr wrote:What type of error is it? What are you trying to do? Hard to say without seeing any code

I'm bringing html into an xml environment. Not by choice.
It looks like XML (RSS, perhaps?). Are you sure you entity-ized your quotes and ampersands?
Could you please explain "entity-ized"?
-- Abe 00
Posted: Thu Jun 01, 2006 10:38 pm
by Christopher
You may want to read up on
htmlentities() and related functions.
Posted: Fri Jun 02, 2006 1:13 pm
by BigAbe
arborint wrote:You may want to read up on
htmlentities() and related functions.
So basically, I'm going to have to recode everything based upon htmlentities if I want this to work? Ouch.
Posted: Fri Jun 02, 2006 1:27 pm
by BigAbe
Ambush Commander wrote:It looks like XML (RSS, perhaps?). Are you sure you entity-ized your quotes and ampersands?
Do I need to entity-ize my quotes and ampersands in the html code or the output as well?
By that I mean, do I have to do anything to the following instances:
Do I need to change these quotes?
would I need to convert these ampersands in the link?
Posted: Fri Jun 02, 2006 3:41 pm
by Ambush Commander
Once again, it depends on context. If the XML dtd doesn't permit HTML like tags, yes, they will all have to be entity-ized in order to maintain info. The processing applciation will then grab the data and reparse it.
CDATA sections can be quite convenient in cases like this.