Click here to Skip to main content
15,891,896 members
Everything / XSD

XSD

XSD

Great Reads

by Dirk Bahle
Tips & Tricks on De/Serializing object graphs with XML
by kingddd
Introducing a new tool to transform trx (mstest results file) into HTML report
by Krishna P Seetharaman
Issues faced and learnings found during the generation of pipe delimited flat file generation
by rvjagadheesh
Brief introduction about YQL (Yahoo Query Language). Also describes how to use the REST API provided by Yahoo! to gather information.

Latest Articles

by Krishna P Seetharaman
Issues faced and learnings found during the generation of pipe delimited flat file generation
by Dirk Bahle
Tips & Tricks on De/Serializing object graphs with XML
by O.Nasri
A good demo to know how you can implement an XSD & XSLT processor using C#
by rvjagadheesh
Brief introduction about YQL (Yahoo Query Language). Also describes how to use the REST API provided by Yahoo! to gather information.

All Articles

Sort by Updated

XSD 

25 Dec 2022 by Stiv Ostenberg
I am working on an XML Schema. I want the XML to contain multiple instances of "Manifest Entries" each containing a series of "Entries". In my application I want users to be able to enable or disable certain sets of "Manifest Entries" (they are...
13 Jun 2022 by .Net Perfect Dev
​ Hello, i want to validate by xsd an attribute can contain a float type or a word "exist". after search in the net i found this solution(https://www.w3schools.com/xml/schema_facets.asp)� but it does not worked. how to fix that ? ​ What I have...
13 Jun 2022 by .Net Perfect Dev
ok this is an exemple : xml file: and this is the xsd file which i tried:
13 Jun 2022 by ludosoep
It is a little odd that a double type can hold the value "exist". The example you've sent actually describes pattern matching on a string type. So it is either changing the type to string or define a double value that is considered equal to...
28 Oct 2020 by Member 14977865
I am receiving the SOAP Request XML which need to be validated against the WSDL. Also, SOAP Response XML should be validated against the WSDL using the .Net core 3.1 version. What I have tried: I have tried use XDocument document =...
13 Jul 2020 by jlayani
Hi, I’ve been tasked with building a web-based interactive SDK to speed up client-side development for our RESPful Web Service APIs. Part of the solution requires an engine that can read an XSD and dynamically generate an editable html form. The idea is to have the user populate the online...
4 Jul 2020 by Member 14880951
Hi Mark, We have the same issue but couldnt able to resolve it. If you were able to resolve this issue, please provide the resolution steps. Thanks in advance!!
7 May 2020 by TarunShrivastav
I Have two XSD schema files and i want to merge them into a single XSD and then want to apply some transformation. What I have tried: I am able to merge these files with the below lines but facing issues with the Root element.
20 Apr 2020 by RickZeeland
According to this CodeProject article: Create an XSD Schema….without knowing a darn thing about XSD.[^] you can generate XSD from a DataSet as follows: MyDataSet.WriteXmlSchema(@"MySchema.xsd");
20 Apr 2020 by Jörgen Andersson
So I have an XML file that I want to bulk load into a database. To create the database it would be nice to extract an XSD from it first. But the file is 80GB, so it won't open in visual studio. It's also a fairly advanced structure and my...
20 Apr 2020 by Maciej Los
Well... As agreed with @phil.o and @CHill60, the best way is to use XML Schema Definition Tool (Xsd.exe) | Microsoft Docs[^] Alternativelly, you can use XmlReader Class (System.Xml) | Microsoft Docs[^] to read xml data in async mode. Good luck!
1 Jan 2020 by Richard MacCutchan
See XML Schema Simple Elements[^]. You can only declare it as a string and then parse it into its separate parts in your run time application.
1 Jan 2020 by dj4400
Hi i Have a xml file with a position tag that describes a latitude longitude and altitude point which looks like this: 25.41 60.84 230 How do i write an XSD element that describes this tag? Thanks! dj4400 What I have tried: I cant change the original xml tag to 3...
11 Aug 2019 by mgoad99
I have a few XSD files and associated XML files containing data from a vendor. I will be importing the XML data into SQL Server. But first I need to setup the tables in SQL Server to match the structure described in the XSD files. The question I have, is there a tool or way to automate...
11 Aug 2019 by Member 14055619
Use XSD2DB[^] worked for me like wonder.
12 Apr 2019 by #realJSOP
I wrote extension methods to return a default value if the element didn't exist. Go to this CP article: Downloads: SQLXAgent - Jobs for SQL Express - Part 1 of 6[^] and scroll down to SqlxCommon\FileExtensions, and look for ExtendLinqToXML.cs BTW, I generally don't us the built-in .Net...
12 Apr 2019 by Roger Tranchez
Hello, (* I'm using LinqPad to test this, that's why you can see the .Dump() call at the end of my sample) In this code, I'm getting "Instance validation error: '' is not a valid value for claves_sexo", because it is empty: void Main() { string xmlString =...
15 Mar 2019 by Member 14183132
This is my xml code. ?xml version="1.0" encoding="UTF-8"? c_101 Monica 25 c1 ...
19 Jul 2018 by Rob H
I got a response from Jitterbit support and they confirmed that they do NOT support relative paths (...) in XSD files!
19 Jul 2018 by Rob H
I have a DB->XML Transformation and I have the DB Source set up. But trying to set the Target XML to my XSD file is giving me the following error: The uploaded file named "My.xsd" has a problem: The uploaded file includes a file which uses an invalid path. The path...
4 Jul 2018 by Krishna P Seetharaman
Issues faced and learnings found during the generation of pipe delimited flat file generation
19 Mar 2018 by Peter Lucansky
Hello, I am trying to validate XML (a.xml): by schema(a.xsd): ...
14 Jan 2018 by Donguy1976
Hello there, I have a XML file as shown below. 1 1 2017-12-29T12:16:51 ...
14 Jan 2018 by Dirk Bahle
Hi, I'd love to help you more but I don't think I could do it because of time constrains and I also don't have the data, the database etc... but what you can also do is to load the XML and the XSD in Visual Studio (File Open) and then VS may underline the XML part where it things that it is not...
12 Jan 2018 by Dirk Bahle
I am not sure what you actual problem is because the XML/XSD samples are long enough to oversee tiny problems - but you should: 1> Make sure that your error message contains a line number and column to see better where it locates the problem. An example for that is here using the...
30 Dec 2017 by Member 10189763
Hello Everyone. I am a little bit new to soap request and response. I am working on a project assigned to me where our partner has provided us there wsdl. In a request, they have mentioned an attribute which accepts multiple values. For the values to be passed they have provided us '*.xsd' file....
30 Dec 2017 by F-ES Sitecore
Just have multiple instances of the element ? Message 1 Message 2 If you have their WSDL file you should be able...
22 Dec 2017 by Dirk Bahle
Tips & Tricks on De/Serializing object graphs with XML
18 Oct 2017 by Member 13470186
Hi, I am quite new to WPF and I am trying to use an XML file for binding a TreeView in the XAML file. Using some of your posts I managed to visualize a basic xml file, now I have a problem to export my xls file to xml. My xls file consists in 3 columns: id, name, surname. Actually, I have 2...
18 Oct 2017 by phil.o
According to w3schools[^], you cannot name a xml element with only digits. Here are the rules: Element names are case-sensitive Element names must start with a letter or underscore Element names cannot start with the letters xml (or XML, or Xml, etc) Element names can contain...
18 Sep 2017 by Graeme_Grant
A Google Search: merge XSDs[^] found this: java - How to merge more than one XSD file to one XSD file? - Stack Overflow[^] which has examples and points to these documents for further information: * Schema Component Reuse - "include", "redefine" or "import"[^] * Schemas That Use Other...
9 Jul 2017 by Frederic GIRARDIN
Hello. I'm a .NET developer, and I'm working on the IFC format, which is the main format for exchanging data between each stakeholder of a construction project. Initially this format is described in EXPRESS language and the information was stored in the STEP21 format. But recently,...
9 Jul 2017 by F-ES Sitecore
I googled "xsd sequence" and this was the first result XML Schema sequence Element[^]
14 Jun 2017 by suman palla
Hi Everyone, Please explain the below regular expression pattern. What characters it allows. And what is '*' here ? ...
14 Jun 2017 by Patrice T
Quote: As per my assumption it allows A-Z, a-z ,0-9 and spacial characters like Back slash, Single Quote, and Hyphen. Your RegEx is a little more complex than that, looks like your problem is that you use RegEx without really learning it. Use last link and paste the RegEx and you will see a...
14 Jun 2017 by Kornfeld Eliyahu Peter
23 Jan 2017 by Nabin Jha
I have an XML file .... .... I am creating to validate schema. But I did not know the exact count of attach and every node will be in increment form. SO i want to check the name as Partial string.What I have tried:I am...
23 Nov 2016 by Member 12866356
Hi Experts I have a .XSD file and registered into the Oracle XMLDB repository. I would like to create a table conforming to the XSD structure and insert records in that and retrieve the output in a XML format.The following is an example of an XML schema definition, po.xsd:
21 Oct 2016 by O.Nasri
A good demo to know how you can implement an XSD & XSLT processor using C#
4 Oct 2016 by zonkerman2
I have an asmx web service (yes I know its old tech but no choice in the matter) I need to add a new class to for data transfers. Basically it will be used to pass into methods or return data. The class name is InspectionResults. The class is built using an xsd file as required for the group I...
17 Aug 2016 by Nayan_Kumar
I am getting a value in the code. That value is present in the xsd File as -xs:element type="xs:byte" name="sfFacilityID"I need check this name (i.e. sfFacilityID) in the xsd file and get the datatype of the same in c#What I have tried:if (templist.Count()
17 Aug 2016 by Nayan_Kumar
if my xsd file is like : ...
16 Aug 2016 by njammy
Hi nayankumar_msat@hotmail.comPlease see my example below for reading xml (see it working here : XML read dotNetFiddle[^]I hope this helps in getting you started with reading xml.using System;using System.Xml; public class Program{ private const string TestXml =...
31 May 2016 by Lalyka
I have a xml schema that based on that I have generated the schema class.I am using xmlserializer and I have tried to add nillable="true" so that it shows me the elements that are not null.What I have tried:it shows me the result like this: Test ...
31 May 2016 by PraveenDora
Hi Lalykayou can handle in two ways .. either set default value in XSD oryou can initialise those class variables to empty string RegardsPraveen
31 May 2016 by George Jonsson
Instead of nillable="true"tryminOccurs="0"This will leave out the element all together. Test
26 May 2016 by George Jonsson
An XML schema (XSD) IS an XML file by definition, so you can treat it in the same way as a regular XML file containing data elements.See XML Schema Tutorial[^]You might want to tell the receiver that you are sending a schema instead of content.You can do this with, for example, an...
26 May 2016 by AIR TRAVELS
i have posted xml using c sharp the code given below but what if i have to post xsd schema like that http://webservices.travelpack.com/xsd/external/FlightChoice.xsd[^] here is its content that i want to post SO KINDLY TELL ME HOW TO POST XSD SCHEMA IS IT SIMILAR LIKE XML...
20 May 2016 by Member 12242893
...
20 May 2016 by bharati_c
Is it possible to use a xsd schema against an xml file that validates the xml file in the following ways:1. if Attibute1 value is "XYZ" then Attibute2 value should be "ABC"?if Attibute1 value is "WXYZ" then Attibute2 value should be "DEF"?current xsd sample:
21 Mar 2016 by Shashank Raj
I have multiple XSD files and i need to merge all the XSD files into one single xsd file . the XSD files are huge and it should be merged with the root elements. What I have tried:As of now i do it...
21 Feb 2016 by prat10j
I have created a class library in which all the schema are added. The xsd schema have relative schemas (import/include).The dll of this project is referenced in another application where I need to validate the input XML, using these referenced dll schema.Please help me, how can I...
31 Jan 2016 by rvjagadheesh
Brief introduction about YQL (Yahoo Query Language). Also describes how to use the REST API provided by Yahoo! to gather information.
29 Dec 2015 by Mathi Mani
Hi Ravindranath.net,You can validate a XML against a XSD using the Validate extension method.Here is the code showing how to do it. XmlSchemaSet schemaSet = new XmlSchemaSet(); DirectoryInfo dir = new DirectoryInfo(""); foreach...
29 Dec 2015 by Ravindranath.net
Hello,I would like to validate my input object using the xsd file I defined. Would you please let me know how to do this?below is my c# objectusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace...
20 Nov 2015 by krzbuk
Hi i have a problem with sending message to WebService I'm generating code with wsutil.exe, in wsdl and xsd files i have field marked as xsd:date (only date), wsutil.exe generate's this properties as WS_DATETIME.I can't send message to WebService becouse i have error about invalid date...
11 Aug 2015 by User 11060979
Not the solution, but a "pragamtic workaround" to proceed work.I'm far away from be an expert on this, but my inspration told me to remove this "signature things", so I removed the line:And see... the DataSet will be created and I can...
11 Aug 2015 by gregorio89
Hi I have to read an xsd for create the xml structure on a dataset.when I do Dim Dati_xml As New DataSet Dati_xml.ReadXmlSchema("xsdpath")I get this error Element 'http://www.w3.org/2000/09/xmldsig#:Signature' is not declared.Can you help me?thank youthis is the header...
10 Aug 2015 by Maciej Los
You did not provide enough information to help you. So, we can only refer to similar questions and answers which may help you to find a way to resolve your issue:Validating Signature element of XML fails against XSDValidate signed XML with XSD - xmldsig
9 Aug 2015 by sreeyush sudhakaran
You missed .xsd or.xml extension in the code. It should be likeDim Dati_xml As DataSet = New DataSetDati_xml.ReadXmlSchema("xsdpath.xsd")for more refer here : https://msdn.microsoft.com/en-us/library/atchhx4f(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1[^]
31 Jul 2015 by yash00121
I am creating a rdlc report to print barcode where i post the barcode and item information from the database to new created bcodeds.xsd and DataTable1 is a datatable, i am writing the fallowing code but i am getting errorDim newCustomersRow As bcodeds.DataTable1Row newCustomersRow =...
23 Jul 2015 by KVPalem
We are trying to validate xml based on schema with below codeXElement xmldata = XElement.Load(@"Ad.xml");XDocument acordRequestxml = XDocument.Parse(xmldata.ToString());XmlSchemaSet schemaSet = new XmlSchemaSet();schemaSet.Add("", @"Schema.xsd");acordRequestxml.Validate(schemaSet,...
16 Jul 2015 by phil.o
Learn XSD, and type your schema definition by hand in a text editor (I've done that once, a long time ago).Or get an XML/XSD editor that could allow you do that graphically. I use XMLPad but if think there exist other open-source XML tools.
16 Jul 2015 by Member 11704693
This is the xml syntaxfor...
3 Jun 2015 by KVPalem
I have defined .xsd file by using complex types with xsd:sequenceSo it means the xml which I generate need to follow the sequence defined in .xsdHere problem is i can't modify the .xsd to do any changes. and i dont have control while XML generation.what i have is an .xsd file and...
11 May 2015 by dinesh_redhawk
Hello friends,Facing some problem with XML deserialisation. Please help:1) I have a XSD file, which i convert into a CS file using XSD tool. Tried to use this CS file in my project to deserialize a XML file (generated from the same XSD file). By doing this, iam getting error like "Cannot...
28 Apr 2015 by Leo Chapiro
Basically take a look at this answer:Use XML reader instead of XML dom. XML dom stores the whole file in memory which is totally useless: XmlReader ClassYour second question:Quote:How to use/access "private ATXARPACKAGE[] aRPACKAGESField" Why have you made this variable...
28 Apr 2015 by Mehdi Gholam
Start here : http://stackoverflow.com/questions/15772031/how-to-parse-very-huge-xml-files-in-c[^]https://msdn.microsoft.com/en-us/library/bb387013.aspx[^]
28 Apr 2015 by dinesh_redhawk
I have to parse the data from a very big xml file with lot of repeatetive elements and child nodes. I could have used the GetElementsbyTagName but that will be a very lengthy and complex solution w.r.t this xml file.I think the best method would be xml serialization and deserialization...
28 Apr 2015 by Lalyka
I am writing a XML validator with xsdbelow is what I did,but when I reach the line while (list.Read()) it gives me the error "There is no Unicode byte order mark. Cannot switch to Unicode." can anybody help me fix it?public class Validator { public void Validate(string...
20 Apr 2015 by Maciej Los
Wikkipedia wrote:XML validation is the process of checking a document written in XML (eXtensible Markup Language) to confirm that it is both well-formed and also "valid" in that it follows a defined structure. A well-formed document follows the basic syntactic rules of XML, which are the same...
20 Apr 2015 by Lalyka
I want to send a http request from client to local server and on the server I made a query with Linq that returns data in xml I also have .xsd file and a .cs file enerated from my xsd file that I want to validate my xml with. I have several questions:how can I validate xml with c# generated...
16 Apr 2015 by kingddd
Introducing a new tool to transform trx (mstest results file) into HTML report
30 Mar 2015 by Ajith The Great
Hi,Check this out..Convert a XML file to a XSD file[^]Hope this helps you..
30 Mar 2015 by Member 10769366
There is some straight forward code to convert XSD file to XML file. But I'm unable to convert the vice versa. Need a C# code to convert XML to XSD.
26 Mar 2015 by johannesnestler
So you can use the xsd Tool manually to generate the classes.See https://msdn.microsoft.com/en-us/library/x6c1kb0s(v=VS.100).aspx[^]for documentation.You find the tool in the .NET SDK Folder. E.g C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
23 Mar 2015 by Umesh AP
I have complex type (EmployeeInfo) defined in an .xsd file. So how can i use that type in my C# Web Service class? I already done lot of search on Google but can't find proper information. Thanks in advance.
17 Mar 2015 by Member 11149146
[I don't think there's any way of doing this in XSD 1.0. In XSD 1.1, like most things, it can be done with assertions.]
12 Mar 2015 by Maciej Los
I found 2 links:http://stackoverflow.com/questions/8925706/xml-schema-how-to-restrict-attribute-by-enumeration[^] - this one you have probably seen before, because you used similar...
11 Mar 2015 by Sergey Alexandrovich Kryukov
In XSD, you can make some element optional or mandatory. This can be controlled by explicitly defining the multiplicity, which can be understood as a constraint over the number of occurrences, using the attributes minOccurs and maxOccurs. Here the usage is explained on a simple sample:...
11 Mar 2015 by Member 11149146
100 2010 ABC PQRin the above xml if I delete 2010 this line then it must say...
9 Mar 2015 by mwallner
This is a crosspost from stackoverflow. - no answers there, hope you can do better =)I'm currently designing a special-purpose-application in C++ which has to deal with XML-files that come with evolving XSD-schemes. This application will need to be supported quite a while in the...
6 Jan 2015 by Yesudass Moses
Hi Friends,I have an SSIS Package which reads XML file using XML Source Component.This XML File has two outputs. One is for "Invoice" and other is for "InvoiceDetail"The structure of the XML File is like this. ...
5 Jan 2015 by deepakdynamite
Better to add an configuration file in SSIS and store your XSD File path in it... This will allow you to change values after deployment.http://www.sqlshack.com/using-xml-file-configure-ssis-package/[^]
5 Jan 2015 by Yesudass Moses
Hi Friends,I am new to SSIS packages. I have an SSIS package Solution in my local machine. It has an XML Source component which uses an XSD file in my local machine.When I deploy this on my SQL Server, How can I set the path to a new location on server ?Thanks
18 Dec 2014 by George Jonsson
I think you have an error in the beginning of the XSD.
18 Dec 2014 by jkirkerx
Wasn't sure where to post this question, so I'll post it here.I'm reading this API, and creating an XSD file to code against.This API, has all the names prefixed with v1:The API says The First Data Global Gateway Web Service API uses HTTPS and SOAP to communicate withyour...
18 Dec 2014 by jkirkerx
Called tech support and got the other API, which is just straight XML, no v1's and those other pesky attributes. I'm not sure what to think here.
3 Nov 2014 by roca2012
I am receiving XML from the database and trying to process it into my system. I have generated a class from an XSD that I received from the other team. The problem I'm having is that, right now the property names in the XSD do not match up to the property names within my application (typical)....
30 Oct 2014 by PIEBALDconsult
Ah, you have a default namespace -- I suspected as much; they cause nothing but trouble.Everything inside that element, including attributes, have that namespace and you will need to specify that in the XSD.
30 Oct 2014 by Member 11191404
The element 'Organisation' in namespace 'xxx' has invalid child element 'TIN' in namespace 'XXX'. List of possible elements expected: 'TIN, Name' in namespace 'YYY' But My XSD have the same element . My XML 12 US Kindly suggest me a...
29 Oct 2014 by Member 11191404
The element 'Organisation' in namespace 'xxx' has invalid child element 'TIN' in namespace ''. List of possible elements expected: 'TIN, Name' in namespace ''But My XSD have the same element .
29 Oct 2014 by Manoor Hebbar
I need to create a recursive XSD schema that validates a tree structure of an XML document.Sample XML: ...
29 Oct 2014 by Maciej Los
I'd suggest to use xsd.exe[^], which is helpful when you want to create xsd from xml file.For further information, please see:How to: Use the XML Schema Definition Tool to Generate Classes and XML Schema Documents[^]Auto generating Entity classes with xsd.exe for XML Serialization and...
25 Oct 2014 by Maciej Los
There is a tool, which is named xsd.exe[^]. This is standard tool for Visual Studio.[EDIT]Tutorial: Generate Sample XML from XSD[^][/EDIT]
25 Oct 2014 by Richard MacCutchan
Start with http://www.w3schools.com/schema/[^].
25 Oct 2014 by madhuabhi
I know we can use generate xml file option in eclipse. But I want the process to be automated