[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Transmitting XML between different applications
> Hello Mr. Kay, > When you say, "probably not to encode it at all, > i.e. send the XML document as is", do you mean send > the XML document as a string? Yes. An XML document is a string. > > My sending application will create XML (for e.g. from > browser input). I think best way to create a XML > structure from discreet input values, would to use a > DOM parser, and then serializing the DOM object into > string? Is this the best way to create XML string at > source application! That's one way. Alternatives to DOM, within the same architectural approach, include JDOM and XOM - both are much easier to use. Other possibilities include writing out SAX events to a SAX serializer, or writing angle-bracket syntax directly. Which is easiest depends on your application. > > I recently came to know about 2 applications > exchanging XML via email as transport. The sending > application sends "XML file" attachments to a specific > email address. The receiving application extracts the > XML attachments from email. Is this a practical > approach? It seems a bit kludgey to me, but as a cheap and cheerful way of achieving asynchronous communication with minimal configuration overhead, it's certainly viable. Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|