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 2004 > threads for may 15 - 21, 2004

Filter by week: 1 2 3 4 5

param syntax help
Posted by darrel at 5/21/2004 5:19:30 PM
Why does this work: <xsl:for-each select="//page[@subSite='monkey']"> but this does not?: <xsl:param name="subSite">monkey</xsl:param> <xsl:for-each select="//page[@subSite='$subsite']"> ...more >>


XPath contains() function
Posted by sprungli at 5/21/2004 4:31:09 PM
My goal is to select some XPath nodes based on whether their values (text) contain a string passed as argument. To achieve this I use the contains() function of XPath in an XpathExpression. For example, given the following fragment... <code> <Exprs> <Expr>red fox</Expr> <Expr>ju...more >>

Need help merging documents
Posted by Robert Strickland at 5/21/2004 4:08:48 PM
I need to merge 3 or more xml streams (I have 4 string variables that contain xml) into a single xml stream before doing a transformation. Is there any sample code or site to show the way? Thanks ...more >>

need help/cheat sheet on xsl match commands
Posted by darrel at 5/21/2004 2:46:16 PM
I'm struggling to keep track of all the ways to format a match value. Can anyone recommend a decent overview or cheat-sheet? Here's the particular one I'm stuck on: I want to match any 'page' tag with the attribute of the subSite param. I've tried this: //page[@subSite=$subSite] but ...more >>

Parsing with unqualified Namespace
Posted by Erik Moore at 5/21/2004 2:36:29 PM
I am both producing and parsing an xml document that needs to be validated against a schema. I wanted some consumers of the document to have the option of not performing a validation, so I left the nodes in the instance unqualified. An example of the document is below: <?xml version="1.0" encod...more >>

XMLDocument character encoding
Posted by Eric Cadwell at 5/21/2004 2:10:11 PM
We are encoding strings using XMLElement: private string XMLEncode(string val) { if(val.Length == 0) return string.Empty; XmlElement element = xmldoc.CreateElement("E"); element.InnerText = val; return element.InnerXml; } The question is what encoding is being ...more >>

Removing XML Element. Simple??? Give me your trick please
Posted by GhislainTanguay at 5/21/2004 11:10:21 AM
This is my XML file and below you will find my code to remove it... I was thinking that it's a simple task but this code doesn't work. Anybody have a better solution? <Advertisements> <Ad> <ImageUrl>http://localhost/UQCN/Images/Ecoroute.gif</ImageUrl> <NavigateUrl>/UQCN/WebMo...more >>

Tutorial
Posted by Peter Morris [Droopy eyes software] at 5/21/2004 8:00:16 AM
Hi all Can anyone point me to a good tutorial for XML in .NET? Also XSD and XLST + some info on XPath would be useful. Thanks Pete ------- http://www.HowToDoThings.com Read or write articles on just about anything ...more >>



Getting XML out of Dataset
Posted by Richard at 5/21/2004 4:31:03 AM
Hi Is it possible to define exactly what format the XML takes when you create it from a Dataset. I have defined a XML schema but the XML I get from the Dataset (which is a strongly typed dataset using my XML schema) doesn't use this schema ie I get the standard element type xml document. Regar...more >>

The data at the root level is invalid. Line 1, position 1
Posted by Deena at 5/21/2004 2:04:44 AM
I pulling my hair out with is error! I've used an external source to validate my schema against the xml and it succeeds without any errors (http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.as px) but as soon as I run it through some code it pops up with that error! Here's my code:...more >>

Creating XML DataSet from scratch
Posted by Chris Kennedy at 5/20/2004 8:57:18 AM
How do create a dataset from scratch based on an XML schema. This will not be filled by a dataadapter. It will be a dataset which I add rows to and then save as an XML file. All the example depend on filling the dataset. I have also tried creating it from the XML schema but I am having problems ...more >>

Problem using XmlTextReader and XmlTextWriter.
Posted by Pete at 5/19/2004 10:42:32 PM
I'm trying to read an XML document and write out a slightly modified version using the XmlTextWriter. I'm basically trying to copy all the nodes exactly as they are read and do some text manipulation on #text nodes of only certain named elements. example while (xmltextreader.Read()) { ...more >>

Serializing array of userdefined types
Posted by Lidström at 5/19/2004 12:09:36 PM
Hello, I want to have a class that contains only a collection of another class. For example: public __gc class Alignment { public: Alignment(); ... }; // Probably using XmlIncludeAttribute such as this is wrong... [System::Xml::Serialization::XmlIncludeAttribute(__typeof(Alignment...more >>

Controlling order of serialization
Posted by Lidström at 5/19/2004 11:18:51 AM
Hello, how can I control the order of which elements are serialized. For example, my class looks like: public __gc class Author { public: Author(); // get/set methods [System::Xml::Serialization::XmlAttributeAttribute("createdBy")] __property System::String* get_c...more >>

XslTransform/XmlWriter can't encode &#160 in us-ascii or iso-8859-1
Posted by smr NO[at]SPAM essemer.com.au at 5/19/2004 4:47:00 AM
My problem starts with wanting "&#160" to actually appear that way in the output rather than an actual encoded 0xA0 byte in the output stream. I thought a way to solve this would be to select us-ascii or iso-8859-1 as the output encoding, and so used this line in the stylesheet: <xsl:out...more >>

XPath: Is there a better way to do this...
Posted by David Elliott at 5/18/2004 3:44:13 PM
I am retrieving XmlSchema from a database and need to find the nodes that represent the Table and Column names. I have included a sample Xml Schema and the code I used to find the information. As this is the first time I have even attempted to use XPath, I was wondering if the code I provided is ...more >>

Does XmlValidatingReader check key and keyref constrains?
Posted by Dmitry Martynov at 5/18/2004 2:58:22 PM
Hi I have a question whether XmlValidatingReader doesn't check keyref constrain (the same with key constraint) or I do smth wrong. I have the following schema <?xml version="1.0" encoding="utf-8"?> <xs:schema id="module" targetNamespace="http://tempuri.org/module.xsd" xmlns="http://temp...more >>

Did I miss something here ?
Posted by Sonu Kapoor at 5/18/2004 12:50:18 PM
Ok guys, I could bang my head on the laptop, cause I dont get this to work. The scanrio: I am tryting to pass an parameter with the help of XslTransform to the xsl file. But whenever I run the code, I got the error: System.Xml.XPath.XPathException: Expression must evaluate to a node-set....more >>

Weird Characters at beginning of Transformed file.
Posted by David Withnall at 5/18/2004 9:19:15 AM
Hi, I'm using XSLT to transform my XML to a text file. When I view this file in notepad, it comes out fine, but when I view it in DOS (using type), or in unix, there are 3 strange characters at the beginning of the file. Does anyone know what these are, or how to get rid of them? Thanks ...more >>

Suppress "Missing XML comment" warning during compile?
Posted by Bill Dee at 5/17/2004 6:25:21 PM
I use XML comments around most of my class libraries public property and methods, for example: /// <summary> /// blah blah /// </summary> However I have a few dozen public constants as well as a few properties and methods that I do not want to provide any XML comments for. This generates ...more >>

Using xpath with xslt ?
Posted by Sonu Kapoor at 5/17/2004 5:40:56 PM
Hi, I would like to use xpath with xslt. I know that this should be possible, but I dont get it ! Here is what I have tried so far: ==================================== my xml file: ==================================== <?xml version="1.0" encoding="utf-8"?> <CategoryList> <Cat...more >>

HTTP Status Codes
Posted by chris fink at 5/17/2004 4:51:14 PM
Hi, What are the appropriate HTTP Status Codes for the following: 1. XML is not well-formed (structure problem).... 2. XML is not valid (as per DTD/XSD/XDR).....missing req'd field, etc I checked out W3C spec and was unable to decide which status codes are best. Any help is appreciated....more >>

Help with XPath
Posted by David Elliott at 5/17/2004 3:40:19 PM
I am in the process of creating an application to scrape databases in order to create typed DataSets. One of the last pieces that I need to do is to remap database fields to something more pleasant. In order to do this I have created a static map that will perform the transformation. Be...more >>

Generate attribute instead of element node
Posted by Lidström at 5/17/2004 12:33:07 PM
Hi, how do I generate attribut instead of element name? For example: I want: <car name="Ford" /> instead of <car <name>Ford</name> </car> I have a class such as: public __gc class Car { System::String* name; }; I think it can be done by adding [XmlAttribute("name")] right ...more >>

how to write XDR
Posted by pratibhaa NO[at]SPAM jvc.co.uk at 5/17/2004 4:44:20 AM
My dream XML will look like as follows: <?xml version="1.0"?> <bk:bookList xmlns:bk="urn:BookSampleSchema.xdr"> <book> <title>Doe's Book</title> <author>J Doe</author> <year>2002</year> </book> <book> <title>Sam's Book</title> <author>Sam</author> <year>2003</year> ...more >>

Writing and Retrieving Configuration from an XML Document in C#
Posted by J-S at 5/16/2004 7:27:16 PM
Hi, I'm a student and new to the .net framework. What is the best way to save configuration properties (not user specific) for a C# application? I read a few messages talking about using XML to save properties. I read about using app.config, but it seems you have to manually edit the fi...more >>

XSLT HTML Validation
Posted by sales NO[at]SPAM trevoroakley.com at 5/16/2004 9:53:45 AM
I am producing HTML from XslTransform (C#) and the HTML does not validate, see http://www.redburg.co.uk/mira/mira415_ev_wh_ch.html as an example. I am using the following XSLT code: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xs...more >>

XSLT - MemoryStream - Performance
Posted by sales NO[at]SPAM trevoroakley.com at 5/16/2004 8:42:55 AM
I am writing thousands of html pages from an MS SQL source using a DataSet and then an XslTransform. I have an interest in making the code run faster as it takes several minutes (sometimes ten minutes) to generate a batch of pages (say two thousand). If anyone has URL resources which performan...more >>

Simple problem
Posted by Matteo Migliore at 5/15/2004 12:57:47 PM
Hi. I'm using the "&" char in the XML file (a field of a table of a serialized DataSet contain it). The Internet Explorer parser show error, like: --------------------------------------------------------------------- A semi colon character was expected. Error processing resource <Name>MyS...more >>

I need a parse example...
Posted by quiet at 5/15/2004 9:56:03 AM
I have the following xml file, and i need to get the values of <ID>, <HomeID> and <HomeName> in vb.net, i've tried several ways, but i can't get it, can you give me a vb.net example haw i do that? Thanks and sorry for my englis <?xml version="1.0"?><Data><FileName>Details.asp</FileName><Version>1....more >>


DevelopmentNow Blog