HE XiaoGuang wrote:
> how to parser a xml file to a DOM of Gecko in c++ lauguage?

Using a DOMParser.

> i found the  api references of Gecko DOM are about Javascript in html.
> are there some references or examples of DOM api for c++?

Not really, but you can use the standard way of translating the XPIDL 
signatures 
into C++ signatures.  They're documented on mozilla.org.

You could also search the code for "domparser" -- we have some C++ code that 
uses it (e.g. in extensions/xmlextras/tests/TestXMLExtras.cpp or 
extensions/xforms/nsXFormsSubmissionElement.cpp).

-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to