[Mono-bugs] [Bug 536839] New: ShouldSerializeXXX method seems not to work with XMLSerialiser

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 4 10:20:05 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=536839


           Summary: ShouldSerializeXXX method seems not to work with
                    XMLSerialiser
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: informatique.internet at fiducial.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=316819)
 --> (http://bugzilla.novell.com/attachment.cgi?id=316819)
Main.cs

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2)
Gecko/20090803 Ubuntu/9.04 (jaunty) Firefox/3.5

According 
http://msdn.microsoft.com/en-us/library/53b8022e%28VS.71%29.aspx

a method ShouldSerializeXXXXX (where XXXX is the property name) could be used
to enable/disabled property serialization...

It works and has been tested with MS.NET 1.1 it should work too on mono

Reproducible: Always

Steps to Reproduce:
1.compile the included .cs
2.run it 
3.
Actual Results:  
Hello World!
<?xml version="1.0" encoding="utf-8"?>
<SimpleClass xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <MyValue>
    <Test>0</Test>
  </MyValue>
</SimpleClass>

Expected Results:  
Hello World!
<?xml version="1.0" encoding="utf-8"?>
<SimpleClass xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</SimpleClass>

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list