ransion paul wrote:
Hi All,
I am new to this xpcom. I am working for past 7 days. Is it possible to create new xml file using xpcom apis? . If yes Please send sample codes.

         Thanks in advance,
Regards,
Ransion.

------------------------------------------------------------------------

What are the most popular cars? Find out at Yahoo! Autos <http://us.rd.yahoo.com/evt=38382/_ylc=X3oDMTEzNWFva2Y2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMmF1dG9z/*http://autos.yahoo.com/newcars/popular/thisweek.html >

Hi Ransion,

If you're working in js, here's some info that might help:

Here's example code for creating files:

http://kb.mozillazine.org/Dev_:_Extensions_:_Example_Code_:_File_IO


Here's an example of creating and serializing an XML document:

// load string into xmldocument object
var parser = new DOMParser();

// load xml string
var xmlDoc = parser.parseFromString("<book><chapter/></book>", "text/xml");

// serialize
var serializer = new XMLSerializer();
var xmlString = serializer.serializeToString(xmlDoc);

hth,

-d
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to