Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About seacdsl

  • Rank

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location
  1. Its working now! Thanks for your help.
  2. Thanks for the info, the code snippet for CreateElement is what I had been looking for. I was trying to use an XmlNode. I reckon Ive got the other element in ok, as the schema states theres a 'sequence'. Having run it through the debugger, I think I see a problem. Im not loading the schema properly as examining the value of 'schemaIn' after it does the compile reveals that it contains 0 elements, as when I come to do the AppendChild, it raises a NullReferenceException.Maybe im missing doing as you suggested, to manually create and append this element?Not quite sure. As you can probably tell
  3. I have some binary data that I wish to convert to xml, using the schema as below, or something like it, but I cant see exactly how to populate the XmlDocument with my data. <?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="logResults"> <xs:complexType> <xs:attribute name="value" type="xs:decimal" /> <xs:attribute name="speed" type="xs:unsignedShort" /> <xs:attribute name="time" type="xs:int" /> </xs:complexType> </xs:element></xs:schema> This is using C# in VS20
  • Create New...