Groups | Blog | Home


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

Filter by week: 1 2 3 4 5

id() node-set function does not work in .NET 1.1 XML Classes
Posted by Robert Sutton at 11/7/2003 6:28:49 PM
The id() nodeset XPath function does not appear to work when used with XPathDocument and XslTransformation dot net classes. I am trying to make use of IDREFs in XML that link elements to other elements in the document. The code below demonstrates the problem. I SHOULD be getting a line that say...more >>

AppendChild method
Posted by Shah at 11/7/2003 2:05:06 PM
I'm reading from a grid and generating a node for each DataRow. When I try to append the nodes to the root, it keeps replacing the previously appended node. For example: When I append node2, it will replace node1 with node2, rather than adding node2 as a sibling of node1. Please let me k...more >>

remove child node
Posted by Daniel Rimmelzwaan at 11/7/2003 12:57:51 PM
Hello, Here's part of my XML doc ("Account.XML"): <account> <name>My Name</name> <MyID>12345</MyID> </account> and here's the C# code I wrote: MyDoc.LoadXml("Account.XML"); XmlNode MyNode = MyDoc.SelectSingleNode("//MyID"); textBox3.Text = MyNode.InnerXml; MyDoc.RemoveChild(MyN...more >>

Deleting a posted message
Posted by Neo at 11/7/2003 12:08:53 PM
Is there a way I can delete a posted message OR at least take my email off. I have mistakenly given my email and have been receiving spam like anything. It would be really helpful if the admins of this group can help me delete that specific post. ...more >>

getxml() function on dataset: problem with decimal places
Posted by lorenzo_agnoletto NO[at]SPAM libero.it at 11/7/2003 8:19:01 AM
I am working on an ASP.NET application, developed with the 1.0 framework. After upgrading to the 1.1 framework I have noticed a difference in the way the GetXML method returns decimal data from a dataset. Previously, when a column defined as decimal with scale 3 in SQL server 2000 contained a n...more >>

Serialization with embedded elements
Posted by Cerah Pancharoen at 11/6/2003 10:28:15 PM
If I have the following XML data: <myelement color="green">Email (<numemails/>), Vmail (<numvmails/>)</myelement> and I deserialize it, then serialize it, I get the following: <myelement color="green">Email (), Vmail () <numemails/> <numvmails/></myelement> I cannot figure out how to use X...more >>

SelectNode not returning any nodes
Posted by Steve at 11/6/2003 4:27:49 PM
I thought I knew XML but this just doesn't make sense. I have a dataset ds. I load the data from the dataset into an XML document and try to SelectNodes. Nothing. Here is the code Dim docMap As New XmlDocument() Dim nodeList As XmlNodeList do...more >>

DataSet WriteXML and XMLValidatingReader
Posted by Axe at 11/6/2003 3:48:52 PM
Sorry about the crossposting but I think my question validly fits in both categories and insight from experts would be extremely useful. I populate a dataset from my database. I then create an XML file using the dataset's WriteXml() method. In a seperate application, I'd like to read that X...more >>



Memory Management Problem?
Posted by Tony Selke at 11/6/2003 3:25:54 PM
Forgive my rather wide posting of this note, but I was uncertain of where I would find the best help. I am working on a class that is basically providing a secure location for name/value pairs to be stored by the application. I am using TripleDES encryption and having a very odd problem that ...more >>

Xpath Newbie Mistake, Please Help!
Posted by bradwiseathome NO[at]SPAM hotmail.com at 11/6/2003 1:37:22 PM
This code throws an exception when it should just print "C$" to the screen. What is messed up in my xpath? Thanks. test.cs: using System; using System.Xml; using System.IO; class XmlReadSimple { [STAThread] static void Main(string[] args) { XmlDocument xmlDocument = new...more >>

Serialization of VB custom class....
Posted by Nick Wright at 11/6/2003 12:34:28 PM
Hi, I can serialize some data to a file using a custom class genrated from an .xsd schema via xsd.exe... However the file has a repeating <?xml version="1.0"> tag, no root node, the xmlns repeats etc... What isn't it correcly formatted, whats gone wrong? <?xml version="1.0" encoding=...more >>

XmlDocument and FileStream's with trailing contents after edit
Posted by PM at 11/6/2003 8:06:03 AM
I have used an XmlDocument object to edit an xml files contents which sometimes results in the Xml content being shorter that what it originally was, when i save the new contents i end up with junk at the end of the file ie <root> <name>Tom<name> <root> becoming <root> <name>T<name> <...more >>

Can't use key and keyref with an attribute in a group
Posted by jonas.ekstrom NO[at]SPAM six.se at 11/6/2003 1:35:08 AM
Hi, Why can't I create a key and keyref with an attribute declared in an attribute group? Code below describes what I'm trying to accomplish. <!-- An attribute group --> <xs:attributeGroup name="AttGMain"> <xs:attribute name="Name" type="xs:string" /> <xs:attribute name="Type" type="xs:s...more >>

XSL Problem
Posted by Rajiv Das at 11/5/2003 2:48:25 PM
Hi, I have the following problem. There are 3 files. ------------------------------------------------------- a) XML file <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="hall.xsl"?> <quizcirclecontests> <contest> <id>1</id> <date>15-...more >>

Generate "dom" from schema.
Posted by Paul Mason at 11/5/2003 2:29:46 PM
Hi The is probably wishful thinking, but here goes. Is there any product etc that will create the C# dom source from a schema (xsd files). Particularly, I want to generate a dom for CML (chemical markup language), which is sufficiently complex to try and use a tool, rather than hand code the...more >>

xslt transformation - load xml as a string
Posted by edsuslen NO[at]SPAM yahoo.com at 11/5/2003 2:16:30 PM
xslt transformation - I would like to do something similar to loadXml in vb 6, but all the samples are loading xml from a file. I've spent two days digging, with no success, I've got to ask You... I have an xml doc as XmlTextReader (or string, or stream, but not the file), l would like to tr...more >>

[ANN] Free webcast on ActiveState's Visual XSLT 2.0
Posted by ericp NO[at]SPAM activestate.com at 11/5/2003 2:12:12 PM
Join ActiveState for a free webcast on using Visual XSLT's powerful new features for professional development: http://www.ActiveState.com/webcast/visualxslt Date: November 12, 2003 Time: 10:00 AM PST / 1:00 PM EST In this free, 60-minute presentation, Eric Promislow, Development Lead, Visu...more >>

selectnodes error
Posted by RP at 11/5/2003 1:56:44 PM
Hi all, I am experiencing this weird error. When my xpath string contains and expression that results in no nodes being returned, the application throws a Object Reference not set to an instance of Object, when I try to access XMLNOdelist.count?? I even tried adding a IsNothing clause to check i...more >>

Problem element <NewDataSet> with writing xml from a dataset
Posted by andreas.wickstrom NO[at]SPAM ibs.se at 11/5/2003 6:25:35 AM
Hi All I have a big problem i have a dataset that I would like to write to a xml file. I don't have any problem doing that but the xml starts and ends with this tag: <NewDataSet> I don't whant that start tag. The rest of the xml looks like the one I would like to have. Does anybody know ho...more >>

How To Call XSL Template With Parameter From OnClick Event
Posted by blp at 11/4/2003 8:50:51 PM
I need to be able to allow users to click on a link from a summary page and open up a detailed window based on what was chosen. How do I call an XSL template with a parameter from an OnClick event? Is this possible with or without javascript? I have tried many things with no success. In...more >>

Publishing files to a web server
Posted by Scott Willis at 11/4/2003 8:18:54 PM
I am writing an ASP.NET web service to enable publishing of content from a SQL server database to an internal web site. I am new to the .NET world and am seeking advice on the most efficient way to perform this using ASP.NET? In a previous language (Delphi), I achieved this by creatin...more >>

Can't auto-add override in C#
Posted by David E. Battey at 11/4/2003 5:24:52 PM
In the VS.NET 2003 IDE, I can usually type "override" in the code editor and then select from a list of virtual properties and methods in the base classes. However, this occasionally stops working. If I try to add the override via the Class View, sometimes my class's base classes are not shown...more >>

[Oleg, any idea ?] custom XmlResolver does not work as expected
Posted by JohnDoe650 NO[at]SPAM hotmail.com at 11/4/2003 1:23:26 PM
Hello, I have a class derived from XmlUrlResolver that is supposed to handle URI schemes beginning with "xml", eg. "xml://test/me". This is exactly like the example given by Oleg here : http://groups.google.co.nz/groups?selm=%23ZeWI013CHA.2400%40TK2MSFTNGP09.phx.gbl That is : class D...more >>

xsd.exe ExtendedProperties
Posted by dotnet_007 NO[at]SPAM yahoo.com at 11/4/2003 11:22:49 AM
I've been using xsd.exe to generate typed datasets (.cs) from XML schemas (.xsd) but have been encountering a problem with the extended properties. 1) I added the following to the opening <xs:schema> tag in my .xsd: xmlns:msprop='urn:schemas-microsoft-com:xml-msprop' 2) Then, I added th...more >>

how to use XPath function "ms:string-compare" in .NET
Posted by Bhavin at 11/4/2003 11:00:44 AM
Hi, Can anyone point me why the following code is not working for me? Its giving me an error while executing "SelectNodes" ... I have strugled for almost one full day.. I am comaratively new to XSL and XSLT concepts. I appriciate any kind help. Thanks, Bhavin. CODE: *****************...more >>

Canonicalized XML from XmlDocument?
Posted by Mike Hansen at 11/3/2003 6:56:22 PM
How can I obtain the C14N canonicalized format of an XML document subtree? Any help is greatly appreciated. ...more >>

xsl compile error
Posted by Ernesto Herrera Jr. at 11/3/2003 5:20:26 PM
Hi, I got the following error while running a transform: Exception Details: System.Xml.Xsl.XsltException: 'xsl:script' cannot be a child of 'xsl:stylesheet' element. The following is the transform: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <!-- http://w...more >>

Dataset.WriteXml does NOT produce well formed XML
Posted by mike at 11/3/2003 12:55:54 PM
For example: =========================== Dim filename As String filename = Server.MapPath("./") & "xml/dataSet.xml" Dim myFileStream As New System.IO.FileStream(filename, IO.FileMode.Create) Dim myXmlWriter As New System.Xml.XmlTextWriter (myFileStream, System.Text.Encoding.Unicode) ...more >>

How can I limit the number of child records per parent record?
Posted by John Yung at 11/2/2003 8:43:26 AM
Hi, How can I limit the number of child records per parent record by defining the limitation in the DataSet? Thanks John Yung ...more >>

experts: structure of dataset xml
Posted by suzy at 11/1/2003 2:11:02 PM
hello, i have a problem, i wonder if anyone can help... i am retrieving records from an access table using a dataset and want the data to be returned in xml, so i am using the dataset.GetXml() method. lets say, for example, that the xml is in the following format: <Users> <User> ...more >>

xml within xml?
Posted by RP at 11/1/2003 12:53:56 PM
Hi all, I wish to embed an xml document within an element of another xml document. If I enclose the child xml within a CDATA section will the DOM not parse the child xml? What is the best way to do this? Additionally what should the parent element be defined as in the xsd? I noticed xs:anytype t...more >>


DevelopmentNow Blog