Re: [ticpp] Need to parse a string passed in over TCP

139 views
Skip to first unread message

Colorado Rob

unread,
May 16, 2013, 2:18:35 PM5/16/13
to ti...@googlegroups.com

Use Boost PropertyTree.  It has a decent XML parser.

On May 16, 2013 1:05 PM, "DrewCrewOf2" <drewc...@gmail.com> wrote:
Hello,
I hope somebody still is listening to this group. I loaded in TinyXml++ or TiCPP or whatever and have it parsing the small XML test files.

HOWEVER my use is the listen to a TCP connection and capture xml encoded messages coming over the wire.

I cannot seem to overring the DOCUMENT input format and simply give the string I want directly to the parser.

Any residen guru's that could help me out?

Here is a sample message that is coming over:

char * message =
"<request>
    <type>CALLUPDATE</type>
    <deviceid>George Washington</deviceid>
    <requestid>1</requestid>
    <user1>99-9999-99999</user1>
    <calldirection>O</calldirection>
</request>"

Any suggestions of how to parse this simple string?

Thanks in advance,
Dennis in Camarillo CA

--
You received this message because you are subscribed to the Google Groups "TinyXML++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ticpp+un...@googlegroups.com.
To post to this group, send email to ti...@googlegroups.com.
Visit this group at http://groups.google.com/group/ticpp?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply all
Reply to author
Forward
0 new messages