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 > may 2006

Filter by week: 1 2 3 4 5

xsd enumeration and pattern
Posted by news.microsoft.com at 5/31/2006 8:07:15 PM
Hello, i got this attribute <xs:attribute name="jour"> <xs:simpleType> <xs:restriction base="stypeJour"> </xs:restriction> </xs:simpleType> </xs:attribute> where <xs:simpleType name="stypeJour"> <xs:restriction base="xs:string"> <xs:enumeration value="Lundi"/> <xs:enum...more >>


Error selecting nodes
Posted by barbaraann at 5/31/2006 2:56:56 PM
I am new to dotnet and I am having trouble reading an xml file. "The expression passed to this method should result in a NodeSet." Here is my xml file: <?xml version="1.0" encoding="Windows-1252" ?> <root> <Prov> <Abrev>AB</Abrev> <Postals> <Postal>T</Postal> </Postals> ...more >>

Cannot resolve the schemaLocation attribute C#
Posted by techie at 5/30/2006 3:56:49 AM
Hi, I am using an xml schema (Schema1.xsd) which refers to two other Schemas as follows. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:plcm-s="http://www.mycompany.com/plcm" targetNamespace="http://www.mycompany.com/plcm" elementFormDefault="qualified" attributeFormDefa...more >>

How to save xml file to SQL2000? with c#
Posted by Shuan at 5/30/2006 12:00:00 AM
hi, How to save next xml file to SQL2000? with c# thanks! <?xml version="1.0" encoding="gb2312"?> <MyData> <CLIENT> <CLIENTID><![CDATA[2300021923]]></CLIENTID> <CLIENTNAME><![CDATA[guest1]]></CLIENTNAME> <LOCALWEBSITE><![CDATA[index.shtml]]></LOCALWEBSITE> <SOURCEWEBSIT...more >>

Tips and Tricks XML
Posted by JR at 5/29/2006 11:23:31 PM
Hi, Anybody know where is the best site to learn Tips & Tricks programming for XML ? thanks JR ...more >>

XML document and XML schema
Posted by Mike at 5/29/2006 1:36:37 PM
Greetings, We have a requirement to utilize some sort of data storage, and XML strikes as being as viable a technology as the next one. I have started by using the XMLSchema designer to cook up a minimal schema to get us started. Now I'd like to take that schema and start a new XML docume...more >>

Convert Question (From XML to XML) using XSLT?
Posted by Homer at 5/29/2006 12:54:56 PM
Hi All, I have following XML File: <Header></Header> <Category></Category> <Item1></Item1> <Item2></Item2> <Category></Category> <Item3></Item3> Could someone please send me an example what is the XSLT text to convert it to: <Header> <Category> <Item1></Item1> <Item2></It...more >>

XML Request & Response & ASP.NET 2.0
Posted by ss at 5/28/2006 11:05:01 PM
Hi, I would like to know like in ASP.NET 2.0 or .net version 2.0, how do I parse the XML and consume it?. right now I am using the old methods like XML DOM. second thing is I need to send a XML Request to some URL, inturn I will be getting the response Back in the form of XML ONLY. ...more >>



VS2005 XML Template?
Posted by mscdex NO[at]SPAM gmail.com at 5/26/2006 12:52:08 PM
I've done some researching on the net and I keep seeing references to an XML/XSLT Template in the New/Add Project dialog window, however I do not see such a template in the dialog window. I tried checking add/remove components after reinserting the VS2005 disc, but no mention of extra templates....more >>

Code Generator that writes code to generate an XML doc structure?
Posted by joshblair at 5/25/2006 3:14:54 PM
Hello, Has anyone ever seen or created such a code generator? I'm looking for a sample of a code generator that will generate code (preferably one that uses C# and the XMLTextWriter) to create an XML document structure based on an XML file as input. I have to build some classes that allow...more >>

Using XMLTextWriter (or related tool) to write to a string?
Posted by darrel at 5/25/2006 2:13:01 PM
We've been using xmltextwriter to write XML files to the filesystem. For various reasons, we're ditching the filesystem and want to store the XML as text in a DB field. Looking at all the examples of using the XMLTextWriter, however, it appears that it is used solely for writing directly to...more >>

Implementation of context using xpath for treeview (c#)
Posted by orit at 5/25/2006 4:00:01 AM
I have the following xml: <?xml version="1.0" ?> <course> <globalProperties> <externalMetadata> <source>ADL</source> <model>ADL SCORM 1.0</model> </externalMetadata> </globalProperties> <block id="B1"> <identification> <title>Yes/No Questions</title> <descripti...more >>

xpath syntax
Posted by orit at 5/24/2006 11:50:02 AM
I have the following xml: <?xml version="1.0" ?> <course> <globalProperties> <externalMetadata> <source>ADL</source> <model>ADL SCORM 1.0</model> </externalMetadata> </globalProperties> <block id="B1"> <identification> <title>Yes/No Questions</title> <descripti...more >>

How do I load the XML got by HttpWebResponse read into a StreamRea
Posted by ss at 5/24/2006 7:21:02 AM
Hi, I would like to know like How do I load the XML Response which I got from HttpWebResponse? What I am doing, I will just put for your perusal; Dim hwrRequest As HttpWebRequest = CType(HttpWebRequest.Create("https://someurl"), HttpWebRequest) hwrRequest.Method = "...more >>

Is it possible to use regular expressions inside of an xpath statement executed by System.Xml.XmlDocument.SelectSingleNode() ?
Posted by Daniel at 5/23/2006 5:43:49 PM
Is it possible to use regular expressions inside of an xpath statement executed by System.Xml.XmlDocument.SelectSingleNode() ? string sdoc = "<foo><bar a='1'/><bar a='2'/></foo>"; System.Xml.XmlDocument pdoc = new System.Xml.XmlDocument(); pdoc.LoadXml(sdoc); System.Xml.XmlNode p...more >>

How to get first grandparent attribute not nodeset?
Posted by K B at 5/23/2006 5:17:57 PM
Hi, I'm using this... //Role[@UserName='kburke'][not(@finish)]/../../@Name but it returns more than one result. I need the FIRST grandparent @Name returned. I've tried: //Role[@UserName='kburke'][not(@finish)]/../../item[1]/@Name and variations of last() but haven't gotten it yet. ...more >>

"this is an unexpected token" error
Posted by lisa NO[at]SPAM starways.net at 5/23/2006 1:08:46 PM
I have an XML file that starts like this: <?xml version="1.0" encoding="ISO-8859-1" xmlns:fn="http://www.w3.org/2005/xpath-functions"?> <Authors> <Author> <ID>2</ID> <UserName>Whoever</UserName> <Title>Whatever</Title> <Internet>email</Internet> <Office>email</Office> </Autho...more >>

Working with multiple namespaces
Posted by daz_oldham at 5/23/2006 3:47:32 AM
Hi Everyone I was wondering if anyone knew of a good guide to working with multiple namespaces under .NET? And also help me with my latest poser. As you may have calculated by my other posts, I am working under a lot of new technologies that I didn't realise I would be when I took the job ...more >>

problem processing SOAP response
Posted by Robbert van Geldrop at 5/23/2006 2:04:02 AM
Hello, I have a problem consuming a WebService which appears to be dependent of the type of network I am on: The following SOAP response is not processed when I am connected over the internet with the WebService but it is processed correctly when I am on the local LAN: Can it have som...more >>

Creating DTD using DOM
Posted by Michel Verhagen at 5/23/2006 12:00:00 AM
Hi, I want to create a DTD in an XML file in memory. The XML file is created using the DOM in C#. I am new to all this, but couldn't find anything about creating DTD's using the DOM (well, I found some references but it doesn't tell me how to do what I want). Here's my code: XmlDocume...more >>

Almost there - Just need some type of "equals" statement
Posted by Rob at 5/22/2006 9:51:57 PM
The code below is almost there (it does change the value for EVERY ORDER).... I simply want to be able to change the value of the Delivered Tag to Yes. BUT ONLY if the Order is equal to 123456 ? <?xml version="1.0" encoding="UTF-8" ?> - <AllOrders> - <Order OrderId="123456"> <Route>...more >>

XPath XmlNodeList documentation - apparent contradition
Posted by SkyHook at 5/22/2006 7:00:03 PM
1. Under the topic "Select Nodes Using XPath Navigation" it says: "All XmlNodeList objects are synchronized with the underlying document, therefore if you ... modify the value of a node, that node is updated in the document it came from." 2. Under the topic "XmlNode.SelectNodes Method (Strin...more >>

How to edit a value of an element in an XML document ?
Posted by Rob at 5/22/2006 12:15:09 PM
First of all, I am using VB.net within the compact framework for programing a PDA... I am trying to modify the value of an item in an xml document... The only samples I see use the doc.SelectNodes method. When I try using this I get an error stating that "SelectNodes" is not a member of ...more >>

Insert XML string into XML File: Part 2
Posted by SteveW at 5/22/2006 2:15:25 AM
Thanks to some good help from a previous post, I have been able to create well formed xml as part of a report logger app. However, I still have a small problem. When I add new xml to the log file, the new nodes are appended to the original file. What I really want is for the log file to grow...more >>

Insert XML string into Document
Posted by S Wheeler at 5/19/2006 12:57:50 PM
Hi all - I need some help trying to insert / append a block of xml text into an xml document. This is for a reporting app and as new data is available, I must add it to the end of the document. It should be simple but I cannot seem to find the magic combo. Here is what I am trying to do: T...more >>

Transfering XLM files between computers....
Posted by Pilence at 5/19/2006 12:00:00 AM
Hy!! Can someone tell me please how to do this type of work done by using C#...... ...more >>

How to use form unload event as VB?
Posted by Shuan at 5/19/2006 12:00:00 AM
Hi, I need to do some thing when program exit or form unload in c# environment. How can I do it? Thanks. ...more >>

how to get root element attribute of xml file with c#?
Posted by Shuan at 5/18/2006 12:00:00 AM
Hi, I have a xml file as follow: ---------------------------------------- <?xml version="1.0" encoding="gb2312"?> <Mydata date="2006-05-16"> <personalData> <title>good book</title> <author>james</author> <price>58.3</price> </personalData> <personalData> <title>nice ...more >>

Force XMLSerializer to use class namespaces
Posted by ben NO[at]SPAM peikes.com at 5/17/2006 6:40:42 PM
Is there anyway to force the XMLSerializer to use fully qualified namespaces for when serializing? I was in the midsts of implementing EnterpriseServices configurations using a file store and XMLSerialization when I got clubbed over the head by the serializer because I have two different classes...more >>

Format the file
Posted by nicolas.lelievre NO[at]SPAM gmail.com at 5/17/2006 5:44:18 PM
Hi, When I serialize my object in an XML file, all the node will be in the same line. So, I would like to know if it's possible to format in order to be more readable. This is my sample code : XmlSerializer s = new XmlSerializer(); TextWriter w = new StreamWriter(File); s.Serialize...more >>

Determine schemas used by document
Posted by Donal McWeeney at 5/17/2006 5:21:17 PM
Hi, Using .Net 2.0 what is the best way to determine the list of schemas used by a XmlDocument. Thanks Donal ...more >>

WS Proxy generator stripping out XSD annotation and enumerations
Posted by The Man From SQL at 5/17/2006 3:32:02 PM
Hi there, Here's the problem: our team is working on a web service which formerly took in two user defined types consisting of mostly simple datatypes. Recently we decided to move toward an XML schema to define the two types and the required values to submit rather than having to send .NE...more >>

How can I read an xml file to populate a combobox?
Posted by rperreta at 5/17/2006 1:32:02 PM
I exported a xml file using .writexml from a dataset and now I would like to populate a combo box from that. Can someone supply a link or sample vb.net code that show's how to do this... much appreciated... here is some of the xml file: <?xml version="1.0" standalone="yes"?> <NewDataSet>...more >>

XmlReader, asp.net 2, and xmlexception help needed
Posted by TdarTdar at 5/17/2006 11:57:02 AM
Hello, I am very new to the xmlreader in asp.net 2, I was just tring to read the contents of is in the xml output. here is the sample code: Dim settings As New XmlReaderSettings() Dim reader As XmlReader reader = XmlReader.Create(XMLOutput, settings) While ...more >>

Get Element Value
Posted by Jay at 5/17/2006 11:41:49 AM
In a loop like so: .... xmlr=cmd.executexmlreader() xmlr.read() do while xmlr.readstate <> xml.readstate.endoffile loop How do I return each individual element name and value from a document like so: <Customer> <custno>2</custno> <lname>Doe</lname> <fname>John</fname> <address>1...more >>

XML From Stored Proc
Posted by Jay at 5/17/2006 8:22:08 AM
In VB.NET (Studio 2005) I need to loop thru a result set returned from a stored proc and generate XML for each row. E.g. exex procWhatever returns: custno, lname, fname, address 2, Doe, John, 123 4th St. 3, Smith, Bill, 567 8th St. 4, Grant, Terry, 333 Wherever St. For each on of those ...more >>

Losing space character value when writing attribute
Posted by Paul Hadfield at 5/17/2006 12:00:00 AM
Hi, Wonder if anyone can help me on this, In DotNet2.0 I've been quite happily using the WriteAttributeString method of XmlWriter object, but have run into a problem when trying to output a space character as the value of an attribute. Prototype of the method I am using is XmlWriter.Writ...more >>

XSL - The variable or parameter '...' is either not defined or it is out of scope.
Posted by Jody Gelowitz at 5/16/2006 9:08:14 AM
I have run into an issue with variable scope within an XSLT document = that is translated in VS.NET 2.0. Under VS.NET 1.1 (XslTransform), this = code works fine. However, when using VS.NET 2.0 (XslCompiledTransform), = the exact same XSLT transformation fails with the error: System.Xml.X...more >>

How to rename an element?
Posted by W. Jordan at 5/16/2006 12:00:00 AM
Hello, Can I rename the name of an XmlElement? I can't find any method or properties to do so in the .net 2.0 sdk. Shall I duplicate the XmlElement's children and attributes just in order to change its name? -- Best Regards, W. Jordan ...more >>

base64 encoding
Posted by Loren Dummer at 5/15/2006 2:47:18 PM
In Visual Basic 6 I could take a value from the database and create a byte array. I could then take the byte array and place it into an Xml document and specify the datatype of the node as bin.base64. Can anyone tell me how to accomplish this in Visual Studio .Net 2005? Sample VB6 code....more >>

how to pass parameters to xsl from my aspx file
Posted by Wang Xiaoning at 5/15/2006 2:42:24 PM
I have an customerdetail.xsl sheet ---------------------------------------------------------- <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="customer_number"></xsl:param> <xsl:template m...more >>

DTD options
Posted by Shawn at 5/15/2006 11:59:01 AM
I have a XML, DTD, and XSD documents. I am using them to store custom table mappings and import scheduling for my project. Here is what I am trying to figure out: In the DTD I have a "schedule" element with a "timing" attribute. There are hourly valid times so I created an attribute list...more >>

XslCompiledTransform not outputting to XmlDocument
Posted by p-cresswell NO[at]SPAM iname.com at 5/15/2006 10:18:55 AM
Hi guys/gals, Can you help with this? I am trying to use an XSL tranform with the new XslCompiledTranform class. I want it to output to a XmlDocument, but the document is empty after .Transform(...) but i Know thethe xsl and source xml are fine becasue if I output the Transform to a file it w...more >>

SchemaSet.Compile() - possible to extract the logical schema?
Posted by Allen at 5/15/2006 9:27:03 AM
I have a very complex XSD with lots of imports and schemaRefs. <longshot>I'm cheating and want to be able use the XSD.exe tool to simplify serialization soooooooo was wondering if there's a possibility of compiling the schema into a single logical set and then writing it out as a single XS...more >>

Deserialization of Null Elements
Posted by Jason at 5/15/2006 6:03:01 AM
I have some XML that contains some null elements, for example: <Document> <StartDate/> <EndDate/> </Document> I would like to process the XML using the .NET serialization tools (XSD.exe). The schema for the XML is under external control (i.e. I can't change it). As far as ...more >>

Extract XML using Dotnet
Posted by csgraham74 at 5/15/2006 4:24:38 AM
Hi Guys, I want to populate a nodelist so that i can extract various details. The xml document i have is similar to the one below. baiscally i want to extract the first instance of <PP> including <PP1> <PP2> <PP3> then separately extract the next instance of <PP> <PP1> <PP2> <PP3>. Does anyon...more >>

XML ASP.NET 2.o Issue
Posted by SK at 5/14/2006 6:32:25 PM
Hi, I have the following code and I'm using News.xsl to read the XML file - Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load '---------------------------------------------------------------------------- THIS PAST (myXml.Documen...more >>

Subject: retrieving the XmlEnumAttribute values for an Enum
Posted by Edward Clements at 5/14/2006 9:51:02 AM
I have an enum defined as public enum velocityUom { /// <remarks/> [System.Xml.Serialization.XmlEnumAttribute("m/s")] ms, /// <remarks/> [System.Xml.Serialization.XmlEnumAttribute("cm/a")] cma, ... } This class was g...more >>

Removing the xmlns attribute from the DOM
Posted by Simon Hart at 5/14/2006 12:00:00 AM
Hi, I have a requirement to remove the xmlns from the DOM in order to pass over to MS CRM 3.0 Fetch method.It seems the fetch method blows up if there is a xmlns present!?! The reason I have a xmlns present is because the Xml I am passing to CRM is a node from a bigger file that does requi...more >>

Use XSLT to add header text to CSV
Posted by stephen.surina NO[at]SPAM ferc.gov at 5/12/2006 12:39:23 PM
Hello, I'm trying to convert an xml file to csv using xslt. I can get the data to write out to the csv. I want to put a line of text at the beginning of the csv file that describes the content of the file. How do I do this using xslt? Thanks! ...more >>


DevelopmentNow Blog