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 2006

Filter by week: 1 2 3 4 5

XmlTextReader and <node> </node>
Posted by David Thielen at 4/30/2006 3:53:01 PM
Hi; I have a node where it is "<w:t> </w:t>" and what I get from XmlTextReader is Element, SignificantWhitespace, EndElement instead of Element, Text, EndElement. Question 1 is why? The text of that node is a space. Question 2 is how do I handle this. Do I watch for a SignificantWhitesp...more >>


xmlSchemaSet compile and xs:import error
Posted by sachinvyas NO[at]SPAM gmail.com at 4/29/2006 8:56:23 AM
Hi, I have following schema saved in new.xsd <?xml version="1.0" encoding="utf-8"?> <xs:schema targetNamespace="http://www.smpte-ra.org/schemas/429.7/2006/CPL" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:cpl="http://www.smpte-ra.org/sche...more >>

XMLHttpRequest in .NET
Posted by Chakravarthy at 4/29/2006 12:24:01 AM
Is there any class or wrapper or support in .NET of any version for Microsoft.XML components. XMLHttpRequest is an object from MSXML component. If i'm not mistaken MSXML is designed preior to .NET. Is there any related objects in .NET namespaces? One of our client exposed an XMLInterface ...more >>

Is it possible to convert any given XML into Class?
Posted by Chakravarthy at 4/29/2006 12:19:01 AM
Given an XML stream as below, is there any possibility to convert the same into any treditional class style with . (dots) as seperator of the nodes of the xml file... for instance bank.code.tostring() should reslut me "5070" and bank.description.tostring() should result "ICICI - Banga...more >>

Mapping a big xml-file to relational database
Posted by A. Nonym at 4/28/2006 8:18:13 PM
Hi, everyone! in the lab couse this semester we are asked to transfer a big xml file (more than 300MB) with DTD into a relational database. Any ideas how we can do it effenciently? Thank you and best wishes, Nonym...more >>

"Illegal characters in path" with XmlReader of .Net 1.1
Posted by Eckhard Schwabe at 4/28/2006 6:53:27 PM
I only found one post on Google where someone mentions the same problem with a DataSet: XmlDataReader in .Net 1.1 can not read XML files from a path which contains "%10" or "%3f". code to reproduce: string filename = "%10.xml"; //XML file with this name is existing XmlReader reader = n...more >>

XML Serialization of ArrayList causes extra nodes
Posted by dfontanesi NO[at]SPAM gmail.com at 4/28/2006 12:35:07 PM
I'm trying to serialize a class that contains an ArrayList...something like this: [Serializable] public class Units { private ArrayList _units; private string _description; [XmlArray(ElementName="units")] [XmlArrayItem("unit", typeof(unit))] public ArrayList units { ge...more >>

DataSet changes schema of XML file
Posted by MaLec at 4/28/2006 6:58:02 AM
I’d like to use the DataSet as the container for the XML files conforming to some schema. The problem is, that the operation of reading the XML file into the DataSet having its schema and then writing it back to the file makes it invalid, not obeying rules of this schema. Here is the simp...more >>



Question about output XML stream containing several XML instance documents
Posted by aboutjav.com NO[at]SPAM gmail.com at 4/28/2006 5:10:04 AM
Hi, I am writing an application which takes an XML input stream. Can the XML input stream contain 1 or more XML document information? If so, I can write to an XML output stream and return multiple XML document information back? Am I correct to assume this? Is there some consideration to lo...more >>

CreateElement and xmlns empty attribute
Posted by Fede at 4/28/2006 12:00:00 AM
Hi everybody, in vb.net I have this code: ...... myNode= XmlDoc.CreateElement("aNode") myAttribute = XmlDoc.CreateAttribute("xlink", "href", "http://www.w3.org/1999/xlink") myAttribute.Value ="foo" myNode.Attributes.Append(myAttribute) ...... Purtroppo quello che ottengo è: <aNod...more >>

Resource Leak from XslCompiledTransform
Posted by W. Jordan at 4/27/2006 5:57:18 PM
Hello there, Are there anybody who is using the XslCompiledTransform that comes with .net framework, which was said to be a replacement of the XslTransform class? I found that the class has some issues when the xsl file contains scripts. The XslCompiledTransform uses the CodeDom to comp...more >>

choice Element and GetXML method of DataSet
Posted by Ganesh Muthuvelu at 4/27/2006 4:15:01 PM
Hello, I have a schema that contains two "choice" elements, say "F1" and "F2" - meaning either F1 or F2 can be present but not both. I loaded this schema into a dataset, which created two columns in the datatable "F1" and "F2". Now, I load the dataset with a value for F1 and not for F2. Whe...more >>

XPath get the max value
Posted by beachboy at 4/27/2006 4:08:45 PM
can we get the max value of element from xpath e.g: Xpath Query Expression: /Books/Book[@id='3'] to select XMLNode which id is "3" Can I use Xpath to get the MAX Book id? Thanks in advanced. ...more >>

xsd enumeration
Posted by Davidoff at 4/27/2006 1:46:34 PM
Hi, I parse an XML file with a XSD schema. One XmlNode has an attribute whose type is a restriction of xs:string : <xs:simpleType name="stypeDay"> <xs:restriction base="xs:string"> <xs:enumeration value="Mon"/> <xs:enumeration value="Tue"/> <xs:enumeration value="Wed"/> <xs:enum...more >>

xmlhttprequest
Posted by vimalathithan NO[at]SPAM gmail.com at 4/27/2006 9:58:23 AM
Can some body write a simple example for xmlhttprequest ?? I am only able to find the client side coding ,but not the server side coding.... it would be nice to have a complete code ( both client side and server side .) thanks Vimal ...more >>

XML Writer Hex "00" or "."
Posted by Zach.Baier at 4/27/2006 6:14:01 AM
I have an document created with the XML writer that is having issues when loaded to a mainframe due to the fact the it is inserting a "." or "00" between each carachter when viewed as hex. Any ideas why or how to get rid of it?...more >>

proxy authentication
Posted by Mr. Ali Hasan at 4/27/2006 6:00:02 AM
There's a problem in my application that calls a remote web service's method, when it tries to connect to the webservice it displays this error: "The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the...more >>

XMLHTTP in .NET
Posted by Steve at 4/26/2006 10:38:02 AM
Hi! I need use the classic XMLHTTP, but in .net. Now I'm using the COM component, but I like use a native class from the framework. This is the code, very simple, that I use. How I do that in .net? Thanks!!! Dim httpOb As MSXML2.XMLHTTP httpOb = New MSXML2.XMLHTTP httpOb.open("POST", "http...more >>

XmlSerializer produces different results in debug and release buil
Posted by Dan Maharry at 4/26/2006 5:01:01 AM
A few weeks ago, I upgraded an XML server of ours to .NET 2.0. All went fine. Then last week, I decided to remove all obsolete calls from the app and sign each project in the solution in the .NET 2 way so that the app compiled with no warnings. This built fine but we noticed that server was d...more >>

unique or distinct count from xml
Posted by bhu at 4/25/2006 9:27:57 PM
How to get a unique count from a xml <Orders> <Order ID="1111" Amount="200"></Order> <Order ID= "2222" Amount="10"></Order> <Order ID="3333" Amount="5"></Order> <Order ID="1111" Amount="20"></Order> </Orders> The result should be 3 unique count and the 4 Order Id counts. How can i get usi...more >>

how do I Serialize data containing & in it
Posted by jamie at 4/25/2006 3:01:06 PM
My data may contain the characters < ,&, and > The system I'm sending them to wants them to be changed to &#60; &#38; and &#62; respectivily. So I had gone into the data and was changing them over in the code. However when they hit the serializer I end up with &amp;#60; &amp;#38; and ...more >>

Update list of elements
Posted by Mirek Endys at 4/25/2006 1:51:24 PM
I have serialized list of my object in a xml file. What is the best way to update only one object and save it back into the xml file. Do I have to load full list, update one item and save the list into the file? Or is there way how to update only one element (one object) ??? Thanks Mire...more >>

XSD Restrictions help please
Posted by AdamH at 4/25/2006 7:52:02 AM
Greetings all. Is it possible to create a schema to enforce the following issue. If the value for required Attribute A within Element E has an enumerated value of ‘myType’ then element E also needs to have Attribute B. Xml example below E=Item A=type B=len <Items> <Item type=â€...more >>

XSLT: Creating anchors from outer XML files
Posted by Mario Vázquez at 4/24/2006 10:29:54 PM
Hi, I'm trying to put the links (href attribute of the <a> element) out of my XSLT files, in a XML file, and read it from the stylesheet. I suppose that I have to use the document() function to link to the XML file containing the URLs, but I don't know how to do it. I've tried something like ...more >>

XML deserialization to Dataset and custom object
Posted by clickbidur NO[at]SPAM gmail.com at 4/23/2006 11:30:20 PM
I have a xml document as follows <Variables> <Email>abc@xyz.com</Email> <Status>ENABLED</Status> <UserDetails ID="21"> <Name> <Title>Mr.</Title> <FName>John</FName> <MName>M</MName> <LName>Dahl</LName> </Name> <Gender>Femal...more >>

"xsi:type" from Dataset.GetXML
Posted by Ganesh Muthuvelu at 4/22/2006 12:54:01 PM
Hello, Is it possible to make the dataset give the "xsi:type" data as well?. I need result from the dataset.GetXML method something like this for the column "a": <a xsi:type="int">12</a> Is it possible?. I would appreciate any pointers/code help. Thanks....more >>

Add XMLNodeList to new XMLDocument
Posted by GCeaser NO[at]SPAM aol.com at 4/21/2006 8:38:23 AM
All, I have a very large XML document that contains two types of elements. I want to select all the elements of each type and place them in separate XML documents. This is what I have so far: 'Add the Metis namespace so the querys will work lobj_namespaceMana...more >>

How to create element in namespace
Posted by FabrizioSW NO[at]SPAM gmail.com at 4/21/2006 3:07:17 AM
Hi all i've to create a xml doc like this <?xml version="1.0" encoding="UTF-8"?> <Main xmlns:x="http://www.w3.org/1999/XML/xinclude"> <x:include href="one.xml"/> <x:include href="two.xml"/> <x:include href="more.xml"/> </Main> i tried to use xmlnamespacemanager and also to declare the nam...more >>

XmlElement Move up & Down
Posted by beachboy at 4/21/2006 12:00:00 AM
How I can Move up or down XmlElement? Please advise. Thanks in advanced. ...more >>

Problem getting node
Posted by John Wilhelm at 4/20/2006 8:44:05 PM
I'm having a problem in by VB.net 2005 application. When i try to get a node from my app.config file the node come back with "nothing". The xmldocment loads OK, but I can't retrive a node. The app.config file is listed below and the code is listed below that, the line with "-->>" is where i tr...more >>

get rid of blank namespaces
Posted by Lore Leunoeg at 4/20/2006 12:03:26 AM
Hello I'm using c# XmlDocument class to add new XHTML-Nodes to my website. Unfortunately XmlDocument always adds an unwanted empty namespace attribute xmlns="" to every new Element. These empty namespace attributes cause that the elements are'nt found any more when I'm reparsing the document....more >>

Where to store schemas and stylesheets?
Posted by Mr Flibble at 4/20/2006 12:00:00 AM
What is the best, or better RECOMMENDED, way of containing any schema or stylesheet that is needed by an application, in a situation where you are not sure any other type of access will be allowed. such as file:// or http://. So far I've put all the XML within a resource file but I see tha...more >>

replace invalid xml characters
Posted by John A Grandy at 4/19/2006 3:52:04 PM
I know that System.Security.SecurityElement.Escape() will replace invalid xml chars with valid equivalent ... But is there another method to accomplish same that is "closer to home" ? ...more >>

"the uri scheme is not valid" error when working with XslTransform load method
Posted by Mr Flibble at 4/19/2006 12:58:00 PM
Hi All I've decided to put my stylesheets in a base64 .resource file for deployment and versioning reasons. I dont know if it's a great idea to do this but I couldn't think of another way of doing this other than making them available via www which may or may not be accessible (so this is a ...more >>

RSS <channel><link> element
Posted by John A Grandy at 4/19/2006 9:43:58 AM
When constructing an RSS 2.0 XML doc , should the <channel><link> element's value be 1. the url of the page the displays the content that the RSS feed describes : fox example: http://www.myecommerce.com/results.aspx/?keywords=mens+dress 2. the url of the page which generates an up-to-da...more >>

is there any limit to how long of a string SqlDataReader.GetString() can return?
Posted by Daniel at 4/18/2006 8:41:48 PM
is there any limit to how long of a string SqlDataReader.GetString() can return? ...more >>

performance difference when using XmlDocument or XmlElement.
Posted by RK at 4/18/2006 12:46:11 PM
What is the difference in performance if using XmlDocument or XmlElement as parameter in C# class method. thanks in advance. --RK ...more >>

xml file data source
Posted by Dirk at 4/18/2006 11:27:36 AM
I would like to run SELECT SQL queries against DataTable's in my DataSet which has been initialized with ReadXml. Has anyone done this? What is the connect string, provider, etc? How? ...more >>

Error Http 413: entity too large calling web service on Win2003 Sr
Posted by Pablo at 4/18/2006 7:50:02 AM
We are calling a web service running in IIS 6.0 (Windows 2003 Server) When we call a web service method to send a large xml document (2Mb) obtain an http error 413 (entity too large) We have increase the web service reception size limit to 10Mb and still fails. Is there any limitation in ...more >>

XML and & character as data
Posted by BenI at 4/17/2006 4:33:26 PM
Hello, I have a XML file using Iso 8859-1 encoding. Every time when I try to put & character as Tag's value XMLDocument Reader throws Exception. How should I code & character as an ordinary data character in XML file? Cheers! ...more >>

Storage methods
Posted by imago at 4/17/2006 11:04:58 AM
Hi, What will be the solution and explanation for the following query? Pls suggest me w/ description... You have created an ASP.Net application using C# for ABC, Inc. The application must ensure that all flight bookings can be shared and displayed quickly among all users of the application....more >>

XmlDocument: "connection was closed" exception reading local file???
Posted by Lore Leunoeg at 4/17/2006 12:01:32 AM
Hello I want to load a local file into the XmlDocument cache. But when I'm not connected to the internet I get this exeption: "The underlying connection was closed: The remote name could not be solved." Has anyone an idea how I can avoid this exception? Thank you Sincerely Lore ********...more >>

Replace all instances of an element
Posted by Yourself at 4/15/2006 4:46:34 PM
Hi, say I have the following XHTML document: <div id="Fred"> <div id="Bert"> <div id="Jim"> <p>Hello</p> <p>etc</p> </div> <div id="Bob"> <p>Goodbye</p> <img src="arg.gif" /> </div> </div> </div> Say I want to replace all <div> elements wi...more >>

RSS feed displays in IE, not in Firefox
Posted by John A Grandy at 4/14/2006 2:31:14 PM
Why would an v2.0 RSS feed that displays fine in IE 6.0.2900.2880.xpsp_sp2_gdr.050301-1519 not display in Firefox v1.5.0.1 ?????? ...more >>

XmlSerializer and DefaultValue?
Posted by Rasmus Kromann-Larsen at 4/14/2006 10:24:54 AM
Hello, I'm currently playing around with the XmlSerializer to replace my old handmade Xml parsing code, but am having a few small issues with default values and derived classes. Say we have classes A, B and C: abstract class A { protected int a_value = 1; [XmlAttribute("value"), ...more >>

Using XMLDocument to load chinese characters
Posted by Hitesh at 4/14/2006 2:02:01 AM
Hi, I am getting an error while loading a file having Chinese characters. I am using XMLDocument to parse the XML. Please let me know if you have any idea about the same Thanks...more >>

problem with element data type
Posted by kimono at 4/13/2006 7:50:29 PM
I'm using MSXML 4.0 in my application and i have a problem when i try to retrieve an attribut value with the property IXMLDOMNode::nodeTypedValue. in my XML i have the element : <MyElem x_date="2006-03-16T12:30:30" x_int="6"/> If i attach an XDR document : <AttributeType name="x_date" ...more >>

Xml Schema for Business Objects.
Posted by Ashish at 4/13/2006 5:11:41 PM
Is it possible to get the xml schema of a custom business object, and i am just interested in getting that particular complex type :) for exaample if i have a clas like public class Person{ private string fname; private string lname; public string FirstName { get { return fname...more >>

NewDataSet root element annoyance
Posted by Michael Kolias at 4/13/2006 3:19:35 PM
How can I change the root element of a dataset written to an xml file. Even though I specify the name of the dataset both in the constructor and by calling its property the root element of the xml file is always 'NewDataSet' Any help would appreciated. *************************************...more >>

ASP.NET 2.0 Tree Control and Navigation Controls - General Question
Posted by davidwank NO[at]SPAM gmail.com at 4/13/2006 2:54:02 PM
Hi. Why is it practical to have the ASP.NET navigation controls based on XML? I would love to just use databinding and then be able to dynamically update the navgiation menu (e.g. for a product list). I tried to use a dropdownlist with hyperlinks for navigation (not the main navigation --...more >>


DevelopmentNow Blog