Results 1 to 7 of 7

Thread: getting xml data streams

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870

    getting xml data streams

    Hi,

    does anybody know anything about XML datastreams? I have someone that wants to send me a load of data in an xml data stream and i need to be able to recieve it.

    Any tutorials of anything?

    Cheers
    Nick
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  2. #2
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    The easiest way is to get him to simply post the xml document up on the web

    then you can load the document using a function like this

    VB Code:
    1. Private Function getStream() As Xml.XmlDocument
    2.         Dim doc As New Xml.XmlDocument()
    3.         doc.Load("http://www.thesource.com/xmldoc.xml")
    4.         Return doc
    5. End Function

    alternativly you can recieve it using a stream but i dont see why all the complication if he can create the document and postit as a page

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    i agree and that's what i'd prefer to do but unfortunately it has to be an xml stream!
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  4. #4
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    well if its going to be a stream how is he intending on providing the stream

    this will determine what you have to do in order to recieve the stream and dump it into an xml document

    can you give me any clues to this?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    to be honest i don't know at the moment. I'm just doing a bit of research as to the methods of achiving it would be. I pressume we would have a reader stream that stays open and listening or somthing?
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  6. #6
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    best option is to use the networkstream

    specify a common port that you will use

    and have your app listen on that port

    the remote app connects and sends a network stream over to your app

    your app would then recieve that stream and dump it into the xmldocument object

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    thanks for the help.

    is there a port that's usually set aside for this? like 80 being http?
    Also do you know anywhere where i can do a bit more reading up?
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width