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 > august 2003 > threads for august 8 - 14, 2003

Filter by week: 1 2 3 4 5

Serialisation > construct objects
Posted by lobrys at 8/14/2003 11:25:17 AM
Hi everybody what are the objets for the folowing XML serialisation : (I have problem with "name" and "datatype") <vehicule type="car"> <name datatype="String">Megane</name> </inventory> I Have this : class vehicule <xmlattributeattribute()> public type as string ...more >>


XML samples for replace a child element
Posted by Chi Tang at 8/14/2003 9:53:16 AM
Hi, Does anybody know where I can find samples to search an element in a subtree of an xml file and replace some new value for this element? I can only find some samples to use 'replace last child or replade first child' but couldn't find sample for replace a child neither first nor last chil...more >>

XSD Complex Type
Posted by Kanchana D S at 8/14/2003 9:02:46 AM
Hi, I have a complex type which has to have its content in the xml instance document as shown below : <CONFIG_INFO> <country resourceNumber="20004" fieldSecurity="5, 5">Great Britain</label> </CONFIG_INFO> For this, I have defined the schema as below : <xs:complexType name="Attri...more >>

xsi:noNameSpaceSchemaLocation
Posted by Balaji V at 8/14/2003 2:30:04 AM
Hi, I am creating C# calsses to seralize and deserialize based on xsd. When defining the classes to do seralization i need to specify the schema for the reference. Typically my class definition looks like this : [XmlRootAttribute(NameSpace = "", IsNullable=false)] public class MyClass {...more >>

Same query against multiple docs
Posted by mono at 8/13/2003 5:08:04 PM
Hello, I have a collection of XML strings and want to find those that match a given XPath expression. I see lots of stuff to support evaluating the same expression against different nodes in a single document but as far as I can see, if I want to evaluate the expression against different d...more >>

Serialisation > ignore element when an attritube is null
Posted by lobrys at 8/13/2003 3:26:48 PM
Hi everybody here is a question I have this class that a want to serialize : Public Class BOO <XmlAttributeAttribute()> Public THING As String <XmlElementAttribute("param")> Public p() As param End Class it is (of course) working with this class : Public Class P...more >>

Schema Editor Problems in VS.NET
Posted by Andrew Ducker at 8/13/2003 8:51:17 AM
I have an XML document and a schema. It validates fine, but when I try to switch to data view there's a problem. So I tried "Create Schema" and got the error: An error occurred while loading the schema with targetNameSpace "http://tempuri.org/XMLFile1.xsd" referenced in this document. Ind...more >>

Reading XML direct from SQL
Posted by Jason Hirst at 8/12/2003 6:13:38 PM
Hi, I'm not sure if this is possible, I can't see why, but is there a way round a problem I have. I'm returning the results from a stored procedure, of which there could be anything from 5 to 1000 records. The results have simply 3 columns (parent, level, name), although this could increas...more >>



Add new element in the text of another element
Posted by Dave at 8/12/2003 4:56:25 PM
Hi, I have an xml file which looks sort of like this: <Drugs> <Drug> <Name>Losartan Potassium</Name> <Indications>Antihypertensive</Indications> <SideEffects>BP Change, GI Distress, etc</SideEffects> <Warninigs>Dizziness, insomnia, cough, URI, anemia</W...more >>

XMLSerialization doesn't serialize Shared (static) members
Posted by sam at 8/12/2003 4:43:54 PM
Hi Doesn't seem like XMLSerialization serializes Shared properties. My vb.net class has a load of properties, only two of which are marked as Shared. When I serialize it to XML, all the properties are represented in the resulting XML except the two shared members. Can't find anything on M...more >>

Mapping a datatable column to an xml element
Posted by Anita C at 8/12/2003 4:24:05 PM
Hi, How do I associate or map a specific column in a datatable to a particular element present in an xml document - to read into a datatable as well as write from the datatable to the xml element? Also, how can I associate all the attributes and their values of a particular element to the Name...more >>

XML Schema Design
Posted by Kanchana D S at 8/12/2003 3:22:50 PM
Hi, I am trying to design the schema for an XML file. The approach that I am planning to follow is to have 2 XSD files, each containing some relevant information about the elements in the instance document and then planning to automatically generate the XML file from these 2 schema files u...more >>

simple xml for states list
Posted by ghanchi NO[at]SPAM bigfoot.com at 8/12/2003 2:11:03 PM
Hi, Quick Question: How to create a simple XML with US States list and read it into a combo box. Detail: I am very new to Dot Net technology as well as xml. I am building a desktop app in C# and need to populate the US States list (AL, AR, .. WY) in a combo box. I could have done it by r...more >>

Problem creating schema
Posted by Andrew Ducker at 8/12/2003 12:25:28 PM
I created a Schema (see below) in VS.NET. I then tried to create an XML document so that I could enter data for it. It gives me the error "An Error occurred while loading the schema with targetNameSpace "http://tempuri.org/Folderlist.xsd" referenced in the document. Index(zero based) must...more >>

serialisation : remove defaut attribute
Posted by msnews.microsoft.com at 8/12/2003 10:54:47 AM
Hi Here is another EASY question When you serialise an object in .NET, serialisation adds defaut attributes that I dont care EXEMPLE : <root_test xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> ....... .... </root_test> my class ...more >>

Newbie: Return a xml-document to client
Posted by Daniel Johansson at 8/12/2003 9:31:56 AM
Hi I have a webservice that generates a xmldocument when you call it either from a .aspx-site or with http-GET. eg. http://...ws.asmx/method?arg1&arg2 I now want to present this xmldocument for the user i his/her webclient (eg Internet Explorer). I cannot return the xml-document as a dataset...more >>

getting started in XML & XSLT
Posted by Jack Fox at 8/12/2003 8:57:52 AM
I've never had the need to work with XML, but I believe I now have an appropriate application. I have time-series data in objects organized as a tree that I want an ASP.NET program to write out to web pages formatted as a matrix. It is not a simple matrix, since the number of row heading cells ca...more >>

Serialization problems
Posted by TheCow at 8/11/2003 9:37:32 PM
Hi Group I have homemade class, lets call it firstclass, and then another class (secondclass) which contains an ArrayList of firstclass objects. When I try to xml serialize secondclass with the arraylist in it I get an errormessage saying "The type <TheNameSpace>.<TheFirstClass> was not exp...more >>

Read HttpWebRespponse by XmlTextReader throws XmlException: Root element not present
Posted by Koji Ishii at 8/11/2003 7:27:57 PM
I'm trying to read response from a web server using XmlTextReader. Here's a code snippet. WebResponse rs = this.WebRequest.GetResponse(); Stream stm = rs.GetResponseStream(); XmlTextReader reader = new XmlTextReader(stm); reader.XmlResolver = null; // no DTD/schema, high perf ...more >>

HELP - Getting a Difference between XML documents?
Posted by leeedw NO[at]SPAM hotmail.com at 8/11/2003 12:30:19 PM
Hi, I have 2 sets of XML documents. XML1 is: <Root> <Node1>111</Node1> <Node2>222</Node2> <Node3>333</Node3> <Node4> <Node4A>444A</Node4A> <Node4B>444B</Node4B> </Node4> <Node5>555</Node5> </Root> XML2 is: <Root> <Node1>111</Node1> <Node2>222New</Node2> ...more >>

Return XML from ASPX page.
Posted by Jim Mitchell at 8/10/2003 10:11:04 AM
I tried the following to return an XML string, but it did not seem to return XML Any ideas? Thanks in advance. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Response.ContentType = "text/xml" Response.Write("<ReturnValue><...more >>

XSD.exe and multiple file
Posted by Steve B. [Labo.Net] at 8/8/2003 3:22:21 PM
Hi I have several xsd file I'd like to use with xsd to generate cs files. Unfortunetely, there are xsd dependencies between the xsd, and so xsd.exe is not able to create cs files. Xsd are one's shipped with the Microsoft Office 2003 Beta documentation, about Research Service (http://downlo...more >>

Dataset.WriteXML and Thread.CurrentThread.CurrentCulture
Posted by Rahul Agarwal at 8/8/2003 12:42:47 PM
Hi I am trying to write data back to the client using dataset.WriteXML and I have set the Thread.CurrentThread.CurrentCulture to "no" (norwegian) just before writing the data using WriteXML. But dataset.WriteXML dosent seems to be using the CurrentCulture settings and still writes dates, nume...more >>

System.Xml.Schema.XmlSchemaElement.UnhandledAttributes Property
Posted by Rein Petersen at 8/8/2003 5:45:11 AM
Somebody please tell me what is the matter with the System.Xml.Schema.XmlSchemaElement.UnhandledAttributes property. I don't seem to be able to access no matter how I try... Rein ...more >>


DevelopmentNow Blog