Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# and cXML - Best way to do it

Does anyone have worked with cXML and C#?

I'm working in a project that will need to create cXML files (integration will Dell's electronic Purchase Ordering system) and have found some libs like this one, but now I wonder if anyone here has another ideia of how to create those files.

Thanks!

like image 710
wtaniguchi Avatar asked Sep 02 '09 23:09

wtaniguchi


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

Is C language easy?

C is a general-purpose language that most programmers learn before moving on to more complex languages. From Unix and Windows to Tic Tac Toe and Photoshop, several of the most commonly used applications today have been built on C. It is easy to learn because: A simple syntax with only 32 keywords.

What is C in C language?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.


2 Answers

http://cxml.org/files/downloads.html

Go here and download the DTD file. Then open the document in Visual Studio (2013) and go to XML menu at the top and click "Create Schema". This will make an XSD file. Save it somewhere. Then use the VS Developer Command prompt, navigate to the directory where you just saved your XSD file and execute this command:

"xsd.exe filename.xsd /classes /language:CS"

It will then generate a CS file containing all of the cXML classes that you can reference in your project.

like image 176
Rafiki Avatar answered Sep 20 '22 13:09

Rafiki


I may add that since cXML v1.1.xx, there is a new Digital Signature stuff in it that will prevent XSD from creating the classe file. It should return an error like "

The element 'uri:ds:Signature' is missing.

"

However, you can take a look HERE : just remove that line from the XSD.

like image 20
Simon Avatar answered Sep 18 '22 13:09

Simon