Hi,

Do you know why attribute nodes should be included?

I have just started using DOM.

Does this XML-fragments chapter element have an
attribute node as a child?
<chapter id="123">Intro</chapter >

If so, getTextContent would return "123Intro", seems strange?


Magnus



-----Original Message-----
From: Gareth Reakes [mailto:[EMAIL PROTECTED] 
Sent: den 31 mars 2003 18:26
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Implementing getTextContent


Hi,
        Eric is correct. Take a look at 

http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/core.html#Node3-t
extContent

for a more full explanation of what the method should do.

Gareth



On Mon, 31 Mar 2003, Erik Rydgren wrote:

> Using my best judgement I'd have to say yes. CDATA section should also
be
> included. CDATA nodes is only a specialization of text nodes to
prevent
> parsing of markup.
> 
> / Erik
> 
> 
> -----Original Message-----
> From: Magnus Strand [mailto:[EMAIL PROTECTED]
> Sent: den 31 mars 2003 16:26
> To: [EMAIL PROTECTED]
> Subject: Implementing getTextContent
> 
> 
> Hi,
> 
> Im trying to implement DOMNode::getTextContent using code from Erik.
> 
> I have made simple tests and it works good.
> 
> Do you know if getTextContent also should include CDATA-sections?
> I need to in my project.
> 
> Regards,
> Magnus Strand
> 
> –––––––––––––––––––––––––––––––––––––––––––––––––
> System Developer, MSc
> 
> Teknik i Media Sverige AB (publ)
> Södra Förstadsgatan 2, SE-211 43 Malmö, Sweden
> Mobile: +46 704 20 57 16
> Direct: +46 40 601 57 16
> Office: +46 40 601 57 00
> http://www.tim.se
> –––––––––––––––––––––––––––––––––––––––––––––––––
> DISCLAIMER: "The information contained in this email and any
> attachment is confidential. It is intended only for the named
> addressee(s). If you are not the named addressee please notify the
> sender immediately and do not disclose, copy or distribute the
> contents to any other person other than the intended addressee(s)."
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to