17
In some examples of platforms, has among the tags the <![CDATA []]>
, but what’s it for in XML after all?
Template for an XML to be followed by a platform.
<?xml version="1.0" encoding="UTF-8"?>
<loja>
<produto>
<link><![CDATA[http://www.loja.com.br/blusas/blusa-feminina?idparceiro=P1]]></link>
<imagem><![CDATA[http://www.loja.com.br/imagens/blusa-feminina-1.jpg]]></imagem>
<nome><![CDATA[Blusa feminina vermelha]]></nome>
<categoria><![CDATA[Blusas Femininas]]></categoria>
<descricao><![CDATA[Blusa feminina com gola em V e detalhes em strass.]]></descricao>
<valor><![CDATA[119,00]]></valor>
<valor_promo><![CDATA[95,90]]></valor_promo>
<parcelamento><![CDATA[2x R$47,95]]></parcelamento>
<cor><![CDATA[Vermelho, Azul, Branco]]></cor>
<marca><![CDATA[Tommy Hilfiger]]></marca>
<modelo><![CDATA[Único]]></modelo>
<material><![CDATA[100% algodão]]></material>
<tamanho><![CDATA[P, M, G]]></tamanho>
<sexo><![CDATA[Feminino]]></sexo>
</produto>
</loja>
I understand that since the CDATA snippet can appear anywhere in the XML where it can go text, such as between two tags, I believe the general guideline is to search in the XML Parsing you are using if there is the feature ready to escape this CDATA content in the text brought to a particular component of the XML tree..
– Piovezan