User Profile

Collapse

Profile Sidebar

Collapse
jonker
jonker
Last Activity: Aug 29 '08, 11:35 AM
Joined: Jul 31 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jonker
    replied to Deserialize multiple XML documents
    in .NET
    The data is directly received from the socket. The problem is that each message has a different structure and its own root node.

    OK, I can't deserialize multiple root nodes, but I can detect a full message and parse the single message.

    At the moment of deserialization you have to specify the type of the target object.
    XmlSerializer xs = new XmlSerializer(t ypeof(customer) );

    Since this can be multiple...
    See more | Go to post

    Leave a comment:


  • jonker
    started a topic Deserialize multiple XML documents
    in .NET

    Deserialize multiple XML documents

    Hi All,

    I have a TCP Client which reads the data from the socket. Now I have to deserialize the received data. The data can contain multiple XML documents like :

    <customer field="value">
    <address>road 11<address/>
    <customer/>
    <supplier>
    <goods>printers <goods/>
    <supplier/>

    In this case I want to deserialize...
    See more | Go to post
No activity results to display
Show More
Working...