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 > september 2007

Filter by week: 1 2 3 4 5

Reading XML Encoding errors
Posted by AGP at 9/30/2007 12:00:00 AM
I am programming an XML reader in VB.NET 2005 and it works fairly well. Once in a while though I encounter an old XML file without the header <?xml version="1.0" encoding="UTF-8"?> It craps out on the Load with an error similar to "Invalid character in the given encoding. Line 3, position 54750...more >>

What's up with XML Paper Specification?
Posted by clintonG at 9/29/2007 8:25:42 PM
Not much in the way of newsgroups or forums going on eh? -- <%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://clintongallagher.metromilwaukee.com/ ...more >>

XmlWriter localization
Posted by Peter Ramsebner at 9/28/2007 10:53:51 PM
Hi all, i have to generate a xml file from a product table using the XmlWriter Class. I want to put out de product name for different languages, countries. The recipient of the generatet xml file espects something like that: <name xml:lang="en-US">product name</name> <name xml:lang="de-DE...more >>

Find "parent" node of element using XmlTextReader
Posted by syvman NO[at]SPAM gmail.com at 9/28/2007 3:00:14 PM
Hi... I am working on a simple program (in VB.net) that will grab the values of elements out of an XML file that are tagged as "databasePath"... My program works, but I am getting too many results. I need to limit the scope of the program to only include the string value from the element that...more >>

How to Populate DataSet With XML Derived Schema?
Posted by FerrisUML at 9/27/2007 6:58:47 PM
Im trying to populate a dataset that has a loaded xml schema (dataset.readxmlschema("file.xsd")) with data from a sql query. I've tried to map the columns of my result set to the tables of my dataset, but got an error that tables cannot share a source table. Anyone have any ideas how to best a...more >>

XML namespaces and XSD.exe
Posted by Namshub at 9/26/2007 2:21:51 PM
Oh boy i'm getting tangled in knots here. I have a schema which contains <xs:schema targetNamespace="http://Southend.Schemas.PAS/PASPatientDemographics.xsd" id="PASPatientDetails" xmlns:sh="http://Southend.Schemas.PAS/PASPatientDemographics.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema...more >>

Generating xml using enterprise architect
Posted by Arlene Reid at 9/26/2007 2:58:41 AM
Hi all I need to use enterprise architect to create class diagrams with all their various atrributes and relationship. I then need to generate xml from this class diagram. Has anyone tried doing this? Please let me know ASAP Thanks ...more >>

How to save/load a Type in Xml
Posted by Juan Dent at 9/25/2007 2:36:02 PM
Hi, I am using XmlWriter/XmlReader to save.load classes. However, one of the members of one class is of type Type. How can I write and then read that as Xml? -- Thanks in advance, Juan Dent, M.Sc....more >>



SelectSingleNode not working... Code provided.
Posted by Rafael at 9/25/2007 11:53:57 AM
All, The xml file below is a response from a Live Meeting service. I need to extract the following two fields: mid and audienceInviteText I am using vbscript to try and retrieve these values but my code tells me the replynode is required at line 5. Here is what I have: set xmlbody = c...more >>

do release builds have the same amount of info in exceptions? e.g. will exceptions cought in release builds contain stack trace etc.?
Posted by Daniel at 9/24/2007 4:00:25 PM
do release builds have the same amount of info in exceptions? e.g. will exceptions cought in release builds contain stack trace etc.? ...more >>

Getting started help needed...
Posted by baffled at 9/24/2007 11:10:28 AM
I have to write a class library to interface with a vendor's XML service that works via https posts and responses. The vendor provides request and response xsd files for the schema. My library needs to provide a common interface to other apps that need the functionality from this vendor, but...more >>

RE: LINQ to XML and Amazon Webservices
Posted by mudGil at 9/24/2007 7:54:04 AM
I am not able to reply to my previous thread wich had the same title, so here goes: I added the namespace which made no difference. There are no prefixes in the XML, which I'm posting below, so I've asumed no need for namespace. Am I wrong? Anyway, this has become very strange. When I...more >>

how to force a .net application to use .net 2.0 ?
Posted by Daniel at 9/21/2007 1:53:52 PM
how to force a .net application to use .net 2.0 ? this windows service is about 4 years old and im pretty sure is using .net 1.x runtime. Is there soem setting in the installer that says to use .net 2.0 instead of .net 1.0? this windows service is developed in visual studio 2002 ...more >>

System.Windows.Controls.Button vs System.Windows.Forms.Button
Posted by ZiggyShort at 9/21/2007 1:44:00 PM
Using a Button control, I tried to reset its colour ("color" to those of you on the other side of the pond). I tried to use the BackColor attribute - but that is in System.Windows.Forms.Button. When I add "using System.Windows.Forms" I get an ambiguous usage error, seeing as I am also "using ...more >>

how to instantiate a proxy class that has multiple instances
Posted by doug at 9/20/2007 4:36:31 PM
I have a class built from the following XML: <tag1> <tag2> <tag3 item="1"/> <tag3 item="2"/> </tag2> </tag1> On the client side I can populate tag1 and tag2, but I don't know how to instantiate instances of tag3. I read the values in from external file and I want to keep ad...more >>

LINQ to XML and Amazon Webservices
Posted by mudGil at 9/20/2007 8:06:01 AM
Hi, I'm having a hard time in using LINQ on XML returned from Amazon Webservices. I'm using the 2008 beta 2 on an XP machine. the code I'm using is: ========= Dim s As String s = "http://ecs.amazonaws.com/onca/xml?" & _ "Service=AWSECommerceService&" &...more >>

Problems reading xml feed into XmlTextReader
Posted by TheDude5B at 9/20/2007 2:26:31 AM
hi, I have a function which reads the xml from a web url into the XmlTextReader, and then I work my way through the reader producing html from the different nodes. All the code works fine when I debug the project, but when I publish the project and run it on a live server, I seem to be gettin...more >>

Streaming XML
Posted by nano2k at 9/19/2007 12:48:19 AM
Hi In my application I manage an XmlDocument object. This document object grows bigger and bigger while the application runs. The document is used as a buffer of data, so it's frequently updated and read, that's why I'm keeping it in mamory. When the application closes, I save the cached data ...more >>

Reason : There was an error generating the XML document.
Posted by Sandeep Singh at 9/19/2007 12:00:00 AM
Hi All, I am getting an error while generating XML . The error message is : There was an error generating the XML document. Unable to cast object of type '.ThirdPartyFlatFileDetailCollection' to type 'ThirdPartyFlatFileDetailCollection'. Please Note that it was working fine for last many m...more >>

Custom IXsltContextFunction behaves differently within a predicate
Posted by phil k chan at 9/18/2007 4:04:12 PM
I have implemented a custom XPath function that is used to retrieve an XPathNodeIterator over an XmlDocument (other than the primary document being queried) specified by filename. This function works in an expression like: /a:Doc/a:Value + custom:GetDoc('doc2.xml')/b:Doc/b:Value But the cu...more >>

How To View well formatted XML in IE 6.0
Posted by at 9/18/2007 12:13:23 PM
Hi Everybody I m generating dynamic rss using php I have attached the CSS to it and i can see well formatted ..rss file in Mozila Firefox browser But If i request the same file in Internet Explorer I cannt see the file formatted. I want the same o/p in both the Browser Is that Possible P...more >>

Need to escape ]]>
Posted by DC at 9/18/2007 9:55:54 AM
Hi, I have to somehow place this fragment into a CDATA block: ]]> Example: <replace><![CDATA[]]></text>]]></replace> Of course that does not work since the first ]]> will close the CDATA block already. Can I escape it somehow? TIA for any hints! Regards DC ...more >>

XmlTextWriter and knowing wich element is opened at run time
Posted by sam at 9/17/2007 10:42:22 PM
Is there a way when yoy write xml with XmlTextWriter to know at run time wich xml element are opened ? Sam ...more >>

Basic XML question - Add Element
Posted by Rafael at 9/17/2007 1:59:52 PM
This must be the most basic question for xml ever but given the xml file below, how can add a contact to this document and make sure the ID is unique? <?xml version="1.0" encoding="utf-8" ?> <customers> <contact ID="1"> <name>John Doe</name> <phone>123-444-5566</phone> </contact> ...more >>

Associate Schema to new XML File for Intellisense.
Posted by CDPNET at 9/17/2007 9:20:04 AM
Hi, I have created an XSD schema file. Users of my project have to create few XML documents as input to the system, based on this particular XSD Schema. They can use any xml editor for this. But, I want them to associate this schema to that new xml document and they should get intellisense fa...more >>

is there some per-process-limit on memory in .net processes? is there any way to increase it? i keep getting System.OutOfMemoryException when my box h
Posted by Daniel at 9/14/2007 8:37:14 PM
is there some per-process-limit on memory in .net processes? is there any way to increase it? i keep getting System.OutOfMemoryException when my box has 8 gigs of unused memory. ...more >>

Save and load crypted XML
Posted by nano2k at 9/14/2007 4:22:22 AM
Hi I need to save / load XML data in crypted format. I'm using .net 1.1. Thanks. ...more >>

xpath question
Posted by sam at 9/13/2007 10:16:40 PM
I use in my csharp code this xml: <doc> <item Id="1"> <item>1</item> </item> <item Id="1"> <item>2</item> </item> <item Id="2"> <item>A</item> </item> <item Id="3"> <item>B</item> </item> </doc> And I need to exclude all items that Id="1" and then in the result se...more >>

Traverse Child Nodes
Posted by Tom Holmes Jr. at 9/12/2007 12:40:08 AM
I have an xml document that looks like: <Areas> <record><AREA_ID>1</AREA_ID><AREA>Yard</AREA></record> <record><AREA_ID>2</AREA_ID><AREA>Street</AREA></record> <record><AREA_ID>3</AREA_ID><AREA>Park</AREA></record> <record><AREA_ID>4</AREA_ID><AREA>Area</AREA></record> </Areas> I want to tu...more >>

Create a XML - First Step
Posted by marcello at 9/11/2007 9:36:17 AM
I'm creating my first XML file with .NET Framework and I have a problem. With this code : Dim doc As New XmlDocument doc.LoadXml("<gpx version=""1.0"" creator=""WISoul http://www.opigi.com""></gpx>") doc.Save(Console.Out) I obtain in the console the following output : <?xml version="1.0...more >>

Question about an xpath depending on two xml nodes
Posted by Martin Horst at 9/10/2007 3:01:18 PM
Hi, in my case I've got the following XML document: <doc> <item> <foo>1</foo> <bar>a</bar> </item> <item> <foo>2</foo> <bar>b</bar> </item> </doc> My question is, if it is possible to read out the value of a child if another childnode has a specifi...more >>

Adding comment to serialized class
Posted by Thomas Schoch at 9/10/2007 2:36:20 PM
I want to serialize one of my classes to xml and add some comment after the <?xml...> line. Is there any way I can do that? Thomas ...more >>

Transport XML across the web: web service, remoting secure FTP or what?
Posted by JackPot at 9/8/2007 8:38:44 PM
Need some discussion regarding a project in preliminary design... A laptop running XP Pro/IIS will be used to capture data from a form. The form will be used to write the captured data to XML on the file system of the laptop. The file will contain data that must not be transmitted as clear ...more >>

XmlTextReader Problem
Posted by Rasheed at 9/7/2007 6:56:27 AM
Hi , I am using XmlTextReader in C# code, I have one problem while reading xml file with "XmlTextReader" class. i.e I have traverse all attributs/child node of the xmlnode, After that, I want to read outerXml of my current Xmlnode. but I am unable to get outerXml node. Here I am explaining my...more >>

Problems XSLT Transformation of XML Data to EXCEL 2000
Posted by Glenn Gomez at 9/7/2007 6:38:02 AM
Does Office Excel 2000 support XSLT transformation of data from XML cause am having problem when the attachment is opened in the client side if the Excels version is in Office 2000 and also its works fine if the Office Excel Version 2002 and up when attachment file is open via browser the ...more >>

Validating a Schema, recognizing failed <xs:import> directives?
Posted by daldridge NO[at]SPAM gmail.com at 9/5/2007 10:52:52 AM
I have the following XML Schema file located at C:\foo.xsd: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://some.bogus.com/foo"> <xs:import namespace="http://some.bogu...more >>

XmlWriter.WriteString() problem.
Posted by Tom Delany at 9/4/2007 1:08:57 PM
According to the Microsoft documentation, the .NET class System.Xml.XmlWriter.WriteString() does the following: "Character values in the range 0x-0x1F (excluding white space characters 0x9, 0xA, and 0xD) are replaced with numeric character entities (&#0; through &#0x1F)." However, when w...more >>

Need Help, Returning DOCTYPE with web service XML
Posted by missiontrip2007 NO[at]SPAM gmail.com at 9/4/2007 8:54:57 AM
I cannot find how to do this, hopefully someone can help and soon! I have a web service (in c#) that returns and XML document, but the Doctype is stripped out on the return and I cannot figure out why. Here is a striped down demo. [WebMethod] public XmlDocument cxmlsetup() { ...more >>

Using XSD and Included Schemas
Posted by Roy Chastain at 9/2/2007 3:21:47 PM
I have some 'base' schema definitions that are going to be in several projects in the future. The processing of resulting classes created by XSD will be consistent across the new projects. I have created a schema with these base definitions and common code to process these elements. I have m...more >>


DevelopmentNow Blog