The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
CDATA question
Hello and Greetings,
I have a MOD that I have been trying to learn how it works and found what I think is a strange call in it so I can wondering if anyone can give me a clue why this was done. Here is the issue: Code:
<title><![CDATA[mod title test "somequotedtest"]]></title> I would really appreciate any info that might explain why this was done. TIA Michael |
#2
|
||||
|
||||
CDATA - (Unparsed) Character Data
The term CDATA is used about text data that should not be parsed by the XML parser. Characters like "<" and "&" are illegal in XML elements. "<" will generate an error because the parser interprets it as the start of a new element. "&" will generate an error because the parser interprets it as the start of an character entity. Some text, like JavaScript code, contains a lot of "<" or "&" characters. To avoid errors script code can be defined as CDATA. Everything inside a CDATA section is ignored by the parser. A CDATA section starts with "<![CDATA[" and ends with "]]>": |
#3
|
|||
|
|||
Thanks for the reply. So, would the quotes in the Title tag be the reason that they used the CDATA wrapper? It is the only title tag in the MOD that contains any non Alphanumeric characters.
TIA, Michael |
#4
|
||||
|
||||
It could be, and more than likely is the reason for the CDATA
|
#5
|
|||
|
|||
Thanks again. I decided to test it to see if that was the issue, so I removed the quotes and the CDATA but when I went to import it, I got a fatal error:
XML Error: Attribute without value on line ... Something else going on there that I have figured out yet. Given that I am using this as an opportunity to learn how products/plugins are suppose to work together, I think this is a good thing that its making me debug it. thanks again. Michael |
#6
|
|||
|
|||
You should not edit the product xml-files. All edits are done in the AdminCP and will be placed in the xml-file when the product is exported.
|
#7
|
|||
|
|||
Thanks for that, I was wondering about that too. In fact I just picked that up from the vBulletin manual and I was thinking that I would get it to work and export it to have a clean version. Thanks very much for the comments.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|