Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
all groups > dotnet xml > june 2005 > threads for june 8 - 14, 2005

Filter by week: 1 2 3 4 5

Determining default namespace?
Posted by Andy at 6/14/2005 9:29:33 AM
Hi all, I have several Xml files, which at the root node change the default namespace, as below: <?xml version="1.0" encoding="UTF-8" ?> <rootNode xmlns="http://www.some.com/namespace/A" /> where A can be several different codes. I found in order to be able to SelectNodes, I needed to ...more >>


Finding nested elements in XSD
Posted by SideByEach at 6/14/2005 7:47:20 AM
I've got a schema loaded into a XmlSchema class. Via the elements collection I can see all the elements defiend at the root of the schema. How can I get the definition of a nested schema element? Thanks. ...more >>

xsd.exe cannot generate schema
Posted by PeterW at 6/14/2005 7:36:02 AM
I have an xml file from which I want to generate an xsd schema and at a later stage a cs class. The xml file has a mix of defined namespaces and also an empty namespace. These are defined as follows: <silcn:silcn xmlns:silcn='http://silcn.org/200309' xmlns='http://xmlprobe.com/200312'> i...more >>

.net code to compare 2 xml documents
Posted by Rasmus at 6/14/2005 5:06:02 AM
I've looked at XmlDiff, but can't use its output in my case. Therefore i'm looking for an alternative. I need at piece of code that can take 2 xml documents and tell me the differnces. Any ideas?...more >>

XmlDiff licence?
Posted by Rasmus at 6/14/2005 12:43:07 AM
I short: May I use the XmlDiff dll's from GotDotNet in production code i sell?...more >>

XmlSerializer & external XML document
Posted by Lloyd Dupont at 6/14/2005 12:00:00 AM
I get an XmlDocument from an external source. I want to load it/map it to C# class. I'm creating classes as I learn about the format. many tag are yet unparsed, but that seems ok for the XmlSerializer, great! Now here is my problem. let say my document conceptually map to classes like t...more >>

How do I write an XPath expression to retrieve data for this xml?
Posted by steve bull at 6/13/2005 4:31:12 PM
How do I write an XPath expression to read the color range node from the following xml file. I.e. where attribute = "All Red Colors"? The final file will have many more nodes in it. I realize this is probably very easy but the examples I have seen only indicate how to get a match for red, blu...more >>

XmlSerializer, XmlAnyElement and CDATA
Posted by Munish at 6/13/2005 11:10:03 AM
(VS.NET 2K3, C#) Hi, I need to serialize/deserialize an element using XmlSerializer that can contain any valid XML including a CDATA section. [XmlRootAttribute] public class Test { [XmlAnyElement] public XmlElement Anything; } This doesn't work with an XML like the following: <Test><...more >>



HTML formatting after applying XSL to XML
Posted by Simon M at 6/13/2005 7:25:05 AM
Hi, Hopefully someone can answer this; I am using aspx and c# to format XML using an XSL transform, the output is then written to the the response of the webform. When the page first loads the layout is not like it is described in the XSL... there is too much whitespace with gaps between th...more >>

Sorting nodes
Posted by Griff at 6/13/2005 12:00:00 AM
I have an XML document that contains a set of nodes with attributes. As a stylised example, consider the following XML document: oDoc.loadXML "<i><d a='1'/><d a='3'/><d a='4'/><d a='2'/><d a='0'/></i>" What I want to do is set a nodelist to the <d/> elements and iterate through them, prin...more >>

code list of UTF-8
Posted by Rolf Brockmann at 6/11/2005 2:05:02 AM
i searching for a list of the double character encoding spezial charcters in UTF-8 such as äüö... Can any one send me link where i can find a complete list? -- best regards Rolf Brockmann...more >>

XmlSchema and types
Posted by SideByEach at 6/10/2005 11:05:40 AM
If I wanted to find the type referenced in this XML's root node, what object would I use in the SOM? <xs:schema xmlns="http://www.w3.org/1999/XSL/Transform"elementFormDefault="qualified" targetNamespace="http://www.w3.org/1999/XSL/Transform"xmlns:xs="http://www.w3.org/2001/XMLSchema" xmln...more >>

Check for existance of an element with a particulat attribute value (id)
Posted by sosh NO[at]SPAM nospampls.com at 6/10/2005 12:00:00 AM
Hi, Sorry for the simple question, but could anyone tell me the best way to test for the existance of an element with a particular attribute value (id) ? Thanks...more >>

not well-formed result of transformation not shown properly
Posted by tomek.ster NO[at]SPAM inetia.pl at 6/9/2005 11:46:57 PM
Hello ! I was developing xslt sheet lately and - experimenting - I made mistake resulting in that, the effect of the transformation is not well-formed xml document. I made these tests using XmlSpy and in output window I can see two parallel elements - according to "logic" of me sheet. The err...more >>

XML, XSD & dataset
Posted by Sam at 6/9/2005 9:54:01 PM
Hi all. I have a XSD file and a flat file (txt). My customer want that I create a XML (with XSD + file data). OK. 1) I open visual studio 2) I create a typed dataset (read xsd schema) 3) Now, I have the dataset empty My dataset now contains a complex type in a complex type (like a complex ...more >>

Parsing XML Schema, How To, please
Posted by Mike at 6/8/2005 3:25:04 PM
Hi! I have an Excel 2003 Schema I need to parse to extract elements names. I am puzzled which System.Xml object can help me. Here's the example of my schema: I need to get a collection of element names(TemplateB62,TemplateC62 ......) <?xml version='1.0' encoding='UTF-8'?> <xsd:schema ta...more >>

XMLSchema root node
Posted by SideByEach at 6/8/2005 11:56:50 AM
Is there any way to determine what would be the XML's root node in a XmlSchema class? I'm not sure if this is even possible since "XmlSchemaElement" objects don't have a parent element. I realize that I can start at the root elements of the schema and work my way down, but there is no way to tel...more >>

XmlDocumentFragment
Posted by apple NO[at]SPAM tick.ru at 6/8/2005 4:41:44 AM
Would someone help me? What, if anything, is wrong with the following code fragment? private XmlNode CreateStyles(XmlNode parent) { XmlDocumentFragment df = m_xmlDocument.CreateDocumentFragment(); df.InnerXml = @"<w:styles></w:styles>"; return parent.AppendChild(df); } and wit...more >>

Re-arrange xml tags
Posted by Shawn at 6/8/2005 12:00:00 AM
Hi, I've created an XmlDocument that looks like this: <root> <items> <name>test</name> </items> </root> I then create a new XmlElement (configuration) and add it to the XmlDocument, like this: myXmlDoc.DocumentElement.AppendChild(myXmlElement) Now my XmlDocument looks like this: <root...more >>


DevelopmentNow Blog