User Profile

Collapse

Profile Sidebar

Collapse
prophet224
prophet224
Last Activity: Jun 5 '09, 01:44 PM
Joined: Apr 21 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • prophet224
    replied to XML Deserialization - xmlns not expected
    in XML
    Ok, here's the fix for me. I was getting the same (2,2) and "was not expected" set of errors.

    The section of my XML that was a problem looks like this:

    Code:
    <ns2:Info xmlns:ns2="http://www.something.org/whatsit-0-3-4">
    This is the significant part of the code that xsd.exe generated for me:
    ORIGINAL:
    Code:
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.something.org/whatsit-0-3-4")]
    ...
    See more | Go to post
    Last edited by Dormilich; Apr 22 '09, 06:34 AM. Reason: added [code] tags

    Leave a comment:


  • prophet224
    replied to XML Deserialization - xmlns not expected
    in XML
    Similar problem

    Hey, I'm having a very similar problem. Don't know if you got yours fixed but if I find mine, I will post it here.

    My hunch is that it has to do with the declaration of the XmlSerializer. There is a constructor that does as follows (from http://msdn.microsoft.com/en-us/libr...(VS.71).aspx):

    "Initialize s a new instance of the XmlSerializer class that can serialize objects...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...