XML serializer question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jo

    XML serializer question

    Hi all,

    To deserialize the xml string, I need the attribute set to null if it is
    missing in the xml stream, instead of seeing
    'System.NullRef erenceException occured'.

    I tried setting XMLAttributeEle ment(IsNullable =true or false), but I could
    not get what I wanted.

    Is there any simple way?

    TIA,

    Jo


  • Martin Honnen

    #2
    Re: XML serializer question

    Jo wrote:
    To deserialize the xml string, I need the attribute set to null if it is
    missing in the xml stream, instead of seeing
    'System.NullRef erenceException occured'.
    >
    I tried setting XMLAttributeEle ment(IsNullable =true or false), but I could
    not get what I wanted.
    >
    Is there any simple way?
    Can you post the XML and the class definition that you have?


    --

    Martin Honnen --- MVP XML

    Comment

    Working...