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 > december 2003 > threads for december 1 - 7, 2003

Filter by week: 1 2 3 4 5

Problem reading the xmlelement value
Posted by Michael Søndergaard at 12/7/2003 8:53:20 PM
I am trying to read all orders element, which have the attribute Phase="Reorganize". I am using the following code on the xml document. private void LoadPhase (XmlDocument Doc, TreeNode Parent, Phase OrderPhase) { XmlNodeList Nodes = Doc.SelectNodes("/OrderFile/Orders/Order[@Phase='Reorgani...more >>

Convert DOMDocument to System.Xml.Document?
Posted by Dean Slindee at 12/7/2003 5:27:37 PM
Newbie question: Any easy way to convert a DOMDocument to a System.Xml.Document? Dim DOMDocument As DOMDocument40 to this Dim xmlDoc As System.Xml.XmlDocument Thanks, Dean Slindee ...more >>

Any suggestions CSS/XML
Posted by Keith Chadwick at 12/7/2003 1:08:49 PM
I have an interesting implementation and I am trying to kill two birds with one stone. In the wizard I am designing the user has the ability to choose from one of n CSS style sheets to be applied to the end results of the wizard. I am also thinking of supporting customization of the stylesheet ...more >>

Paramaters in <xsl:template match>
Posted by dwa at 12/7/2003 8:44:09 AM
Is it legal to use a parameter in a <template match> ? If I do the following: <xsl:template match="/ContentRoot/Content/Categories/Category[@name='Studies']"> ....everything works as expected. But if I do the following: <xsl:template match="/ContentRoot/Content/Categories/Category[@...more >>

XPath questions
Posted by Ayende Rahien at 12/7/2003 6:59:01 AM
foreach(XmlNode node in xdoc.SelectNodes("//rss:item",xNsMgr)) { ... Read from node ... } How do I do the above using XPathNavigator? Is it better to compile an expression that run it directy when I'm using it only once? Are there performance advantages to XPath over XDo...more >>

adding a custom attribute to and element
Posted by Maersa at 12/6/2003 11:31:10 AM
Hi All, Like to create a schema like the following using the Xml.Schema namespace classes. <xs:element name="a" msdata:IsDataSet="true"> How do I added the custom attribute. appreciate your help. thanks, ...more >>

How to read data from xml? please help.
Posted by david at 12/5/2003 9:06:24 PM
In my xsl, I call a C# function in extension object. So I pass the current context, the parameter type is XPathNodeIterator, my xml is like this .... <i> <id>1</id> <name>name 1</name> </i> <i> <id>2</id> <name>name 2</name> </i> ..... in the C# function, I want to get a list of ...more >>

XSLT Param Scope?
Posted by Keith Chadwick at 12/5/2003 8:15:46 PM
I have a fairly hefty XSLT file that for the sake of debugging and clarity I wish to split into some separate sub-templates contained within the same file. The master template calls an apply-templates and passes a node set to it. This template in turn defines approximately 15 variables that dic...more >>



Highly annoying namespace problem
Posted by Ayende Rahien at 12/5/2003 7:36:50 PM
I've the following code, taken from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml02172003.asp to select a node from RSS file. However, I'm always getting a null returning for the SelectSingleNode(), when trying to load a RSS 1.0 document, (which has a default ...more >>

real newbie question...
Posted by Colin Basterfield at 12/4/2003 6:20:15 PM
Hi, I'll cut to the chase, are XSLT files used simply for display or is it possible to put controls on them, like buttons and textboxes etc... Real lame assed question I'll favour, but hey... Thanks in advance Colin B ...more >>

Filtering using XPath
Posted by Felicity at 12/4/2003 5:37:07 PM
Hello, Using the following XML file, I would like to be able to filter using an XPath to the nodes where Menu = Yes and Form Name = frmMainMenu <?xml version="1.0" standalone="yes"?> <productX> <Table Name="mnuFile"> <value>myFile</value> <Parent></Parent> <Menu>YES</Men...more >>

CDATA delimiter within CDATA Section
Posted by Cade Perkins at 12/4/2003 5:20:55 PM
How can the CDATA ending delimiter "]]>" be represented within a CDATA section itself? Consider an XML document that is intended to contain an embedded, uninterpreted XML example. Generally, the easiest way to represent it would be to put the embedded XML example inside a CDATA section. But ...more >>

XMLWriter/XMLReader vs MSXML 4.0
Posted by Fede at 12/4/2003 5:10:39 PM
Hi to all! someone of you know the difference between XMLWriter/XMLReader and MSXML4.0? The first one has the same capacity of the second one? Which is better to use? Which give the clearest messages or the greatest amount of information about the kind and the origin of error (considering that...more >>

Visual Studio .NET and MSXML4
Posted by tsokka NO[at]SPAM yahoo.com at 12/4/2003 1:02:04 PM
Is there a way to use the Visual Studio .NET IDE to validate a schema using the MSXML4 parser? Similarly, is there a way to get the .NET framework utilities, such as the xsd.exe and wsdl.exe utilities to validate and parse using the MSXML4 parser?...more >>

programmatically an XSD for converting XML to dataset problem
Posted by harry at 12/4/2003 12:57:04 PM
Hello, not certain if this should go here or ado.net but I'm trying to create an XSD on the fly (due to the fact that our dataaccess component is a legacy component which returns data in an xml format) Now I can create all of the schema using the .Net frameworks class except for being able ...more >>

Validation problem: is it a bug?
Posted by Fede at 12/4/2003 11:58:01 AM
Hi to all, I've written a simple XML file and I'm trying to validate it using XMLValidatingReader and ValidationEventHandler event. This is my code: Imports System.Xml Imports System.Xml.Schema Module Module1 Dim IsValid As Boolean = True Sub main() Dim filename As St...more >>

Exceptionhandling
Posted by René at 12/4/2003 12:34:25 AM
Hey, I'm trying to throw an exception through to SOAP- protocol. Like this: throw new SoapException("message",=20 SoapException.ServerFaultCode); When I catch the exception in my application: try { // Calling a method in my webservice } catch (Exception e) { // do something...more >>

GetXml from DataSet
Posted by em at 12/3/2003 11:26:11 PM
Hello, I transfer data from a dataset to an XML-document by using the GetXml-method in VB.NET. I noticed, that for datafields, which are empty (have no content) in the dataset, no elements are created in the XML-document. How can I force to generate elements (with no content) for this kin...more >>

Is there a way to pass expression by variable? thanks
Posted by david at 12/3/2003 10:40:13 PM
For example, I can call <xsl:value-of select="concat('name','(',value,')')"/>, is there anyway I can pass the expression concat('name','(',value,')') as a variable from outside the template? Thanks. ...more >>

Is there a way to attach a xslt template to a xsltargumentlist? please help!
Posted by david at 12/3/2003 9:25:21 PM
in C#, I use the following way to do transform, the I assign my extension object to the xslArg, so in xsl, I can call functions in the extension object. Now, I want functions in the extension object to call template in the xsl, this way I can put some customized code into the template. I think i...more >>

saving as xml
Posted by Manoj Paramu Das at 12/3/2003 3:15:22 PM
Hi, The following url give you an XML output http://webservices.titantvguide.titantv.com/contentblocks.asmx/TonightOn?registrationKey=g8byqgPai3PYi1i7VOfEcKDfKOeYwmYM is there a way to save this as an xml file on to the server? Thanks in Advance. Regards Manoj ...more >>

Define element of XSD as an element in another XSD file
Posted by chadich NO[at]SPAM yahoo.com at 12/3/2003 2:15:04 PM
I'm new to hand-coding XSD files - how can I indicate that I want to reference tags from another XSD document in a certain section of my XSD? Essentially, I want to define one XSD with some elements and in another XSD define an area that allows elements from the first XSD. Thanks in Advance, ...more >>

Getting the schema from an instance
Posted by james NO[at]SPAM j3technology.com at 12/3/2003 6:20:40 AM
I have an instance document like this: <group xsi:schemaLocation="http://www.foo.org/2003 http://www.foo.org/2003/foo.xsd" xmlns:xxx="http://www.foo.org/2003"> <xxx:myItem>123456</xxx:myItem> ..... Now when I am on element myItem i want to load the schema ie read it in. myNode.Namesp...more >>

Save FormSettings of MULTIPLE Forms in XML file!? (VB.NET)
Posted by DraguVaso at 12/2/2003 10:51:19 PM
Hi, I found some examples for storing the FormSettings of a Form in an XML-file, but none of these could match my criteria: What I am looking for is the possibility to save the FormSettings of multiple Instances of 1 form. I have a Form frmSource from which I have multiple Instances, each wi...more >>

Automatic XMLSerializing
Posted by Hman at 12/2/2003 7:59:35 PM
Hi, This is a two part question: 1)trying to serialize a read only class member. I have a public property with a get statement, but not set, hence read only. When I serialize the class, this property is omitted. Can I serialze a public read-only member? Code segment: public class ...more >>

XmlDocument.Load(file) without entity resolving?
Posted by Gustaf Liljegren at 12/2/2003 6:31:42 PM
I need to merge several XML files into one large. All of them has a DOCTYPE tag, but the SYSTEM identifier points to a DTD that doesn't exist. (I use the PUBLIC identifier with catalog files, so the SYSTEM identifiers has no purpose in my application.) Anyway, when I load each document, usi...more >>

Filter XML using XPath
Posted by Felicity at 12/2/2003 5:04:26 PM
Hello, The following XML file shows an example of some config data for a Side Button Bar control. There are two forms this Button Bar control relates to, "frmMainMenu" and "Listing". <?xml version="1.0" standalone="yes" ?> - <productx> - <Table Name="Group1"> <value>ABCDEG</value>...more >>

Tranforming the format of XML
Posted by suzy at 12/2/2003 4:06:58 PM
Hello, please can someone help me with the following: If I have the following XML. <Tables> <Table> <TABLE_NAME>User</TABLE_NAME> <COLUMN_NAME>UserId</COLUMN_NAME> <DATA_TYPE>bigint</DATA_TYPE> </Table> <Table> <TABLE_NAME>User</TAB...more >>

XPath MaFan
Posted by Chris at 12/2/2003 2:17:55 PM
Isn't this a bit non-clever, that IDs in the second level are not accessible like that? After all attributes can never have children, so why not checking this in the xpath processer. Place the code in VB6 with MSXML referenced and find out that the second xdn node is nothing. Not sensible, MS! ...more >>

XmlTextReader.Read() and ampersand?
Posted by Dave at 12/2/2003 10:49:44 AM
XmlTextReader reader = new XmlTextReader ("c:/downloads/somedata.xml"); while (reader.Read()) { ....etc. } I've determined that the problem in the source XML is a node that contains an attribute that doesn't have the ampersand encoded as "&amp;" <item security="Common Stock (Cl...more >>

Format XML Nodes
Posted by linesh_gajera NO[at]SPAM hotmail.com at 12/2/2003 10:08:29 AM
Hi, I have xml look like following <ContactInformation> <ContactName> <Name> <Person> <LastName NewValue="Shepherd"> </LastName> <FirstName NewValue="Bob"> </FirstName> </Person> ...more >>

Can not serialize data from webservice
Posted by Michael at 12/2/2003 5:46:26 AM
Hi I anyone have a clue or can solve my problem I would be=20 glad :-) Regards Michael I have a problem with creating an XML-document where the=20 returning data from the webservice, have been serialized. In my program I am calling a webservice which then return=20 the data to the calling ...more >>

Reading a XML on the server
Posted by Serban at 12/2/2003 2:10:06 AM
Hi I have two applications(client and server) that pass an XML document but I have a hard time reading the XML document on the server side. So the client application creates the XML document and sends it to the server. On the server side I want to load/read this XML document. Any su...more >>

how to decode iso-8859-1
Posted by steve mettraux at 12/1/2003 9:46:43 PM
I have this kind of string, dim myString as string = " =E0 ton essai d'=E9tablir une" i know the kind of encoding, here I have iso-8859-1 dim charset as string ="iso-8859-1" how to decode it with a component of the .NET Framework? thanks steve ...more >>

ms:format-date() ?
Posted by Keith Chadwick at 12/1/2003 9:16:49 PM
Been trying to use the ms:format-date() in one of my transformations. I have all of the necessary declarations in my xml as in <?xml version="1.0" ?> <data xml:space="default" xmlns:dt="urn:schemas-microsoft-com:datatypes"> myxml... </data> And my transformation: <?xml v...more >>

get sql server schema to xml?
Posted by suzy at 12/1/2003 8:15:47 PM
Hello, How can I get table/column schema of a sql server database? i want to convert the entire schema into an xml file. thanks in advance. ...more >>

Validating XML In Visual Studio.NET 2003 problem.
Posted by Martin Brown at 12/1/2003 1:24:36 PM
Hi all, I have an XSD file in a web directory in "C:\inetpub\wwwroot\xsd\Test.xsd". This maps to http://localhost/xsd/Test.xsd. I have tried this URL in Internet Explorer and the file loads fine. I have opened an XML file in Visual Studio.NET 2003. I have added "http://localhost/xsd/Test.xs...more >>

removing dbo. from xml results
Posted by Gary Brewer at 12/1/2003 12:54:33 PM
Hi, I am using SQXML3.0 SP2 with some code like this - using(SqlConnection sqlCon=new SqlConnection(G2P2DataObject.GetLocalDBConnectionString())) { sqlCon.Open(); SqlXmlCommand sqlCom=new SqlXmlCommand("MYCONNSTRING"); sqlCom.RootTag="myevents"; sqlCom.CommandType=SqlXmlCommandTyp...more >>

Is there a way to pass param array to xslt funtion in extended object of xsl? thanks.
Posted by david at 12/1/2003 12:44:34 PM

TextReader onto an XmlDocument.
Posted by bughunter NO[at]SPAM hotmail.com at 12/1/2003 8:28:34 AM
Hi I wonder if anyone has any ideas about this... I am dumping the contents of an XmlDocument into a RichTextBox so the user can see the raw XML. I use a line of code something like this to lado the Xml text into the textbox: richTextBox.Text = xmlDoc.ToString(); I recon thi...more >>

Reading in XML file, changing elements and saving back to the file
Posted by gerald.maher NO[at]SPAM waytohere.com at 12/1/2003 1:54:15 AM
Hi Reading in XML file, changing elements and saving back to the file, how can i do that, I want to be able to read an XML file and read out Elements. for example <name>Tom</tom> When I read from a file i want to save the XML document in memory of the computer and when i am finished flus...more >>


DevelopmentNow Blog