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

Filter by week: 1 2 3 4 5

Passing Credentials
Posted by avargheese NO[at]SPAM comops.com.au at 11/30/2003 9:35:08 PM
Hi, I am trying to retrieve XML created by ASP pages on different servers and display them on a single ASP.Net page. I was planning to use the XMLDocument and XMLResolver objects like below: xmlResolver.Credentials = CredentialCache.DefaultCredentials xmlDoc = New XmlDocument xmlDoc.XmlRe...more >>


How to determine exact location of error...
Posted by Paul Colton at 11/30/2003 9:10:31 AM
how can my code determine the exact line and column of an XmlNode if I need to generate and error for that node? ...more >>

html to xhtml
Posted by Sharon . at 11/30/2003 8:14:02 AM
Hi everyone, Is there any clean way to convert multiple HTML pages to XHTML/XML format (pretty print & tag balancing) I used tidy library but its output is incorrect, Is there any solution given by .Net api ? Or using the .net XML library? I will be grateful to get any kind of idea/ ...more >>

Whitespace in app.config
Posted by Steve James at 11/29/2003 4:47:16 PM
Has anyone noticed that the xml in an app.config file is treated differently than in a web.confg, or is it just me? I have a component that parses and processes node fragments that are taken from a .config file. When used in a .NET web app ( web.config ) the component works fine. However, I fo...more >>

Tools for comparing Xml documents
Posted by Donal McWeeney at 11/28/2003 4:51:20 PM
Hi, Does anyone know any good tools for performing a side by side comparison of 2 xml documents on an element by element and attribute by attribute basis. Thanks Donal ...more >>

XmlDocument save and end tag formatting
Posted by Donal McWeeney at 11/28/2003 4:50:02 PM
Hi, I am doing some work with the XmlDocument class for loading and saving files and I notice that the save call is writing out the empty element in the following format <element /> - is this formatting possible to control? ie. get it to write out <element></element>. Thanks Donal ...more >>

How to XMLSerialize Collection Class
Posted by hman at 11/28/2003 3:38:09 PM
Hi, I have a collection class where I've implemeneted the ICollection Interface. Here is a small code segment. public class PageList : ICollection, IComparer, IEnumerable, IList { protected ArrayList _pages; public PageList() { _pages = new ArrayList(); } #regi...more >>

XML clone/possible encoding/byte order mark problem
Posted by Donal McWeeney at 11/28/2003 12:20:58 PM
Hi, I think I may have a slight encoding problem with what I am doing. I have a test console app that takes an xml document and splits it into a number of smaller xml documents. First thing I do is clone the input document. At the moment I am just saving this document and when I do a wind...more >>



Disabling MSIE XSLT processing
Posted by jwalton NO[at]SPAM cix.compulink.co.uk at 11/28/2003 8:46:42 AM
Sorry if slightly off-topic, but I have asked / researched many other places already, maybe someone here can help? MSIE has a useful (for users applications) feature of performing XSLT transformations if a stylesheet is specified in the XML file, e.g., within the data file: <?xml versio...more >>

Flat Schema validation
Posted by Anders Nilsson at 11/27/2003 2:59:48 PM
I'd like to know if there is support in .NET to somehow "flatten" a nested XML schema. Here is the situation: Currently I have code that can validate nested XML against a schema. The XML is generated by using a DataSet. Now I want to generate the XML as non-nested from the DataSet by settin...more >>

How to get Multiple Recordsets from StoredProc?
Posted by Keith Chadwick at 11/27/2003 11:14:54 AM
I prefer to use stored procedures over having sql statements sitting in my ..NET code. My problem is I can not figure out how get .NET to understand there are multiple recordsets coming back. Each of the recordsets is returning xml data and if called individually would be called as : Dim m...more >>

System.Xml.XmlException: hexadecimal value is an invalid character
Posted by Todd at 11/27/2003 8:41:43 AM
Our ASP.NET (C#) application accepts form entry and saves=20 inputed data in XML. We are finding that users are sometimes cutting and=20 pasting special characters (from MS Word) into these=20 forms. The data is saved successfuly, but when the XML is=20 later read the following error is enco...more >>

xsd.exe and the resulting cs classes.
Posted by Iain at 11/26/2003 7:46:06 PM
I'm embarking on a c# based project in which I would like to make use of a lot of XML including database access and using hte xml and .net tools as a coding shortcut. What I'm trying to understand at the moment is how to use xsd.exe and result ..cs files to mange the xml. First question. ...more >>

Converting a DTD into csharp objects
Posted by andy NO[at]SPAM encomia.com at 11/26/2003 6:49:35 PM
Is there a quick and easy way to convert a DTD into C# objects / interfaces? I realize this can be done with schema, but I have been given the DTD's as a requirement. Thank you....more >>

XSLTransformation Question
Posted by Loren Dummer at 11/26/2003 3:08:25 PM
I have an XSLTransformation question I hope someone can help me with. I am trying to program this using VB.Net. I currently have a VB6.0 application which I am converting into VB.Net. The last piece of code I have to convert is an XML transformation. What I am trying to do is take two sting ...more >>

Transformation problems...
Posted by Andrew Connell at 11/26/2003 1:26:41 PM
I have an XML document and an XSLT transformation sheet. My first issue = is that my XML file won't load into the XPathDocument object. However, = when I use an obsolete transformation method where I specify the XML = input file and output file, I get the same error. The error is: An unhand...more >>

Webservice to Windows service
Posted by Carelo at 11/25/2003 9:16:37 PM
Hi Is it possible to initiate a windows service from a webservice (possible create a web service listener??) Any ideas or examples? Thanks Carelo...more >>

Odd behavior on xsl:include / xsl:import - Figure this one out?
Posted by Keith Chadwick at 11/25/2003 8:57:55 PM
I have been running some tests with regards to xsl:include and xsl:import with the same results on both and I am wondering if someone can explain this behavior to me! First off the xslt file is being loaded as in dim myXSLT as new XslTransform() myXSLT.load("scripts/clnt.home.body.xslt") ...more >>

XPath queries with Namespaces
Posted by Wells Caughey at 11/25/2003 5:21:03 PM
I am having trouble writing an XPath query that deals with namespaces. I've see the documentation that says that I have to use a XmlNamespaceManager and qualify my queries such that they match up with the definitions added to the XmlNamespacemanager, but I want to write a query that pulls all of...more >>

Problem inserting a node with a namespace
Posted by jwalton NO[at]SPAM cix.compulink.co.uk at 11/25/2003 4:45:16 PM
This is so silly I must be doing something wrong! I need to insert (using VB.NET) a new node in a DOM; node has a namespace. I first create, under programme, basic structure, starting thus: <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syn...more >>

ASP.NET Virtual Directories (xsl:import)(appSettings) - Help?
Posted by Keith Chadwick at 11/25/2003 3:52:26 PM
I have 3 individual ASP.NET applications that make up the overall web application. Each of these websites share some common styles, scripts and xslt files. These are all placed in a single directory structure then in IIS each .NET application has the virtual directory called shared created. ...more >>

XML EUROPE 2004 -- CALL FOR PAPERS
Posted by marionell NO[at]SPAM aol.com at 11/25/2003 2:16:03 PM
"Documenting the Future" XML Europe takes place 18-21 April at the RAI Centre in Amsterdam. XML Europe 2004 provides the premier European forum for the XML community, spanning the worlds of electronic business, publishing, the Internet, e-government, software and open standards development. T...more >>

Create an ASP.NET Web Service
Posted by BStuart at 11/24/2003 7:48:10 PM
Not sure if this is the correct group to be posting this at but here goes. I am in the MSDN Library and doing the step-by-step instructions on the "Walkthrough: Creating a Distributed Application" and I appear to be a lost at step 5 in the section titled "To create an ASP.NET Web Service ...more >>

Resolving XML Schema documents on-the-fly?
Posted by Lee Chapman at 11/24/2003 6:19:46 PM
Has anyone successfully been able to use an XmlValidatingReader (Framework 1.1) to validate documents against XML Schemas that haven't been added to the XmlValidatingReader.Schemas collection first? e.g. I have the following XML document, and I want to validate it. <doc xmlns="my-first-namsp...more >>

XML Serialisation problem
Posted by Patrick De Block at 11/24/2003 3:12:38 PM
Hi, We are serializing objects to an xmlfile that is validated against a schema. For this schema the elements are serialized in the wrong sequence. Does anyone know how I can let the serializer sequence the object members in the order required by the schema? thx Patrick De block ...more >>

IXsltContextFunction.Invoke
Posted by Colin Savage at 11/24/2003 12:02:41 PM
When creating a function in xpath with IXsltContextFunction, if the return type is nodeset, what do you actually return from the Invoke function? A XmlNodeList? XPathNodeIterator? public System.Xml.XPath.XPathResultType ReturnType {get{ return System.Xml.XPath.XPathResultType.NodeSet; }}...more >>

Get attribute from Xml file
Posted by shearne NO[at]SPAM tssg.org at 11/24/2003 4:30:48 AM
I'm looking to get noNamespaceSchemaLocation attribute from the following Xml file. Whats the most efficient way to do this using the XmlDocument class in c#? <?xml version="1.0"?> <IPDRDoc xmlns="http://www.ipdr.org/namespaces/ipdr" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs...more >>

Placing dataset into XPathDocument
Posted by Keith Chadwick at 11/23/2003 5:13:22 PM
I have a merged dataset that contains xml read from SQL Server. I need to place the data into an XPathDocument. I can do the following: mydataset.writeXML("mydata.xml") dim xpdoc as new XPathDocument("mydata.xml") Problem is it seem rather redundent to write data currently in memory to ...more >>

Support W3C RDF?
Posted by Maurice at 11/23/2003 3:32:36 PM
Hi, Does anybody know whether Microsoft's Visual Studio supports the W3C Resource Description Framework concept? If so, how? regards, Maurice...more >>

how to write some xml into huge xml file into speceific location???
Posted by Xenia at 11/23/2003 2:09:03 PM
Hello! Is anyone can help me to figure out how to write some xml into huge xml file into speceific location??? Say, i have a file about 139 Mb and i need to write some data (xml) into it, but in speceific location (specified by XPath for example). i have tryed used MSXML dom for it, but its...more >>

Auto Increment in Datasets
Posted by VJ at 11/23/2003 1:09:42 PM
I have a dataset with a AutoIncrement column.. I write this to a XML file and read it back..to a Dataset.. The auto increment works perfectly every time. It picks up were it left...were does it pick up the last value from?.. I mean I thought it uses the max value + 1 logic for existing rows.. not...more >>

Transform XML string using XSL file (v1.1)
Posted by spam NO[at]SPAM aconnell.com at 11/23/2003 12:05:26 PM
Having fits transforming an XML string using an XSL file. In the 1.1 version of the framework, I see that the XmlResolver is heavily used in the XslTransform class. However, that looks like I am only supposed to use that only when you have an xml ~file~... not an XML string (my XML is coming f...more >>

Reading XML into a DataReader?
Posted by CN at 11/22/2003 10:28:00 AM
Can anyone tell me how to read an XML file into a SqlDataReader? I can pull it into a dataset, but want to have the same formatting capabilities that I have with a DataReader. Thanks....more >>

Re: MSXML5: where to get the redistributables?
Posted by Andy Chau at 11/22/2003 10:24:25 AM
I am using the msxml5.dll that comes with Office 2003. Is there a redistributables of msxml5.dll just like msxml4? If so, how do I get it? Thanks Andy ...more >>

insert xml data into sql server?
Posted by maltchev at 11/21/2003 11:55:44 PM
i need to insert data from an xml file into sql server table. the xml file contains only one record. how to insert the data? how to map the names of the fields in the xml file and the table? thank you in advance. ...more >>

From n xmlReader to single XPathDocument?
Posted by Keith Chadwick at 11/21/2003 8:14:50 PM
My problem is this. I have to create several xmlReader objects each retrieving 'for xml' formatted sql server data. I then need to peice them together into a single document and place them into a single XPathDocument which is then transformed throughout the web site with different XslTransforma...more >>

Problems with Deserialization...
Posted by linus NO[at]SPAM technologist.com at 11/21/2003 6:17:04 PM
Hi, I'm having problems with some very simple deserialization code and would appreciate it very much if I could get some help here. The following is the code: ========================================================= XmlReader reader = new XmlTextReader("test.xml"); XmlValidating...more >>

Trying to create completely server side, document merge
Posted by Richard Fritzler at 11/21/2003 5:42:15 PM
I was given the task of designing a complete web based document prep system. In simplest terms (using a msword explanation) create a database of merge fields, and a library of templates. Allow the webuser to select the template, merge his DB record, and produce a formatted document that ca...more >>

xpath help - single quotes
Posted by Joe Gass at 11/21/2003 4:12:54 PM
I have an xml doc <sections> <section> <title>entry image</title> </section> <section> <title>22'2</title> </section> </sections> I want to check for duplicate nodes before I add I'm using this vb.net code (The code is fine but the xpath isn't working with titles with si...more >>

Serializing "Type" class
Posted by Maersa at 11/21/2003 3:42:39 PM
Hi All, Was anybody able to serialize the "Type" class properly using XmlSerializer().... Want to serialize and deserialze the Type in a string form, but can this be done ? myobj.Type = typeof(System.String) as <type>System.String</type> thanks a ton. ...more >>

XmlSerializer question...
Posted by Maersa at 11/21/2003 3:36:01 PM
Hi All, When using XmlSerializer is there anyway of keeping "xsi", "xsd" namespaces and PI appearing in the xml file ? <?xml version="1.0"?> <myClass xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="Test" Visible="false" /> Just w...more >>

Using XML as a Database
Posted by MT at 11/21/2003 2:53:51 PM
I have a gigantic XML file which has the following structure: <root> <header> </header> <entry index="1">asdf</entry> <entry index="2">fdfsa</entry> ........ </root> Now, I have a simple XSD defined that automatically generates a Dataset for me. I use the MyDatabase....more >>

SqlXMLCommand Help?
Posted by Keith Chadwick at 11/21/2003 1:50:35 PM
I noticed an earlier post, Multiple External References in Transform - = Background to the problem - Long Post, where the poster referenced an = object entitled SqlXmlCommand. I am unable to find this object?=20 My requirement is thus. Read several tables from sql server 2000 db = with the a...more >>

User navigation system with XML file
Posted by dkode NO[at]SPAM cfl.rr.com at 11/21/2003 1:23:36 PM
Here is the XML file i am using right now, note: there is only an "Administrator" group right now, in the end there will be 6 or 7 different groups of navigation levels <?xml version="1.0" encoding="utf-8" ?> <Nav Role="Administrator"> <Button id="EmployeeManagement" label="Employee Managem...more >>

Strange behaviour reading XML into DataSet
Posted by billybobc1210 NO[at]SPAM yahoo.com at 11/21/2003 8:33:10 AM
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. I'm getting some strange results depending the input XML file I use. I was wondering if somebody c...more >>

Where to host schemas?
Posted by Raghu at 11/20/2003 11:38:56 PM
Is it necessary for me host schemas in some webserver? At present, I use localhost but still the xml instance cannot find its schema. Any help please?...more >>

newbie: how to check a string of XML against a DTD file...
Posted by Daniel Bass at 11/20/2003 4:47:14 PM
given a string of text, how can i test whether it has integrity when verified with a DTD file on disk, as well as checking it's even a valid XML formatted string? Is this possible to do with the .Microsoft .Net DOM? Thanks! =o) Daniel. ...more >>

Transformations appear to be CPU intensive
Posted by Keith Chadwick at 11/20/2003 2:00:37 AM
I am migrating an existing ASP app that uses XSLT transformations to = render against a language XML doc for localization and other items. = When I moved this logic into .NET and the native xml and xsl objects I = noticed a significant processor hit on the web machine. The xml file is roughly...more >>

xml validation against schema
Posted by eXavier at 11/19/2003 6:09:01 PM
Hi, I need to validate XML fragment against XSD schema. The main issue is that xml fragment does not contain refrence to schema, but I want to force the validation against the schema I have in XmlSchema object. The scenario is as follows: I have string fragment; containing xml fragment,...more >>

Returning the XPath for a Given Node
Posted by David Williams at 11/19/2003 1:46:15 PM
Is there an existing method that will return the XPath that would give the current node? In other words, using the following XML document: <root> <node value="1"/> <node value="2"/> <--- assume is current node <node value="3"/> </root> I want something that would return ...more >>


DevelopmentNow Blog