Continuing to work on the unit test harness. Got interrupted by an interesting issue. We had an XML document that was apparently not loading…. turns out the Mono System.Xml parser treats the BOM as text that is "where no text should be". This must be because the file is packaged in the bundle as a blob and not as a file (where a file stream would properly strip this). This is the error it gives:

Platform assembly: C:\Users\ray.pendergraph\Desktop\BioFor-rev6081_Win_Data\Managed\System.Xml.dll (this message is harmless)
XmlException: Text node cannot appear in this state.  Line 1, position 1.
  at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0 
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x00000] in <filename unknown>:0 
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) [0x00000]

No links today.

Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.