Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 15 Jun 2008
Offline Last Active Apr 13 2016 08:24 AM

Topics I've Started

xsd.exe classes in c#

12 April 2016 - 05:41 AM

I created a list of classes from an xsd with xsd.exe utility.
I'm looking for a way to expand the content of some deserialize xml in these classes in order to have a correct objects structure.
My problem is that I have the xml and xsd that have ids and refs attributes and where for example I have a ref in the xml i get the classes that ignores it and I have a set incomplete classes with null in place of the entity corresponding to the ref.
thank you.
There is a method for deserialize a complete set of classes?Where the ref attributed class correspond to the id.

convert tabular data to opencl / cuda buffer

01 March 2016 - 12:07 PM

hello i'm searching for a fast method for transform a very big tabular data to an opencl buffer or texture.
I use c# and i select two table.
Now i can use datatable.net class or a cursor in java or c#.
then what is a fast method for transform this tabular data to a buffer or texture?
Because i must compare char to char these data and return where are the difference and all this in opencl.
I have some doubt for the fields . how opencl kernel can find in what field is the compare?
I can use a transcode bufffer?
can you help me ?
this can be useful also for other user.

custom xml in c# and 4 gb xml files

14 February 2016 - 07:39 AM

I have created with the xsd.exe any classes from a huge xsd..
Then i load  a my custom xmlreader
I would create a custom xmlreader for make some little adjustment on the fly like sax to some xml files of size around 4 / 5 gb.
The problem is that when i change an element on the fly in the custom xmlreader the next function that is triggered is the public override string NamespaceURI and any string i return in this function i get an error because the parser asks for an xmls= and i can't remove this xmls= that is proposed in all elements.
How i can eliminate this xmlns=?

c# and multitasking or async functions

29 January 2016 - 06:16 AM


I use c#.
I created a system of push notifications with the microsoft exchange webservice exchange but may be any other webservice.
Basically I have a method that responds to an event when I make a change on exchange.
The problem is that I can have many events and each of these must play a "work" that is, put a id in 2 / 3 tables.
I was wondering whether to start a thread or a task or an asynchronous function that creates a new connection and adds all ids in the db for each event.
not know nothing of multitasking then i ask you.
thank you.

custom xmlreader in .net

14 January 2016 - 05:27 AM

I have this problem:
i try to import from an XML format (open format to xml ifc architecture) of which I have the xsd and its generated classes for deserialization / serialization, now unpickled / serialized properly.
The problem is that some cad exports a little as they like especially the namespaces.
I created inheriting an XmlReader a custom xmlreader that enumerates the namespaces , elements and attributes, but I doesn't replace the namespace with those of the CAD system that has different namespace.
I would use a custom XmlReader for each CAD system in for adapt the xml to the standard xml .
thank you.