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 > january 2006 > threads for january 8 - 14, 2006

Filter by week: 1 2 3 4 5

Subtracting the values in attributes in an XSLT
Posted by David S. Alexander at 1/13/2006 8:08:08 PM
How can I do simple subtraction in an XSLT. I want to read a few attribute values from an XML document, calculate their difference, and transform that value to an attribute in the XML output document. My original XML is, <Dates> <Birth Year="1966" /> <Current Year="2006" />...more >>

update/insert with microsoft.xml.xquery(.net2.0beta)
Posted by Daniel at 1/13/2006 3:05:03 PM
update/insert with microsoft.xml.xquery(.net2.0beta) can anyone provide an example of how to update/insert with microsoft.xml.xquery? ...more >>

XslTransform is not matching node when source XML contains an xmlns attribute
Posted by David S. Alexander at 1/13/2006 12:40:25 PM
I am trying to transform XML to XML using an XSLT in C#, but the root node of my XML is not being matched by the XSLT if it has an xmlns attribute. Am I handling my namespaces incorrectly? My C# code is, // Create an XSLT transform object XslTransform xslTransform = new XslTransform(); ...more >>

Xml Serialization and block="extension"
Posted by Mork at 1/13/2006 12:02:51 PM
Expanding the audience (initially posted to microsoft.public.dotnet.framework.webservices): Are there any System.Xml.Serialization attributes or is there a way in the ASMX plumbing to publish (in XSD via WSDL) and enforce (in dispatch) the xsd:element attribute block="extension"? For examp...more >>

Possible to detect changes to an XmlDocument object?
Posted by Gabe Covert at 1/13/2006 8:46:03 AM
If I instantiate an XmlDocument object, the load a file through the Load method, is there a way, later on in execution, to easily determine if the XmlDocument object has changed from the original version loaded? I'd like to be able to check a condition to see if the document in memory has...more >>

deserializing
Posted by jsh02_nova NO[at]SPAM hotmail.com at 1/13/2006 8:23:03 AM
I'm trying to deserialize my xml type as an array w/o a declared namespace, but none of the Serialization Attribute classes help. Where can I find info on how to build a deserializer that will create arrays?...more >>

Error message when retriving a string from my xml file in C#.net a
Posted by Alpha at 1/12/2006 2:57:02 PM
I created the following code in my C# program but it's giving me error message at run time of : XML.XPATH.XPATHEXCEPTION : Namespace Manager or XSLTContext needed. This query has a prefix, variable or user defined function. Can someone see what I'm doing wrong? Thanks, Alpha private...more >>

Reading a COMPLEX CONTENT : Stan Can you help?
Posted by Ganesh Muthuvelu at 1/12/2006 2:06:02 PM
Hi STAN, Stan: Thanks for your response to my previous post on reading a XSD file using your article in "https://blogs.msdn.com/stan_kitsis/archive/2005/08/06/448572.aspx". it works quite well but I have one problem.. I am not able to read a Complex Content.. Here is a portion of the XSD t...more >>



Creating an XML file from a datatable or dataset
Posted by Sameer_Vantage at 1/12/2006 11:57:02 AM
I need to create an XML file which is in a pre-defined format (All the tags are defined) from data extracted from a SQL Server database. The XML should be created in such a way that the tags should match the right data, for e.g. the XML will have a tag <AccountName></AccountName> and the datat...more >>

how to include the XML declaration with XmlDocument.WriteTo()
Posted by Andy Fish at 1/12/2006 11:10:35 AM
Hi, I am using XmlDocument.WriteTo() and I find that the xml declaration is not included. at the moment I am doing this: XmlTextWriter xw = new XmlTextWriter(...); xw.WriteStartDocument(); doc.WriteTo(xw); Which works, but it seems a bit cludgy. is this the correct solution?...more >>

where does Microsoft.Xml.Xquery live?
Posted by Daniel at 1/12/2006 10:47:08 AM
where does Microsoft.Xml.Xquery live? where does Microsoft.Xml.Xquery live? all i can find is a copy of it in the sample project: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvsdev05/html/vs05c5.asp but would like to know where Microsoft.Xml.Xquery should be obtained. ...more >>

Howto optimize XSL transformations (reuse compilations) on a web server?
Posted by peter.fredrikson NO[at]SPAM extenda.se at 1/12/2006 6:13:26 AM
Hi, I have a web server application (C#) which I would like to speed up a little. I would appriciate a discussion of design principles for a specific optimization scenario described below. My web server process every request by building a XML structure containing both application data, data...more >>

"Correct design?" Transform excel file to xml
Posted by andy at 1/12/2006 1:31:40 AM
Hi I am writing a procedure to load an excel file into an xml file that can be validated before loading it into a database via an api. At the moment I can read the excel file into a dataset very easily and save the xml using writexml but of course i get a format that doesnt match the schema...more >>

Validating against a schema without target namespace, is it possib
Posted by Ian at 1/12/2006 1:29:03 AM
I've inherited some xml that doesn't have a namespace and doesn't have a reference to the schema. The schema doesn't have a targetNamespace attribute. I'm trying to build a test tool, in C#, which will send the xml to the server and then validate the response against the schema. When I try and...more >>

XmlTextReader-derived class - overrides not being called
Posted by Ian Harding at 1/11/2006 4:49:10 PM
I have a class derived from XmlTextReader. It implements the following methods: public override void ReadEndElement() public override void ReadStartElement() public override string ReadString() public override bool Read() When the class is used to read a document, the Read override is call...more >>

Xml Seralization Ignore attribute
Posted by Livrish at 1/11/2006 2:34:14 PM
Hey I have having a problem Deserializing a dataset. When I try to deserialize it (See below for my test code) I get the following exception {"Item has already been added. Key in dictionary: \"NextSyncPhase\" Key being added: \"NextSyncPhase\"" } But if I remove either msdata:NextSyncPh...more >>

Map XML data to another XML
Posted by Coco at 1/11/2006 7:02:02 AM
Hi, I have 2 xml document the A and B, i want to to map some of the data from A to B using XSLT, but without creating a new XML Document. How can i do that? Thanks...more >>

Need a few examples
Posted by Billg_sd at 1/10/2006 4:08:02 PM
It's been awhile since I've had to work with XML in VB.Net. Look at the following snippet: <Parameters> <Parameter>123</Parameter> <Parameter>456</Parameter> </Parameters> How do I find Parameter=123 and delete it? ...more >>

Help with Attribute
Posted by Phenglai at 1/10/2006 12:50:04 PM
I need a little help getting an attribute added to my XML Doc. I am trying to interface with the FedEx web site and they have this in the root: <FDXTrackResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FDXTrackRequest.xsd"> How do I get the noName...more >>

Programatically reading a XSD File
Posted by Ganesh Muthuvelu at 1/10/2006 12:40:05 PM
Hello, Let us say I have a schema file like this sample below. How would I using ..NET classes be able to read this XSD file and get all the values for each element, such as "name", "type", "minoccurs" etc.,? I would appreciate if somebody can help me with some sample code. Thanks for ...more >>

XML/XSD database design documentation
Posted by Macca at 1/9/2006 4:11:02 AM
Hi, I am designing a database and wanted to document the design using XML/XSD. I have little experience of this and was wondering if anyone has any suggestions on how to do it or useful links? Thanks In Advance Macca...more >>


DevelopmentNow Blog