How can I create an Element Node

andy lau <[email protected]> Mon, 26 Apr 2010 14:31:41 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <c9112cd7-a28d-488a-a536-f1f5ef361b10@q31g2000prf.googlegroups.com>
Hi,

Can you please tell me how can I create an Element Node for a
nsDocument?

http://mxr.mozilla.org/mozilla1.9.1/source/content/base/src/nsDocument.cpp#4621

After I create an Element Node, I can add tagName, add attribute key
and value to that?

Thank you.