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

processing XML in protocol messages

  • To: <xml-dev@l...>
  • Subject: processing XML in protocol messages
  • From: "Bing-huang Cheng" <bhcheng@a...>
  • Date: Fri, 8 Nov 2002 14:30:13 -0800
  • Importance: Normal

protocol messages
Hi,

I'm new to XML and my current work is to provide a data connection in XML
between 2 machines through network.

I'm interested to know how generally people do this kind of jobs from the
program's point of view. Do people wrie program to compose protocol messages
in XML (probably DTD as well), send to the other end, and then the receiver
uses an XML parser to get a DOM structure from the message, and access the
message data through the DOM structure?

This is kind of big overhead and people who want to use XML as their message
encapsulation need to understand XML first.

I'm thinking a way that the application/protocol programmers do not have to
worry about the XML format and still send/receive messages in XML. That is,

1. Before the compile time, the C header file defining the message formats
is translated to an XML schema file by a certain tool (e.g. TOOL-1) off
line.

2. A utility library (e.g TOOL-2) is used during run time to generate an XML
text stream based on two inputs: "a C struct object for a message format"
and "the XML schema file generated in step 1".

3. The receiver can get the same C struct object that a sender sent by
calling a tool like XML parser (e.g. TOOL-3) with two inputs: "the XML text
stream received" and "the XML schema file generated in step 1".

Is this doable? Are these tools (TOOL-1, TOOL-2, and TOOL-3) available from
the Internet? Or how do people generally do about this?

Thanks for any comments.




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.