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 > april 2005

Filter by week: 1 2 3 4 5

Create filtered dataset from XML file?
Posted by johnb41 at 4/30/2005 8:58:34 PM
I need to create a Dataset and datatable from an XML file. The only way I know how to make a Dataset and Datatable, is by using an Access database as my datastore: You know, the usual thing in all the books; an OleDbDataAdapter, with a SQL string and connection. How can I do this using an XM...more >>


Syntax to get contents of a specific node
Posted by JoBean at 4/29/2005 7:04:02 PM
I think this is a simple Q but I cannot get the syntax right. I want to specify the node name and get its contents. I do not want to loop through and grab the contents of all child nodes - which the code below is doing fine. I want to replace the inner loop by specifying the node name (name, ...more >>

XPath syntax to check an attribute of all child nodes?
Posted by Bob at 4/29/2005 3:35:57 PM
I have sitemap like XML, of which every element has an attribute "url", e.g. <record menu_id="240" name="Countries and States" url="Countries.aspx"> <record2 page_id="54" url="CountriesEdit.aspx" /> <record3 page_id="27" url="Regions.aspx"> <record4 page_id="55" url="Region...more >>

VC++ .NET 2003: XmlValidatingReader via DTD - Unknown node type
Posted by SHC at 4/29/2005 2:22:03 PM
Hi all, I created an application from the Console Application (.NET) of VC++ .NET 2003, and I did "Build" the application of the attached .cpp file, volcanoes.xml and geology.dtd on my VC++ .NET 2003 - Windows XP Pro PC suscessfully. But when I ran it from the command line - C:\Documents and ...more >>

A couple of newbie xsl conversion of xml to html questions (C#/.Net)
Posted by Michael Howes at 4/29/2005 1:00:56 PM
I have some xml data that I want to turn into an html report. I wrote some xsl (my first xsl) and tested it in XMLSpy. It transformed my xml to html pretty much how I wanted (I'm still trying to understand table formatting, like table width in xsl, my tables aren't as wide as I'm specifying)....more >>

xml, dataset, datalist
Posted by buran at 4/29/2005 12:00:00 AM
Dear ASP.NET Programmers, I need your help on the following case: 1. I have a page coverpage.aspx, on which I load invoice data into the datalist control dliHospCosts. I use the stored procedure spGetHospAmounts and load the data. <ItemTemplate> <TABLE id="Table77" width="100%"...more >>

XMLValidatingReader.Read() question
Posted by jason at 4/28/2005 12:48:09 PM
i am using an XMLValidatingReader in a manner similar to the following code example: string sReturn = ""; XmlValidatingReader oXML = new XmlValidatingReader(sXMLString, XmlNodeType.Document, null); oXML.Schemas.Add("", sSchemaURL); oXML.ValidationType = ValidationType.Schema; oXML.Validat...more >>

Can xsd.exe generate .cs files from schemas, if importing another schema with the same namespace is involved?
Posted by rehveli at 4/28/2005 12:00:00 AM
Isn't it possible to generate .cs files from schemas, where one schema imports another, and both have the same namespace? If a.xsd and b.xsd have namespace "MyNameSpace", and in b.xsd I do <xsd:import namespace="MyNameSpace" schemaLocation="a.xsd"/> and run "xsd.exe /c a.xsd b.xsd", xsd.exe er...more >>



[WSS2003] ADAM et WSS
Posted by sda at 4/28/2005 12:00:00 AM
Bonjour, Est-ce que vous connaissez des liens qui feraient part d'un retour d'expérience concernant l'utilisation d'ADAM comme annuaire d'un site WSS ? Merci Cdt, SDA ...more >>

Dynamic XmlInclude declaration
Posted by yuriy_zubarev at 4/27/2005 12:16:57 PM
Greetings, Simple scenario: I have objects that need to be persisted in XML. The declaration is as follows: public class Zoo { protected Animal[] animals; [ XmlArray("animals"), XmlArrayItem("animal", typeof (Animal)) ] public Animal[] Animals { get { return thi...more >>

passing XML querystring
Posted by smarcinek NO[at]SPAM interia.pl at 4/26/2005 10:24:21 PM
i want to pass XML data in querystring from one to another asp page. it is about 10000 characters long, i cannot use FORM because it is already nested in one. What i do is i have IFRAME and im passing some xml data in QUERYSTRING. It doesnt work somehow, im using javascript escape method to s...more >>

custom XPathNavigator implementation
Posted by Bruce Dunwiddie at 4/26/2005 9:48:01 PM
I'm trying to build a couple classes that would allow for writing xsl transforms against data that is not originally xml. I've got an xmlreader implementation that seems to work well. Based on some issues with it and transforms, I then wrapped it up in a custom xpathnavigator implementation. ...more >>

XML Schema not working
Posted by Chuck Bowling at 4/26/2005 4:14:12 PM
AIML Schema: http://209.168.21.76/CommunityStarterKit/Downloads/258.aspx I have a Schema (in the link above) that I've been trying to make work in VS2003 for a while now and just can't seem to get right. I didn't design the schema and to tell the truth, most of it is beyond my rudimentary ...more >>

rss feeds on XML
Posted by Mike P at 4/26/2005 3:24:50 PM
Does anybody know of any good rss feeds on XML/XSLT/XAML? Any advice would be really appreciated. Cheers, Mike *** Sent via Developersdex http://www.developersdex.com ***...more >>

Filter XmlDocument based on XPath expressions
Posted by Dinesh at 4/26/2005 12:16:04 PM
Hello, I have a very complex XmlDocument. I want to create a new XmlDocument that contain only certain certain elements, based on a set of XPATH expressions I have. What is the easiest and least performance impacting solution for this using the .NET implementation of DOM? Thanks!...more >>

VC++ .NET 2003: XmlTextReader Class Generates A Runtime Exception
Posted by SHC at 4/26/2005 5:07:01 AM
Hi all, I did the "Build" on the attached code in my VC++ .NET 2003 - Windows XP Pro PC. On the c:\ screen, I got the following: Microsoft Development Environment An unhandled exception of type 'System.Xml.XmlException' occured in system.xml.dll Addtion...more >>

XPathNodeList.Count throws exception in .Net v2.0
Posted by Sébastien Ros at 4/26/2005 2:12:02 AM
During the process of an XML document, I have to make a SelectNodes() call on an XmlDocument. It returns an isntance of XPathNodeList. I can call it several times but at one point, the result can't be iterated. Here is the code: XmlNodeList nodes = _Document.SelectNodes(myXpathQuery); for...more >>

Problem in dotNET XSL convertion object. (XMLTRANSFORM)
Posted by vidar.martinsen NO[at]SPAM ft.dep.no at 4/26/2005 12:33:28 AM
I have a problem in dotNET XSL convertion object. (XMLTRANSFORM) It won't convert UTF-8 to ISO-8859-1 I use this stylesheet for konvertion: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- For convertion from UTF-8 to ISO-8859-1 CaracterSet --> <xsl:stylesheet version="1...more >>

XmlUrlResolver & document()
Posted by Maxim Kazitov at 4/25/2005 10:11:34 PM
Hi, I try to use document() function in XSLT, but looks like .Net XSLT = parser don't try to resolve external URL. Does any body know what can be = wrong here : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DC#=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=...more >>

Help have to move away from SQLXML
Posted by Keith Chadwick at 4/25/2005 7:54:02 AM
We current have a bunch of web services that make user of the SQLXML object. A template is created in code which calls several stored procedures each of which returns multiple xml recordsets from our SQL Server 2000 database. When the template is run an XSL transformation is automatically ap...more >>

Access to the path...is denied?
Posted by Dave at 4/25/2005 5:39:05 AM
Sorry for cross-posting with the xsl group but this seems like a asp.net xml specifici issue... I'm getting the following error when I try to use a xslt transformation. My function is below. It only happens on our dev server so I'm not sure what line it's occurring on but the function nam...more >>

XMLTextReader - jump to beginning
Posted by Newton at 4/25/2005 5:01:01 AM
Hi, I receive XML document from input and I would like to read it several times... My declaration is XmlTextReader XMLInputReader = new XmlTextReader(fileImport.PostedFile.InputStream); I am reading it like this while (XMLInputReader.Read()) { //code } Af...more >>

Problem validating w3c XML Schema Module with XmlValidatingReader
Posted by Mike Bridge at 4/25/2005 12:00:00 AM
Hi- I've created an XHTML extension module which validates correctly using the W3C online schema validator, but fails when I use the .net 1.1 validator. It seems to be choking on an included W3C file: http://www.w3.org/MarkUp/SCHEMA/xhtml-notations-1.xsd The problem seems to be o...more >>

VB.NET Web Programmer in New York $40/hr
Posted by Reply NJ at 4/23/2005 12:44:17 PM
VB.NET Web Programmer in New York $40/hr We are looking for someone to work as a VB.NET Web Developer. In this role, you will design and develop application software for a successful global corporation. You will also support and install software applications. Additional duties are to participa...more >>

VC++ .NET 2003: XmlTextReader Errors C2144 & C1004
Posted by SHC at 4/23/2005 11:27:02 AM
Hi all, I read the Microsoft KB Q815658 "How to read the XML data from a file using Visual C++ .NET" and tried to follow the steps of executing its source code in my VC++ .NET 2003 under Console Application (.NET). I lauched a project 'Q815658XMLRead' (see the attached .cpp file below) and d...more >>

xmlDocument element's value assigning with &= or += doesn't work?
Posted by TS at 4/22/2005 10:00:20 AM
ex in VB: oChild = XMLDoc.CreateElement("P") oChild3.InnerXml = "this is test data" '''''This doesn't work: oChild3.InnerXml &= " that i like to keep on hand" '''Neither does this: oChild3.InnerXml = oChild3.InnerXml & " that i like to keep on hand" So is it that you can't access the XmlE...more >>

XMLTextReader - Issue with special characters &,<,>
Posted by RJN at 4/22/2005 8:33:29 AM
Hi I'm using XMLTextReader to parse the contents of XML. I have issues when the xml content itself has some special characters like & ,> etc. <CompanyName>Johnson & Jhonson</CompanyName> <EmployeeStrength>> 1000</EmployeeStrength> When I do a Xmltextreader.read() and then check the conten...more >>

XML canonicalization using VB
Posted by Praveen at 4/22/2005 12:00:00 AM
How can I canonicalise an XML file in VB???? Kindly help me out at the earliest. I can do the same in .NET using System.Security.Cryptography.Xml.XmlDsigC14NTransform namespace. I am very much desperate for this... All I need to do is.. take an XML as input and give an canonicalized XML as ...more >>

XPathNodeIterator.Count Bug?
Posted by Jamie da Silva at 4/21/2005 11:06:02 PM
I couldn't find a better resource for reporting a possible .NET Framework 1.1 (SP0 & 1) bug, so if this is not the proper forum, please let me know. The problem appears to occur when using "self::" to match the current node of an XPathNavigator. In this case the resulting XPathNodeIterator r...more >>

getting around SOM limitations
Posted by Rein Petersen at 4/21/2005 1:26:13 PM
Hey, I love the SOM buuuuuut, I'm trying to add/read my own namespaced attribute in a node of my schema without having to jump back and forth from SOM to DOM. I think a sample is important here because there will certainly be confusion about what kind of attribute I'm talking about. Here is...more >>

Save DB query results as XML file
Posted by Trillium at 4/21/2005 1:20:03 PM
I am trying to query a SQL Server database, retrieve the results as XML, and save them to a file. I was trying to use the SqlXmlCommand, SqlXmlCommandType.XPath and an xsd to query the database, and load the results into a XmlTextReader. This works fine. But then I get stuck. I don't wan...more >>

XmlValidatingReader question
Posted by jason at 4/21/2005 9:36:41 AM
how do you use the XmlValidatingReader to validate an XML document that is passed into the XmlValidatingReader constructor? it looks like the normal process is to use an underlying reader, as follows (C#): XmlValidatingReader oMyVReader = new XmlValidatingReader(oMyReader); oMyVReader...more >>

XPath query doesn't work in .Net 2.0
Posted by Sébastien Ros at 4/21/2005 5:29:02 AM
I tries to migrate an existing application from 1.1 to 2.0 but it seems that one of my XPath expressions no more works on this version. I tried a SelectNodes().Count. The result is 1 in v1.1 and 0 in v2.0. Here is the XPath expression: //Entity[@Type = 'EPT:Priority' and (Attribute[@Name = ...more >>

Read from webpage ?
Posted by kjo007 NO[at]SPAM hotmail.com at 4/21/2005 1:51:15 AM
Is there a way i can read xml from a webpage. The situation is that i have to type in an Url with some parameters (a login), when the page returns, it returns an ID that i have to use through the session, the ID is retuned in XML format, and this is what i need to read. The Xml page looks l...more >>

Compilation error in class generated with XSD.exe
Posted by Julia Beresford at 4/21/2005 1:47:02 AM
Hi I am having problems generating classes from an xml schema using XSD.exe. The schema in question is WiX.xsd (a Microsoft schema for WiX - a tool to create MSIs). The xsd tool generates the classes but I get the following compilation error: -------------------------------------------...more >>

Serializing 'unknown' objects
Posted by Ivo Bronsveld at 4/21/2005 12:00:00 AM
All, I have quite a challenging task ahead of me. I need to write an object model (for code access) based on a schema, which cannot be made into a dataset because of it's complexity. So I created a couple of objects and serializing it into XML based upon the schema works perfectly. The ...more >>

how to deserialize a sub class
Posted by saliwen at 4/20/2005 11:31:01 PM
hi,all I'v gotten a problerm of deserializing xml to object.the scene is: I generated the classes using xsd tools including a class A and sub-class B, then I deserialize from XmlNodeReader only has B's node, and no exception was catched,and instance of B has been constructed,but has no data ....more >>

XSLT Question
Posted by Philipp Schumann at 4/20/2005 4:47:02 PM
Hi, I'm using .NET Framework 1.1 XSLT. Can anyone tell me why this works: <xsl:for-each select="$somenodelist"> <xsl:if test="ext:CheckCondition (@condition)">Bla</xsl:if> </xsl:for-each> But the following doesn't produce the same results - it behaves as if CheckCondition (a custom f...more >>

Modifying an XML of more than 10 GB(REALTIME) !!!!
Posted by Harpreet Matharu via DotNetMonster.com at 4/20/2005 4:28:23 PM
Hello, I'm working on a very large XML file in C#. I need to modify or insert certain data on spicified tags in the file, without creating a new file !!!! !. How can this be possible ? I'm using XmlTextReader for reading this file....more >>

using xml to build ASP.NET applications
Posted by chris yoker via DotNetMonster.com at 4/20/2005 3:09:18 PM
hiya, ATM, I use vis studio to drag and drop controls on to my web forms. Apparently, an app can be built via XML and XSLT.I've been googling, but I'm still none the wiser as to why people would go to a low level of xml when they could use the IDE? Is it because: 1) the same xml can be us...more >>

Modifying Excel in DotNet System.Xml
Posted by tascienu NO[at]SPAM ecoaches.com at 4/20/2005 2:41:00 PM
Consider the following code... Open excel document and save it as xml. Try to modify it in vs.net using the following code... ' ------------------------------ Try Dim x As New Xml.XmlDocument x.Load("Book1.xml") Dim CellNode As Xml.XmlNodeList = x.DocumentElement.ChildNodes M...more >>

InnerXML and InnerText BOTH don't work right
Posted by kben at 4/20/2005 2:36:56 PM
I'm trying to get some text into an XMLElement that may or may not contain markup, and it may or may not contain characters that need escaping. I want the special characters escaped, but I want to preserve the markup. This is so a user can enter some text with (xml compatible) HTML tags and hav...more >>

Problem with XMLTextReader
Posted by prasad at 4/20/2005 12:00:00 AM
Hi, I am using XMLTextReader class to read the xml files. In some cases xml declaration tag might start after space/tab charecters. These kind of files are supported by the browsers and xml dom's but the xmltextreader's are not supporting to read this kind of files. Using XMLTextRea...more >>

Problem with calling .Net Web Service. XML provided. Anyone help?
Posted by windsurfing_stew NO[at]SPAM yahoo.com.au at 4/19/2005 11:25:33 PM
Hi, I'm hoping that someone will be able to help out with a problem we are having. We have a web service built in .Net 1.1. We are trying to call it from PHP4 using the NuSOAP add on. It seems the SOAP it is sending as the request isn't what the web service is looking for. Here is what m...more >>

soap serialisation to text
Posted by BrentonMCA at 4/19/2005 9:44:01 PM
I want to be able to serialise an object and then pass the serialisation text as a string to a Web service without serialising to a file first. I also want to be able to deserialise from the text without using a file. How can I do these? Brenton...more >>

Strange question: Add same nodes to XmlDocument
Posted by Marco Rizzi at 4/19/2005 7:48:02 AM
Hi all, i'm trying to add same node to XmlDocument. This is Xml that I want to create: <TableColumns> <TableColumn><Width>1.5in</Width></TableColumn> <TableColumn><Width>1.5in</Width></TableColumn> <TableColumn><Width>1.5in</Width></TableColumn> <TableColumn><Width>1.5in</Width></TableColumn>...more >>

Webservice from XSD
Posted by jacobs.j NO[at]SPAM pandora.be at 4/19/2005 1:04:11 AM
Hello, recently I have been assigned the task to upgrade an application. This application communicated with a 3rd party through mail boxes. Now this 3rd party wants to upgrade to using webservice requests, and so we have to upgrade too. The problem is 1) I have very limited knowledge of ...more >>

fastest way to ReadXmlSchema, ReadXml and WriteXml
Posted by DraguVaso at 4/19/2005 12:00:00 AM
Hi, I should use XML to synchronize the data from different (VB.NET) applications, and I was just wondering which Overloads of these functions ( ReadXmlSchema, ReadXml and WriteXml) goes the fastest? I don't think the ReadXMLSchema would give a lot of difference, but maybe the overlaods of Re...more >>

SelectSingleNode and Namespace
Posted by Jonathan at 4/18/2005 12:00:00 AM
Hi, I use a XML-Doc with a Namespace like the following example: <HomedResources = xmlns=3Dhttp://schemas.microsoft.com/RtcServer/2002/11/dbimpexp = Version=3D"3"> <HomedResource UserAtHost=3D"PBoul@team.de" Enabled=3D"1" = VersionPermission=3D"10" =20 VersionContac...more >>

Validation fails when mixing XSD and DTD
Posted by ben at 4/15/2005 1:02:48 PM
When running the code below the validation fails when the first line of my xml contains <legalEnvelope version="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > If I change this line to <legalEnvelope version="1.1"> It validated...more >>


DevelopmentNow Blog