OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   processing XML in protocol messages

[ Lists Home | Date Index | Thread Index ]

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.







 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS