Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: How to parse XML coming from a socket?

by vadim_t (Acolyte)
on Oct 04, 2003 at 17:06 UTC ( [id://296535]=note: print w/replies, xml ) Need Help??


in reply to Re: How to parse XML coming from a socket?
in thread How to parse XML coming from a socket?

Thanks, XML::Stream seems to be pretty much what I need. It looks like the timeout in Process can be exactly what I need to get it done.

It also seems that I could use the StreamDelimiter thing, although then it looks like I'd have to pick some string that wouldn't appear in normal output.

Replies are listed 'Best First'.
Re: Re: Re: How to parse XML coming from a socket?
by zengargoyle (Deacon) on Oct 04, 2003 at 20:52 UTC

    and take a look at Net::Jabber this time because it uses XML::Stream for it's reading/writing sockets. (and not because you are reinventing it =P)

    from what i gleaned from your other posts i think you do need to wrap your messages in a top-level node like:

    <data> <stuff>whatever goes here</stuff> <to>server</to> <from>client</from> </data>

    if you want to make things easier.

    and you should check out the Jabber specs just because there's a lot of thought out XML in the specs (and the experimental specs) for things like queries/messages/presence and just about anything else you could think of to pass through an XML message router.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://296535]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-28 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found