allowing an int to take a null value
I am really stuck with this and don't want to take the easy way out an just make the type string:Google ended up showing me this but I did not find it anywhere in the schema rules and it did not...
View ArticleUse Windows environment variables with xml file
Hi,Is there a way to use an environment variable like %username%, into a xml file? I need to create a scheduled task from .xml file but I need to get the current logged user into the .xml file.I'll...
View ArticleSerialize XML from Object (need to create: type and ![CDATA[)
How can i create a line like this:<ATTRIBUTE type="Size"><![CDATA["One Size"]]></ATTRIBUTE>I dont know how create the type and CData. Currently I have the following classes:public...
View ArticleI am having a problem finding a child node (c#)
Hi !My XML is a bit like this:<Layers><Layer><OverlapNames> ...</OverlapNames><CommonNames> ...</CommonNames><SnapNames><SnapName Name="zzz"...
View ArticleXML Schema Compilation Error for Valid XML Schema?
I am working with the following XML schema:<?xml version="1.0" encoding="utf-8"?><xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd" elementFormDefault="qualified"...
View ArticleHow to debug XmlDocument validation code from within Visual Studio
While within Visual Studio 2012 I do not get any exceptions triggered for validation errors from the XmlDocument.Validate method. I used the example code at Microsoft's site for XmlDocument.Validate (...
View ArticleXElement Save Adds Leading Charachters
Dear Experts,XElement objEl = XElement.Load(Filename); objEl = objEl.Element("ACES"); XNamespace xsi = XNamespace.Get(@"http://www.w3.org/2001/XMLSchema-instance"); XNamespace aces =...
View ArticleXSD schema to xml file generation using C#
Hi fellow developers,I need small help with my current scenario.I have 2 xsd schemas one is input and other is output.Now my requirement is based on those xsd template or structure, i need to write a...
View ArticleXmlSchemaSet vs XmlSchema - Browsing all xsds while using xsd:import
Hello all I have a parent XSD with multiple xsd:import. I am trying to import all the elements from the parent XSD using my utility and there is a difference of "schema.Elements.Count" between C# code...
View ArticleMSXML2::IXSLProcessor transform() Fails
The call to transform HResult returns Unspecified error.The same code and xml/xsl files have been tried on different Windows 7 machines. Some work and others do not.Does anyone know why this would work...
View ArticleXData: Schematized Data Exchange Solution
Hi, I'd like to introduce XData to those who are not satisfied with XML/XML Schema :)The world needs to exchange data. Data needs to have a specification. Schema is the specification of the data. We...
View ArticleModelling XSD with multiple namespaces in SOM
Hi Guys,I am building an application that extracts Types and there namespace from XSD files. The XSD file could be complex with multiple imports and multiple namespaces declared within. Here is simple...
View ArticleXmlReader with encoding fallback
Hello,I need to create a XmlReader for a stream with encoding detected from the stream and, if it cannot be detected or if it is detected as UTF-8, use UTF-8 that does not throw on invalid...
View ArticleUsing LINQ to extract list from XML [OpenXML]
The following is the XML file that is generated from Word document through OpenXML:XML Link hereI want to get the following list using LINQ:
View ArticleHow to prohibit leading and traling whitespace in XML Schema
I want to prohibit the use of leading and trailing whitespace in an element but besides that all other content is allowed.For examble < word? > should give a validation error.I do not want to...
View ArticleValidate XML against XSD with imported xsd's
Hello,I'm stuck for a while attempting to validate a xml against some xsd's. In the code below you can find my xsd's structure: (I need to use this structure in order to reuse the baseXsd's...
View ArticleSchema Validation Questions
I'm not really sure if this is the proper forum, so please advise if I got that wrong.I'm quite the newbie on schema validations, but have had some success using them. In the past, I've used tools...
View ArticleC# transformation script included within XSLT stylesheet doesn’t work in IE11
Contrary to these articles:https://msdn.microsoft.com/en-us/library/vstudio/533texsx(v=vs.100).aspxhttp://docs.composite.net/FAQ/Developer?q=How+to+run+CSharp+function+in+XSLT%3fAs soon as I include...
View ArticleIs there a way to modify the style sheet so that it transforms an XML...
I have extracted some code from codeproject to reindent an XML document. Does anyone know how I can modify the stylesheet to make it so that the transform of an XML file will result in empty tags...
View ArticleXML Schema validator fails to load XML Schema from URL
I'm trying to validate an XML document against a set of XML Schemas and the parser seems to freak out: even though all the schemas are referred to in the XML and are properly recognized by Schemas...
View Article