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 > october 2003

Filter by week: 1 2 3 4 5

xslt and webcontrols
Posted by Thomas at 10/31/2003 11:12:01 PM
Hello all, Is it possible to use webcontrols in a xslt file eg. <xsl:template match="products"> <asp:Button id="Button1" runat="server" Text="test"/>"></asp:Button> </xsl:template> /Thomas ...more >>


xmlresolver
Posted by Ernesto Herrera Jr. at 10/31/2003 5:03:09 PM
Hi, I have the following code and the compiler complains with "method obsolete should pass a xmlResolver to transform method" line 12. 1 private void Page_Load(object sender, System.EventArgs e) 2 { 3 string strmenuPath = Request.PhysicalApplicationPath; 4 XPathDocument oDoc = new XPath...more >>

.Net Framework 1.1 XSLT Problem
Posted by Mike at 10/31/2003 5:02:05 PM
This is driving me crazy!! I'm am on the .Net Framework Version 1.1 (not 1.0). I am creating an XSLT document in Memory (Not reading from disk), reading a XML document into memory from disk, and then trying to apply my XSLT stylesheet against the XML document to transform the XML into a d...more >>

Saving XML in Unicode (UTF-16)
Posted by Antonio Passado at 10/31/2003 4:29:52 PM
Hi, I need to read from and write to XML file, that is stored in Unicode. With reading there are no problems, but Microsoft's Msxml2.DOMDocument.4.0 saves data back to XML file in UTF-8 by default. I can add the string <?xml version="1.0" encoding="UTF-16"?> and then parser saves it in Unicode...more >>

selective validation
Posted by RP at 10/31/2003 10:47:06 AM
Hi all, is it possible to validate only a particular node of a XML doc against an XSD using XMLValidatingReader? Any links to sample code snippets would be much appreciated. TIA, RP ...more >>

XmlDsigC14NTransform signedXml.ComputeSignature()
Posted by kerem.onal NO[at]SPAM bilten.metu.edu.tr at 10/31/2003 7:39:48 AM
1. signedXml.ComputeSignature() outputs a digest value of something. what is it? I mean, how can i get it? I get the canonical form of my xml with XmlDsigC14NTransform then digest it but the digest value is different. 2.signedXml.ComputeSignature() uses XmlDsigC14NTransform. But how? What ar...more >>

remove elements from xml file programmatically
Posted by raife at 10/30/2003 11:24:59 PM
i would like to remove all elements called say <CustomerID> from an xml file is there an easy way to do this programmatically. thanks for the help....more >>

Object Access to XSD created Class Confusing
Posted by 32U at 10/30/2003 4:39:16 PM
Maybe newbie question but I'm stumped after much search of google. Last week created class using xsd.exe against xsd file from well nested xml that rendered in part: .... _ Public Class MacroflowCatalog '<remarks/> <System.Xml.Serialization.XmlElementAttribute("MacroFlow")> _ ...more >>



XSLT Transform problem - Invalid URI: The URI scheme is not valid
Posted by Mike at 10/30/2003 2:50:11 PM
I'm generating an XSLT document programatically in VB.Net. I'm then trying to apply that XSLT against a cXML document to generate my own internally developed XML document. I'm using RichTextBox controls to dump out the XSLT, cXML and internal XML. The following code works fine in Visua...more >>

SOAP Document Size Limitation?
Posted by Largo SQL Tools at 10/30/2003 2:12:42 PM
We have an app that uses web services to pass typed datasets to and from the client and server. A couple of these datasets contain fields of type 'base64Binary' because of the need to have the client send the server binary files (usually images). We've noticed that if the size of the contents o...more >>

Convert xmlDoc to xmlDatadoc in VB.NET
Posted by stevenojunk NO[at]SPAM hotmail.com at 10/30/2003 8:08:03 AM
I have a XMLDocument object (returned from a class) that I want to load into an XMLDataDocument. I would have thought this would be simple but can't find a solution anywhere. Presumably it needs to go via a stream. I don't want to use a Text or File reader/writer (no point putting it out to...more >>

RE: Apply this security package from the M$ Corporation
Posted by djadja at 10/29/2003 1:57:46 PM
Microsoft Consumer this is the latest version of security update, the "March 2003, Cumulative Patch" update which fixes all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express. Install now to protect your computer. This update includes the functio...more >>

Serialization of MethodInfo class
Posted by Shah at 10/29/2003 1:19:35 PM
It doesn't give any compilation error. At runtime, it throws exception - 'There was an error reflecting type 'System.Reflection.MethodInfo' ------------- XmlSerializer mySerializer = new XmlSerializer(typeof (MethodInfo)); mySerializer.Serialize(myWriter, method); //method...more >>

CDATA Headache
Posted by BVM at 10/29/2003 11:59:58 AM
Hi: Do you know how to add a CDATA node to XmlElement and retrieve it from = XmlElement? Thanks, Dennis...more >>

starting with XML
Posted by Toni at 10/29/2003 11:02:59 AM
Hi everybody I've never used XML and I'd like to do it. Could you tell me where to find a good XML tutorial for begginers? Thanks in advance Regards! Toni. ...more >>

SelectSingleNode fires NodeInserted event?
Posted by Jens Weiermann at 10/29/2003 9:30:06 AM
Hi! I have run into a strange situation with the NodeInserted event handler: This seems to get called each time I use the SelectSingleNode method to select a node? Does this make sense? Am I missing something? Thanks! Jens...more >>

Formatting Output Text
Posted by Stefano Baldi at 10/29/2003 9:18:00 AM
I'm using Dom to save a hierarchical structure (similar to a tree) to xml format in this way oXmlNode = XMLDOM.createElement("VALUECONDITION") 'Attribute Name oXmlAttribute = XMLDOM.createAttribute("Name") oXmlAttribute.value = oValueCondition.Name oXmlNode.attrib...more >>

WriteProcessingInstruction formatting problem
Posted by Thomas Brodbeck at 10/29/2003 1:39:33 AM
I have a problem with the XmlTextWriter.WriteProcessingInstruction method. This method takes two parameters: [C#] public override void WriteProcessingInstruction( string name, string text ); Remarks If text is either a null reference (Nothing in Visual Basic) or String.Empty, ...more >>

List - XML CSS. Numbering problem.
Posted by Marek at 10/29/2003 12:39:39 AM
When I use "list-style-type:decimal;" in Mozilla I get numbering only with "zero": 0. aaaa 0. bbb 0. cccc Why there is no incrementation? In IE 6.0 there is no numbering: aaaa bbb cccc Here is my XML <list> <item>aaa</item> <item>bbb</item> <item>ccc</item> </list> ...more >>

Newbie XSD namespace question
Posted by Darren S at 10/28/2003 10:29:47 PM
Hi all, I have the following XML file: <Config> <MyFoo xmlns=3D"http://MyCompany/Foo"> </MyFoo> <MyBar xmlns=3D"http://MyCompany/Bar"> </MyBar> </Config> For a project specific reason, I need to keep <MyFoo> and <MyBar> in 2 seperate namespaces. I run XSD.exe to generate my schema...more >>

MSXML Parser
Posted by basin at 10/28/2003 12:24:40 PM
Does anyone know where I cna find the 2.x version of msxml parser. We need it for an older app to work and I can't find it on the website to save my life! Any help would be great! Thanks...more >>

xs:dateTime <-> DateTime ?
Posted by Jens Weiermann at 10/28/2003 10:43:08 AM
Hi! I'm reading data from an XML file using the XmlDocument class. Some elements are of type xs:dateTime. Is there a way to convert a xs:dateTime value to a standard DateTime object? Thanks! Jens...more >>

Error on Trying to Read XML
Posted by Gerry Viator at 10/28/2003 10:29:45 AM
Hi all, When I try to read the XML I get the error below and highlights this (Do While MainReader.Read)? Error: A first chance exception of type 'System.Xml.XmlException' occurred in = system.xml.dll Additional information: System error. Please help. Friend Function CreateXMLfiles()...more >>

XMLDocument from empty DataSet
Posted by TomislaW at 10/28/2003 9:11:31 AM
I have WebService that returns XmlDocument. I made that XmlDocument from DataSet, but when DataSet is empty I get error: System.InvalidOperationException: There was an error generating the XML document. ---> System.NullReferenceException: Object reference not set to an instance of an object.....more >>

Creating XML from a DB
Posted by Shawn at 10/27/2003 8:15:17 PM
I have two simple tables in my DB: "person" and "phone". Person has 3 fields: id, fistname and lastname. Phone has two fields: id and phonenumber. Each person can have many phonenumbers. I wish to create an xml file out of the two tables. Something like this: <user> <id>1</id> <firstname...more >>

XML Data
Posted by A.M at 10/27/2003 1:08:10 PM
Hi, I want to read news data from http://rss.com.com/2547-1_3-0-20.xml into a DataSet. The result DataSet will probably have more than one table for item nodes and one table for channel. What would be the easiest/efficient way to do that ? Can VS.NET generate schema automatically based on X...more >>

Removing the default root attributes when serializing
Posted by James Newton-King at 10/27/2003 2:29:52 AM
In an application I'm making I've got a config object which I would like to serialize to the XML format in a .config file which would then be loaded the next time the application starts up using Configuration class. I've got all the elements and attributes correctly named but the default namespac...more >>

SAX equivalent in .NET
Posted by Aung at 10/26/2003 5:34:56 AM
Do we have equivalent of "Simple API for XML (SAX)" in .NET environment? ...more >>

Generating XML schemas from an SQL database
Posted by This is just me at 10/25/2003 7:03:10 PM
Hi ! Do anyone know of a tool for generating XML schemas from an SQL database without using the Visual Studio .net ? The reason is to try to automate the process when changes occur to the SQL database. best regards Terje ...more >>

Incorrect node depth with XmlTextReader
Posted by Agent Smith at 10/25/2003 6:05:49 PM
I'm trying to follow the sample code provided in KB 330597. Incidentally, this is exactly the problem I'm trying to solve as described in the KB article. In short, if the input XML has a value in every node everything works great. But... here's what happens when a node has no value (<node...more >>

assembly xml representation standard
Posted by Miroslav Bradic at 10/24/2003 1:42:11 PM
Is there a standard way to represent an .net assembly in XML (something like assembly xml scheme)? What I need is an XML grammar, not serialization mechanism. Tnx :) ...more >>

setting timeout in XML controls
Posted by Buddy Ackerman at 10/24/2003 10:12:08 AM
Is there a way to set a timeout in either MSXML or in .NET's XML classes? --Buddy ...more >>

Ordering xml using xsl in c#
Posted by Si at 10/24/2003 2:13:59 AM
Hi, I have a xml dataset I'd like to order, and save in that order. I've written an xsl to do the transformation, but because the xml file has a xsd namespace, it doesn't work. A cutdown version of the xml file looks like this: <?xml version="1.0" standalone="yes"?> <hsPrinters xmlns:...more >>

How do I define nested relationship in an XSD
Posted by Darren S at 10/24/2003 12:21:28 AM
HI all, I am trying to define a schema for the folder/file hierarchy just as in a normal directory/file system. I don't seem to be able to get the right way to define a nested relationship between a folder and its subfolders. I have the following XML instance shown <Drive> <Folder Name...more >>

problems with inserting html to xslt file.
Posted by jernej goricki at 10/23/2003 6:57:47 PM
Hi, I have a string/xml value that has to be inserted to a specific <xsl:tempalte> tag, I have a namespace registered so that I can insert new XSL elements. nsmgr = New XmlNamespaceManager(myXslt.NameTable) nsmgr.AddNamespace("xsl", "http://www.w3.org/1999/XSL/Transform") This is the str...more >>

How to serialize a component?
Posted by Bernd at 10/23/2003 4:36:11 PM
Hi, how can I serialize (some public properties of) a class derived from System.ComponentModel.Component? Creating a new XmlSerializer throws an exception with the message that property "Site" cannot be serialized because it is an interface. I tried to override the Site property and gave it th...more >>

Modular schemas
Posted by Doug Eller at 10/23/2003 10:52:51 AM
I'm working with the w3c's "Modular Xhtml schema". The problem I have is that when I try to add the Schema Driver File to my schema collection, I get the following error: "Cannot resolve schemaLocation attribute." The error occurs on the first <xs:include schemaLocation="xxxxx.xsd" />. The ...more >>

XML Parsing in c#
Posted by Filip Kratochvil at 10/23/2003 7:44:21 AM
Hello all, I would like to replicate the following VB code in c# but having problems with the ancestor, could someone please suggest what I need to do here. I need to get the information - tag name - of the parent as specified in the second XPath statement Thanks in advance Filip VB Cod...more >>

Deserializing with XmlSerializer and XML namespaces
Posted by Jon the Blind at 10/22/2003 5:00:21 PM
I'm using SQLXML to get XML documents from a SQL Server database and deserializing the results with an XmlSerialier. It was working perfectly until I started getting namespace prefixes in some of my elements (due to using import directives in the mapping schemas). Here's a relevant XML fragmen...more >>

ValidatingReader
Posted by Ken Walker at 10/22/2003 11:52:32 AM
I have been able to implement a validating reader quite easily using the .net classes. The error generated when the xml document does not validate against the schema are similar to "There is an error ********* at line number column(x,y). While this is good for we computer types, I need ...more >>

XML and Encoding Problems.
Posted by DelBoy at 10/21/2003 11:14:42 PM
I'm tryin to read an XML file created by Oracle into SQL Server. Oracle creates a file using the "WE8ISO8859P1" character set : ISO-8859-1. I need to read the file using UTF-8. The code I'm using to read the file is: objDSXML.ReadXml(sFilename) where sFileName is the full path of th...more >>

MSXML default version on XP ,2000
Posted by Mike J at 10/21/2003 11:00:58 PM
Are there any very safe version of MSXML I can use to build application on XP and 2000, so user don't need to upload any MSXML package to their machine(also this version is not that old) ? Thanks. Mike http://www.ccnote.com Gateway to the most popular web sites. Have a look. ...more >>

filtering xml
Posted by Broccie at 10/21/2003 5:35:39 PM
Hi I'm trying to filter an xml document that contains products for a CD store (music). My xml file is fine and displays fine, but I am a little confused about filtering it now. I want to give the user the option to choose a different genre of music (such as rock) and it will only display ...more >>

Filtered nodes with template/param, but xsl:number still counts them?
Posted by KatB at 10/21/2003 4:37:54 PM
Hi, I posted this today on the xsl-list, but no takers so I thought I'd try here. If nothing else, I would appreciate someone pointing me in the right direction. The following is just a portion of a longer template. I have varying levels of <step> elements with potential customer and assembly...more >>

XML encoding problems
Posted by DelBoy at 10/21/2003 4:26:52 PM
I'm tryin to read an XML file created by Oracle into SQL Server. Oracle creates a file using the "WE8ISO8859P1" character set : ISO-8859-1. I need to read the file using UTF-8. The code I'm using to read the file is: objDSXML.ReadXml(sFilename) where sFileName is the full path of th...more >>

xml enveloped+exclusive canonical signing bug?
Posted by joan garcia vila at 10/21/2003 3:12:52 PM
I'm using .NET framework 1.1 + WSE10SP1.exe. I'm not able to merge transforms: enveloped signature and exclusive canonical to get something like that: <Transforms> <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /> <Transform Algorithm="http://www.w3.org/2001/1...more >>

Commas and periods in xsd
Posted by Antonio Maciel at 10/21/2003 2:18:36 PM
Hi. I defined a simpletype as a decimal in my xsd file. If I type a value like 12.7 the validation works, but if I try 12,7 the validation process gives me an error. I am in Brazil, and here decimal numbers are represented with commas, instead of periods (.). Is it possible to make the validat...more >>

newbie Transform question
Posted by googlenews NO[at]SPAM hotmail.com at 10/21/2003 1:41:56 PM
I'm using the transform to output XMLSS (for Excel) and it is working very well. I notice that the output is one long XML stream with no whitespace or carriage returns etc. Is there a way to have the XML that is output "formatted" so that it is a bit more human-readable? I would like to find a...more >>

Flattening XML data during deserialization
Posted by Robert Jacobson at 10/21/2003 12:10:16 PM
Hi, If I have an XML file that stores its data in a hierarchical relationship, is there a way to automatically "flatten" this relationship when I deserialize it (using the XmlSerializer) to a collection of objects? For example, assume that I have an XML file that contains the following data ...more >>

XML bug, what versions, etc
Posted by Ian at 10/21/2003 7:48:06 AM
>-----Original Message----- >Ian wrote: > >> How can I find out for certain which version my .NET >> installation is using, and if I am indeed using version 3, >> how can I upgrade it to version 4 to get the service pack >> 2? If this is what I have to do anyway. > >..NET doesn't use ...more >>


DevelopmentNow Blog