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 2006 > threads for august 22 - 28, 2006

Filter by week: 1 2 3 4 5

XML reading issue
Posted by Neelesh rawal at 8/28/2006 11:54:02 PM
I have some XML file like that: <data> <WebInfo> <Folder></Folder> </WebInfo> <album> <info></info> </album> </data> if i am matching the 'album' template in a xsl means <xsl:template match="album"> then how can access the values of upper nodes like 'webinfo'. and if...more >>


Schema Question
Posted by randy at 8/28/2006 9:03:11 PM
Hi, I am fairly new to XML schemas and why to use them. I am integrating with another application via xml. My questions are schemas only good to validate the XML documents or can I use the schema to help me parse the xml document? Thanks ...more >>

XML -> DataSet truncating
Posted by Daniel Wilson at 8/28/2006 3:46:36 PM
We have a stored procedure that is giving us an XML representation (using FOR XML Explicit) of a sales order. Sometimes that evaluats to quite a long string. Unfortunately, this XML string is being truncated to 2034 characters before we can do anything with it. Here's our code: Private Sub L...more >>

Controlling class definitions generated from xsd.exe
Posted by robc at 8/28/2006 10:54:02 AM
Hi, I am using the xsd.exe tool (in .NET 2.0) to generate C# classes from a set of schemas. Some of the XML types that I have defined are used by more than one schema. For maintenance purposes, I have placed these “common” types into their own schema and have imported them into the ot...more >>

Update XML config file with treeview nodes
Posted by Christian_R=FChl at 8/28/2006 5:13:13 AM
hey! what i wanna do sounds very simple at first, but it turned out to be a real bone crusher... i want to check if a treeView node is checked and if a correspondent node in my xml config file exists just to sort of synchronize them by changing the xml nodes attribute(s). somehow i always c...more >>

XML Tree Structure
Posted by glenn at 8/28/2006 4:26:02 AM
Hi Folks, I would like to take a XML document and write its data into a tree structure for a custom tree control. The document has two fields with one called task (a text field) and the other called tree_level (an integer field). Consider the document to be valid and well-formed. The tre...more >>

XML reading issue....
Posted by Lloyd Dupont at 8/28/2006 12:00:00 AM
I have some XML file like that: === <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>affiliateId</key> <string>AFL9124395098</string> ...................more >>

FREE .NET EBOOKS , DOTNET TUTORIALS, CODE SNIPPETS - www.DotNetGuide.net
Posted by Alex Bent at 8/26/2006 8:42:49 AM
Visit this site u will find good .Net ebooks, .Net source code, .net tutorials and lots more for vb.net, c#.net, asp.net and other dotnet stuff. URL: www.DotNetGuide.net...more >>



Apparent documentation contradiction for XmlNode.SelectSingleNode(
Posted by SailBoffin at 8/26/2006 8:06:01 AM
I just noticed something confusing the MSDN documentation for the XmlNode.SelectSingleNode() function here http://msdn2.microsoft.com/en-us/library/fb63z0tw.aspx It says, under the "Return Value" section that "The XmlNode should not be expected to be connected "live" to the XML document."...more >>

Two XPath expressions in one?
Posted by Kevin Burton at 8/26/2006 5:36:01 AM
I have determined that the following XPath expression: //Message/OrderReport/Item/Quantity gives me all of the "Quantity" nodes and //Message/OrderReport/Item/ItemPrice/Component[Type = ""Principal""]/Amount gives me all of the "Amount" or unit price nodes. Is what I want is to combin...more >>

XML between two XmlNodes
Posted by Jan Kucera at 8/25/2006 8:05:26 PM
Hi, I have two elements in XmlNode objects belonging to one XmlDocument. How can I get the xml markup between these two? I mean if the document looks like <parent> <child1 /> <child2 /> <child3> <sub3child /> </child3> <child4 /> </parent> So when the first XmlNode will be...more >>

XML data has childattributes ?
Posted by Tony Girgenti at 8/25/2006 3:45:34 PM
Hello. I have attached the XML data in question at the end of this post. I don't understand what is between <TripData> and </TripData>. When i talked to the publisher of the XML document, he says: "you will have to use childattributes to access the attributes of the <TripData> element". ...more >>

XPath Request
Posted by SD at 8/25/2006 3:11:14 PM
Hi, How can i get all the nodes with attribute Name = "Publisher" or Name="Administrator" using XPath query and C# for this xml doc? <GetRoleCollectionFromUser xmlns=\"http://schemas.microsoft.com/sharepoint/soap/directory/\"> <Roles> <Role ID=\"1073741826\" Name=\"Reader\" Descr...more >>

SignedXml gives false negatives when using namespaces in signed xm
Posted by Peter Ravnholt at 8/25/2006 7:05:01 AM
Hello all, It seems that digitally signing XML documents using the SignedXml class has a bug - or at least a behavior I cannot explain. The problem occurs when I sign XML documents containing namespace prefixes and namespace references and then validate it. The validation always fails (r...more >>

getting the value from text file to xml
Posted by Jerry John at 8/25/2006 2:03:01 AM
I am working in ASP.NET with C#. I have a text file which contains datas with delimiters. For example:- MSH|^~\$|DISCHARGE|CLAY COUNTY MEMORIAL|||200502110939| I also have an XML file created with predefined tags. Some of the tags contain child element. I need to pass the data from the te...more >>

XmlValidatingReader Ignores xs:int definition
Posted by nshala NO[at]SPAM gmx.de at 8/25/2006 1:28:05 AM
Hallo, I wrote a complex XSD-Schema for validating complex XML files. By validating xs:int elements XmlValidatingReader does not validate it correctly. My XSD looks like this: .... <xs:complexType name="Frage"> <xs:all> <xs:element name="Wann" type="xs:string" minOccurs="0" msprop:nul...more >>

DataSet WriteXML generates 'NewDataSet'
Posted by bav at 8/24/2006 6:46:43 PM
Hi; I would like to produce this kind of XML output using VB.NET 2003 DataSet.ReadXMLSchema, and add some row contents, and finally DataSet.WriteXML <test> <header> <name>...</name> <description>...</description> </header> <subject> <lkfdsjldsjfl ..ds.f </subject> </test> ...more >>

XMLDataDocument <-> DataSet -- out of sequence
Posted by Daniel Wilson at 8/24/2006 3:47:29 PM
I am trying to read data from MS SQL Server and turn it into an XML message to send to a remote server, as follows. sfSchemaFileDiag.FilterIndex = 2 If sfSchemaFileDiag.ShowDialog = DialogResult.OK Then DataSet1.WriteXml(sfSchemaFileDiag.FileName) End If The resulting XML file is...more >>

How to parse an XML file - Beginner...
Posted by DelphiLover at 8/24/2006 2:25:48 PM
Hi. This should be a walk in the park for almost anyone... I'm a skilled win32 programmer, trying to learn asp.net 2.0 I've tried making a XML file parsing it to draw a GUI (web application) I have a small example: <?xml version="1.0" encoding="utf-8" ?> <Persons> <Person ID="ET40"> ...more >>

Comparing 2 xml docs
Posted by Rob at 8/24/2006 8:57:54 AM
Is there an easy way to compare 2 xml documents in order to see if they are identical ? ...more >>

Bad extra quotes in generated href
Posted by amdarling NO[at]SPAM gmail.com at 8/24/2006 8:44:57 AM
I'm getting some strange behavior when trying to generate a link and haven't seen this question posed before. I'm getting search results in groups of 50 and trying to create pagination links, also in groups of 50. So what I'm trying to achieve would be... << ==link to first result page < ==...more >>

XPath Editor (Updated!)
Posted by ziggyware NO[at]SPAM gmail.com at 8/23/2006 7:52:01 PM
Hi All, I have updated my XPath Generator software: XPath Studio .NET. ( http://www.ziggyware.com/downloads.php?cat_id=2 ) Easily select nodes from an xml file to generate XPath statements Insert node values to narrow down XPath results Insert by node value ornode existance Mult...more >>

How to set an string element's value to a CDATA block?
Posted by soccerdad at 8/23/2006 3:38:02 PM
I've got a class hierarchy generated from a .xsd schema file using the XSD.EXE tool. One of the elements will have its "inner text" set to a CDATA block. The XSD.EXE tool exposed a "Value" property on that element to allow setting that inner text. After I create the object hierarchy and specif...more >>

XSLT look-up based on attribute
Posted by Optimus Prime at 8/23/2006 10:20:18 AM
Hello, I need to perform a reltively simple operation but am having trouble figuring out how to to it. Basically I have two XML files. The first is a look-up of names based on ids. The second has specific data that uses the ids of the first as an attribute. I would like to transform the ...more >>

.net 2 and C# - how to show results of xslt as web page?
Posted by imissphp at 8/23/2006 8:02:02 AM
I am using Visual Studio 2005 .NET 2.0. and C#. Has anybody transformed xml using xsl and shown the results as a web page? It should be a simple task.... but I can't find a way through the maze of deprecated or incompatible classes in .NET I have a dataset object (which has a GetXml() method ...more >>

From Database to XML
Posted by Dikkuuhh at 8/23/2006 12:08:48 AM
I have a simple database with address information about a member... I must get that information in a xml document on the server, and then read it again, without saving it locally.... This is what database is like: Member - Name - Street - Number - Zipcode - City - Land Can somebody help...more >>

Read some XML tags
Posted by Stupid48 at 8/22/2006 5:49:29 PM
I'm rather new to working with XML in .NET and have been doing all the reading I can handle. Perhaps, it's the format of the XML that is confusing me but.... <event type="system" time="14:23:15" vcrTime="00:00:00" digitalTime="00:00:01"> <text><![CDATA[Start Cap:14h23m14s.asf on 2006-03-06]...more >>

Text attribute is an array.
Posted by Kevin Burton at 8/22/2006 4:45:02 PM
I have an XSD that is converted from a DTD that I am trying to clean up. There is a section in the XSD that looks like: <xs:element name="partnerID"> <xs:complexType mixed="true"> <xs:attribute name="name" type="xs:string"/> <xs:attribute name="roleType" type="xs:string"/> </xs:...more >>

what is the best way to do this (replacing xmlnode value)
Posted by dotnetnoob at 8/22/2006 2:38:02 PM
i need to copy several xml files and use it as xml element and insert them into a xml file. i use DOM support in .Net and from the pervious help i was able to copy and insert them into the xml file that i want but i need to change some xml node value before i insert. what is the best way to do...more >>

Error using ReadXmlSchema on a xsd file.
Posted by Jerry C at 8/22/2006 1:29:02 PM
I am using some sample code from gotdotnet to Create DataSet mappings from a xsd schema. I am geting this error. code and error below. I might mention there is also a publictypelibrary file with this file I may have to use it in some way. I am very new at XML so some examples or articles would...more >>

Help with XslCompiledTransform
Posted by Steve at 8/22/2006 7:30:12 AM
I am using XslCompiledTransform to transform XML into Excel 2003 SpreadsheetML. In order to get the resulting XML file to open in Excel, we need the following two lines at the top of the file: <?xml version="1.0"?> <?mso-application progid="Excel.Sheet"?> I can get the <?mso-application .....more >>

Cannot find root element in XML file
Posted by TT (Tom Tempelaere) at 8/22/2006 4:39:01 AM
Hi all, I created an XSD to define the structure of an XML file for my project. I made an XML file linked to the XSD using XmlSpy. The problem is that if I read the file using .NET XmlDocument and then query for the root element, the result is always null (1). However if I strip the root el...more >>


DevelopmentNow Blog