Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Browsing all 935 articles
Browse latest View live

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 Article


Use 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 Article


Serialize 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 Article

I 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 Article

XML 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 Article


How 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 Article

XElement 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 Article

XSD 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 Article


XmlSchemaSet 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 Article


MSXML2::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 Article

XData: 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 Article

Modelling 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 Article

XmlReader 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 Article


Image may be NSFW.
Clik here to view.

Using 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

Validate 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 Article

Schema 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 Article


C# 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 Article

Is 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 Article

XML 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
Browsing all 935 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>