• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Convert structure to XML?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert structure to XML?


  • Subject: Re: Convert structure to XML?
  • From: Brian Onn <email@hidden>
  • Date: Wed, 18 Jan 2006 02:58:06 -0800


On Jan 18, 2006, at 1:56 AM, xiegang wrote:

Hi!
I want to convert my structure data into XML data,and transmit it through network.
So,I want to know what I should do using c/c++?
thks!
 

In a nutshell: 

You'll want to decide on a schema to use to represent your structured data. Once you have that, use an XML library like Xerces for C++ or Expat for C to convert your data structures into XML in a memory buffer. 

With most XML libraries, the memory format is the same as the wire format, so it's ready to send.  Use a networking library to send it client/server style over the network.  There are several free C and C++ networking libraries to be found on the net, or you can  just use simple sockets.  If your client and server are on  the same host or same lan and don't really need internetworking, I'd choose something simple to use like a publish/subscribe API to send the XML messages around.  
 
---
Brian Onn
email@hidden


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Convert structure to XML? (From: "xiegang" <email@hidden>)

  • Prev by Date: Convert structure to XML?
  • Next by Date: Project file coruption
  • Previous by thread: Convert structure to XML?
  • Next by thread: Re: Convert structure to XML?
  • Index(es):
    • Date
    • Thread