I have the following xml I'd like to deserialize into a class
<?xml version="1.0" encoding="utf-8" ?>
<root>
<element1>String1</element1>
<element2>String2</element2>
</root>
I am trying to serialize it into the following class:
[XmlRoot("root")]
public class root
{
[XmlElement("element1")]
internal st...
I've always preferred using XSD.exe/VS.Net to generate schema, generate classes off the schema, deserialize xml file into object tree to parse an XML file. [Well, most of my requirements thus far have made this a perfect choice].
I've a crib though: The class names generated by XSD.exe are weird - meaning XSD.exe strives to keep them u...
I've copied a Dataset from one csproj to another, and the new project gets the following compile warning:
"The custom tool 'MSDataSetGenerator' failed while processing the file 'Client.xsd'."
In researching this warning I discovered that if I opened a VS cmd prompt and run XSD.exe on the xsd file directly I get more info. It says:
"Err...
In the past, I have used XSD.exe to create c# classes from an xsd. Today, I added an XSD to VS.NET 2008 SP1 and it automatically generated a dataset from my xsd, slick but I don't want a dataset. Is there a way to have vs.net automatically execute xsd.exe each time I modify my xsd.
...
I have a an XSD that looks like this (roughly)
<xs:schema id="Appointment" targetNamespace="http://tempuri.org/Record.xsd" elementFormDefault="qualified"
attributeFormDefault="qualified" xmlns="http://tempuri.org/Record.xsd" xmlns:mstns="http://tempuri.org/Record.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas...
Hi
Does anyone know what advantages (memory/speed) there are by using a class generated by the XSD tool to explore a deserialized XML file as opposed to XPATH?
...
Is it possible to have any control over the class names that get generated with the .Net XSD.exe tool?
...
I have a .xsd file which I use to generate code with the xsd.exe tool from Visual Studio.
Some class members are Guids and the xsd.exe tool gives 2 warnings:
Namespace 'http://microsoft.com/wsdl/types/' is not available to be referenced in this schema.
Type 'http://microsoft.com/wsdl/types/:guid' is not declared.
The Guid type is recog...
I have auto generated some classes from an xsd file using the XSDObjectGen.exe tool. My classes contain extra public variables, named using leading underscores, and I cannot figure out why.
Here's a sample from the xsd file:
<xs:attribute name="Fare" type="xs:int" use="required">
<xs:annotation>
<xs:documentation>The fare p...
So I have an XSD and a webservice that delivers in that same format.
Now I could go ahead and read the xml into a document, create my objects from the class etc... But I am thinking, there must be some easier way to do that.
Am I right? ;)
Yahoo Maps GeocodeResponse XSD
Yahoo Maps GeocodeResponse sample
<ResultSet xsi:schemaLoc...
In my project I have very big XSD file which i use to validate some XML request and response to a 3rd party.
For the above scenario I can have 2 approaches
1) Create XML and then validate against give XSD
2) Create classes from XSD with the help of XSD gen tool, add xtra bit of attirbutes and use them for validation.
Validation in the...
I'm a bit out of my element. I've used xsd.exe to create an xsd schema from an xml file, and then to create a C# class from that xsd. That all seems to work fine.
At the moment I'm just trying to get the XML deserialized. The file I'm deserializing if the very same file I used to build the class originally. Here's my code:
String xsdPa...
Is there a way to control the output filename from xsd.exe?
My specific issue is that if an imported xsd is referenced this is added to the filename.
...
Does the xsd.exe tool provided with Visual Studio generate the SchemaLocation attribute (in the xs:import) when generating XSDs from plain old C# objects?
I am finding that my XSDs that were generated are not valid because the xs:import will import a namespace and not provide the relative schemalocation value prompting the below
Imp...
I'm using Visual Web Developer to build a Silverlight Class Library. I have another project where the Class Library is imported and implemented. It's loading an XML file and I'm using XmlSerializer.Deserialize into a class I created with xsd.exe.
Sometimes, when loading the XML, I get this error:
Unhandled Error in Silverlight 2 Appl...
I would like to produce C# helper files from the KML2.2 xml schema using the XSD.exe tool (from VS2008 SDK). With KML2.1, the tool worked just fine. However, the KML2.2 schema contains import tags pointing to other schemas causing XSD.exe to freak out.
This is the error message I get:
C:\Program Files\Microsoft Visual Studio 2008 SDK...
In Visual Studio 2005 the XSD compiler was in the SDK/v2.0 directory. In Visual Studio there is only a SDK/v3.5 directory has gone and so too has the xsd.exe compiler. Where has it gone?
Tony
...
I am looking for more advanced alternatives to xsd.exe.
I am just about to start a fairly simple project and decided to try using LINQ2XSD.
The project has now been released as open source to CodePlex.
I'm just wondering how many people have attempted to use it, if there are any 'dealbreakers' or critical bugs in there.
I downloaded t...
I used the xsd.exe tool to generate a class based on my xml schema. It created a public partial class with DebuggerStepThroughAttribute. Well, I created another partial class file for this class to write my custom code and want to be able to step-into this code I've written but it appears the debugger is applying the step-through attri...
Halo
I'm sure this question has been asked many times in the past, but I'm having a nightmare with it.
I have a set of XSD schemas with a tonne of complex types. One of them is this:
<complexType name="commandType">
<sequence>
<choice>
<element name="check" type="epp:readWriteType"/>
</choice>
</sequence>
</complexT...