DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> PEAR Forum - Forum for PHP Extension and Application Repository

PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Dealing with <![CDATA[]]> sections

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> XML
View previous topic :: View next topic  
Author Message
glauberportella



Joined: 18 Jan 2007
Posts: 2

PostPosted: Mon Jun 23, 2008 2:21 pm    Post subject: Dealing with <![CDATA[]]> sections Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> XML All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software