You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Kenny Prole <ke...@avi.com> on 2004/10/26 17:06:48 UTC
Trouble with newDomNode()
I can't seem to get newDomNode method working. I'm probably just missing
something basic.
I have an XmlObject that seems to be setup just fine. If I call
toString() on it, I get as an example:
"<Root xmlns=\"http://test.com\"/>\r\n"
When I call newDomNode().toString I get:
"[#document: null]"
More complicated xml documents always return null as well.
Any pointers would be greatly appreciated. Does anyone have any sample
code using newDomNode?
Thanks in advance!
Kenny
Re: Trouble with newDomNode()
Posted by Franco Lazzarino <fl...@gmail.com>.
"[#document: null]" is what you want, it's the Document Node.
to get the root element <Root/> you need to get the document element.
newDomNode.getDocumentElement();
DOM isn't as nice as xmlbeans :)
On Tue, 26 Oct 2004 11:06:48 -0400, Kenny Prole <ke...@avi.com> wrote:
>
>
>
> I can't seem to get newDomNode method working. I'm probably just missing
> something basic.
>
>
>
> I have an XmlObject that seems to be setup just fine. If I call toString()
> on it, I get as an example:
>
>
>
> "<Root xmlns=\"http://test.com\"/>\r\n"
>
>
>
> When I call newDomNode().toString I get:
>
>
>
> "[#document: null]"
>
>
>
> More complicated xml documents always return null as well.
>
>
>
> Any pointers would be greatly appreciated. Does anyone have any sample code
> using newDomNode?
>
>
>
> Thanks in advance!
>
>
>
> Kenny
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org