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

조회수 138회
읽지 않은 첫 메시지로 건너뛰기

Colorado Rob

읽지 않음,
2013. 5. 16. 오후 2:18:3513. 5. 16.
받는사람 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.


전체답장
작성자에게 답글
전달
새 메시지 0개