[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: Posting Data Islands

  • From: "Steve Muench" <SMUENCH@u...>
  • To: <xml-dev@i...>
  • Date: 07 Jun 99 07:23:02 -0700

jsp xml data island
I don't quite understand the comment about replacing 
a named temporary buffer for XML sent to me from a server 
by a namespace, but here's an example of posting an 
XML data island to a server: 
 
function postTextAreaXMLToServer() { 
   // Get a new XML Document (these 3 lines not required if 
   // "doc" was already the name of an XML Data Island 
   // in the page). In my example I let the user type in 
   // an XML document in a TEXTAREA on the form whose 
   // name="toSend". doc.loadXML() loads raw text and parses 
   // it as an XML document.  
   var doc = new ActiveXObject("Microsoft.XMLDOM"); 
   doc.async = false; 
   doc.loadXML(toSend.value); 
 
   // Get an instance of the HTTP Request/Response Object 
   var msg = new ActiveXObject("Microsoft.XMLHTTP"); 
 
   // Open an HTTP message to define its characteristics 
   msg.open("POST","http://smuench-lap/echoxml.jsp",false); 
 
   // Send the "doc" XML Document (/Data Island) 
   msg.send(doc); 
 
   // Interpret the response. In this case my server JSP page 
   // parses the sent XML file and sends back the same XML 
   // file as a "text/xml" mimetype (an echo test). 
   toReceive.value = msg.responseXML.documentElement.xml;  
} 
 
See: 
 
http://msdn.microsoft.com/xml/reference/scriptref/XMLHttpRequest_object.asp 
 
For complete details... 
 
_________________________________________________________ 
Steve Muench, Consulting Product Manager & XML Evangelist 
Business Components for Java Dev't Team 
http://www.oracle.com/xml


  • From: "Matthew Sergeant (EML)" <Matthew.Sergeant@e...>
  • To: "'Owen Synge'" <owen.synge@m...>, XML development <xml-dev@i...>
  • Date: 07 Jun 99 02:43:58
> -----Original Message-----
> From:	Owen Synge [SMTP:owen.synge@m...]
> 
> I have been looking at the microsoft web pages (even though at hart I am
> a linux user) for XML examples, unfortunately I am yet to work out what
> to do with data islands once I send them to the client. Can they send
> them back to my server, or can they save them to disk, please help, or
> if you know a URL to demo these facilitys with out useing active server
> pages I would be most pleased.
> 
	Am I the only person that has come to the conclusion that XML Data
Islands are a really bad idea? I hope MS see it the same way, and deprecate
them in favour of namespaces instead.

	As an answer to your question, you have to do something with them in
Javascript (or heaven forbid: vbscript). I don't know the IE object model
well enough to know if you can save them to disk, but I'm sure you can
probably send them back to the server if you really want to.

	Matt.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)




PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.