| View previous topic :: View next topic |
| Author |
Message |
glauberportella
Joined: 18 Jan 2007 Posts: 2
|
Posted: Mon Jun 23, 2008 2:21 pm Post subject: Dealing with <![CDATA[]]> sections |
|
|
Hello,
i have an XML with the following structure:
<?xml version="1.0" encoding="UTF-8"?>
<guia>
<loja id="" user_id="">
<descricao><![CDATA[ Descrição da Loja: bla bla bla ]]></descricao>
</loja>
</guia>
And i have a class that extends XML_Parser that has start, end and cdata Handlers as is required to parse XML with XML_Parser. The problem that i have is that de data within <descricao></descricao> isn't catched by my parser, so, how what is necessary to get data within elements that has <![DATA[]]> ? I noticed that removing <![CDATA[]]> the element <descricao> is parsed by my class.
Please, give me some explanation about this.
Thanks.
Glauber Portella _________________ Glauber Portella |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|