You create a DOM Document object in Mozilla like this (last I knew, this
may have changed):

xmlDoc = document.implementation.createDocument("", "", null);

..but doesn't the XmlHttpRequest send() method support a string of XML
as well?

http://unstable.elemental.com/mozilla/build/latest/mozilla/extensions/dox/class_nsIXMLHttpRequest.html#a5

<snip>

void nsIXMLHttpRequest::send (  in nsISupports body )  
 
Sends the HTTP request. 

If the request is asynchronous, returns immediately after sending the
request. If it is synchronous returns only after the response has been
received.

Parameters: 
body - Either an instance of nsIDOMDocument, nsIInputStream or a string
(nsISupportsWString in the native calling case). This is used to
populate the body of the HTTP request if the HTTP request method is
"POST". If the parameter is a nsIDOMDocument, it is serialized. If the
parameter is a nsIInputStream, it is expected to contain the
ContentType: and ContentLength: headers and trailing
carriage-return/line-feed pairs.  

</snip>

scottandrew



Michael Pemberton wrote:
> 
> Does anyone out there now I can create a DomDocument object in Mozilla.
> I am using an XmlHttpRequest object to transmit data to the server.  It
> accepts post data in the form of a DomDocument and I have no idea on how
> I convert my post data into such a format.
> 

-- 
scott andrew lepera
[EMAIL PROTECTED]
web stuff: www.scottandrew.com
music stuff: www.walkingbirds.com

JavaScript is a lot like C++, without all that useless stability.

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to