I don't think there's a simpler way.  Xerces implements the DOM specifications, 
which as far as I know do not specify such functionality.  The idea behind the 
specs is to give a reasonably complete set of tools that can be combined in 
many ways, rather than trying to provide all useful APIs.  Writing simpler, 
less capable APIs is left to you, because only you can know what the acceptable 
tradeoffs are.

But while it looks a bit scary at first, using serializers is not really very 
hard.

-----Original Message-----
From: Jose Luis Zabalza [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 12, 2007 6:39 AM
To: [email protected]
Subject: Re: Get inner text

2007/7/10, David Bertoni <[EMAIL PROTECTED]>:

> Jose Luis Zabalza wrote:

> > I try ((DOMText *)element)->getWholeText() but y get a (0xFFFFFFFF)
> > pointer and the program crash.
> >
> > <D1>
> >  <D2>text</D2>
> >  <D3/>
> > <D1>
> >
> > if element is pointed to D1 I want get a text with
> >
> >  <D2>text</D2>
> >  <D3/>
>
> Then you need to use a serializer.  What version of Xerces-C are you using?
>

  OK. I watch DOMPrint example and I see DOMWriter example. It's OK
and fullfeatured but too munch complicated. Is there  another simpler
manner to get inner text?

Thanks in avance

-- 
José Luis Zabalza
jlz.3008  a t  gmail.com
Linux Counter 172551

Reply via email to