Thanks to Roddey and Kevin, I found a couple of leads on the alphaworks
site.

Sangita

Keith Visco wrote:

> The first child, is not necessarily "Element1", but the text node
> containing the carriage return.
> Your in memory object model probably looks like this:
>
> #document
>    #element: Element
>       #text: \n
>       #element: Element1
>          #text: gg
>       #text: \n
>
> --Keith
>
> Sangita Gupta wrote:
> >
> > Hi all,
> > This is my xml document:
> > <?xml...etc>
> > <Element>
> > <Element1>gg</Element1>
> > </Element>
> > -------------------------------------------------
> > I loaded this document and have a doc. I have a RootElement of type
> > DOM_Element which is the root of the document. I am doing :
> >
> > DOM_Element RootElement = doc.getDocumentElement();
> > DOM_Node ChildElement = RootElement.getFirstChild();
> > cout<< ChildElement.getNodeName().transcode();
> >
> > This outputs #text whereas I am expecting to see Element1.
> > what is the deal?
> >
> > Thanks in adv.
> > -s

Reply via email to