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 2005

Filter by week: 1 2 3 4 5

Encoding troubles
Posted by Jeroen De Brabander at 9/30/2005 3:34:16 PM
Hi, I have problems with XML Encoding concerning special characters like é and è. I have set the processing instruction to UTF-16 and the file is saved as UTF-16. The XML is valid and well-formed, this isn't the problem. I have 2 machines running exactly the same application (code is ide...more >>


No XmlNodeType for an EmptyElement with Attribute
Posted by dickster at 9/30/2005 9:11:22 AM
I have a MemoryStream of XML in which I wish to strip out the namespaces and some other attributes and then write this revised Stream to a new MemoryStream Everything works grand in the code below expect when myReader comes across an element like: <xxx id="1"/> i.e. an empty element with att...more >>

XSL and WebControls like datagrid
Posted by Madhuri Mittal at 9/30/2005 8:33:05 AM
Hi, I want to use XML and XSLT to generate HTML in my asp.net application. I want to be able to generate the asp.net datagrid control with all its powerfuls features by this means as well as all other controls including some usercontrols on my page. Is it possible to do that as well as any ...more >>

need to remove root element when parsing xml doc or storing in database
Posted by fizzy at 9/30/2005 3:48:15 AM
i am fetching an xml document with the following structure: <?xml version="1.0" encoding="UTF-8"?> <DTCResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:/ows/aws/1.2 http://www.overture.com/schema/dtc/1.2/dtc_response.xsd" xmlns="urn:/ows/aws/1.2" success="t...more >>

How can do join two XmlDocuments?
Posted by How can do join two XmlDocuments? at 9/29/2005 1:22:02 PM
Hi, Sorry my english, I'm brazilian. I'v two objects serializeds, I want join it. Somebody help me?...more >>

Looking for a better way to handle errors
Posted by JJ at 9/29/2005 8:57:48 AM
Hi all, Im looking for a better way to handle the exeption if you try to find a node that doesnt exists? It usualy breaks in a object exeption. Now i have to use the try en catch option.. Any other ideas??? thanks in advance greeting jj...more >>

xsd:maxLength
Posted by Sudhesh at 9/29/2005 7:47:07 AM
Hi, I understand I can write an XSD file like... <xs:attribute name = "value1" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:attribute> I'm writing a class heira...more >>

List of pointers to XML nodes
Posted by Guy at 9/29/2005 3:16:03 AM
Hi, I have an XML file which its content can't be altered as a source. My solution should be able to produce some kind of pointers (in a seperate file) to specific nodes (or even attributes\values) in the source XML file. The source file contains many different namespaces (along with def...more >>



How to load an XmlTextReader from stream
Posted by Brad Wood
I have an XML document in a file (e:\bobo.xml) saved using unicode encoding with declaration: <?xml version="1.0" encoding="UTF-16"?> I can load that file into an XmlTextReader and read it just fine: XmlTextReader reader = new XmlTextReader( @"e:\bobo.xml" ); reader.Read(); But this fails...more >>

XML Instance from XML Schema
Posted by EAI at 9/28/2005 4:01:07 PM
How do I create an instance of XML from XML Schema (xsd to be specific) and instantiate its elements in C#? ...more >>

Connection error on Document Load
Posted by Harry Keck at 9/28/2005 1:53:08 PM
I am calling XmlDocument.Load with a url string, but get the message "The underlying connection was closed: Unable to connect to the remote server." When I put the exact same URL in IE, the xml file comes up just fine. Also, we only get this error when running from some machines, not all. D...more >>

XmlTextReader URL Limitation???
Posted by Q at 9/28/2005 1:25:45 PM
I am feeding XmlTextReader a URL that returns the XML that then gets parsed. The URL forms a query that affects how much data is returned in XML but not the format of the data. The problem is that when the URL string exceeds about 163 characters (strange number) XmlTextReader seems to choke on...more >>

XmlWritter to String
Posted by John at 9/28/2005 9:27:43 AM
I can't find any solution to store a new created XML with XmlWriter to String. It requires a Stream Thanks John ...more >>

Rookie question : Writing edited form data (gridview) to XML
Posted by theKirk at 9/27/2005 3:08:04 PM
using Visual Studio 2005 C# ASP.NET I know there has to be a simple way to do this....I want to use C# in a code behind for aspx. Populate a GridView from an xml file Add Fields to the GridView to allow entry of quantity and Y/N switch for each row Write contents of GridView to n...more >>

Writing formatted XML
Posted by Dan at 9/27/2005 6:31:03 AM
How would I write an XmlDocument to a file so that each node is properly indented and followed by a carriage return? Thanks...Dan...more >>

Zero-length MXL files
Posted by W. Pickett at 9/27/2005 12:00:00 AM
Hi, I'm attempting to understand an application I may one day "inherit" in ASP.NET and Flash. I've been searching but can't find out the answer to this, so if you have a pointer or want to explain I'd really appreciate it, thanks. The site has hundreds of empty xml files in directories in d...more >>

XmlDocument
Posted by Andrew Robinson at 9/26/2005 2:19:30 PM
I am attempting to create an XmlDocument object but keep getting "Object reference not set to an instance of an object" exceptions when I try to add elements or attributes. I don't have an existing document to load but want to create one from scratch. How can I do this? Just a simple exa...more >>

Avoiding IE warning msgs on doc.Load(sPath) intranet
Posted by kermit at 9/26/2005 8:08:03 AM
I have several ASP.NET pages that run on an intranet with an IIS server. Several of them use XML.DOM to open an XML file. doc.Load(sPath). When the is command to open the file is up doc.Load(sPath) IE6 post a warning message "This page is accessing information that is not under its control....more >>

Using XML & ASP.NET (or what do I *need* to know?)
Posted by Karl at 9/26/2005 5:55:29 AM
I'm trying to learn an acceptable way to marshal complex data between an ASP.NET web service and an ASP.NET web client. Initially, it will be enough for the client to display the data from the service, but eventually, I'll have to write a client that will allow for modification of the da...more >>

Looking for XML Schema Validator
Posted by BillyLiu007 at 9/26/2005 1:20:02 AM
Hi guys: ANyone know any free powerful xml schema validator ? -- Can You?You Can. ...more >>

SAX (Simple API for XML) and SOAP
Posted by -00Eric Clapton at 9/26/2005 12:00:00 AM
I want to know more about SAX and SOAP. Can anyone please tell me any website? Thanks. ...more >>

xpath fails : "Parameter" have special meaning ?
Posted by John A Grandy at 9/23/2005 10:50:16 PM
Is there something special in XML about the name "Parameter" ... I am not able to XPATH query for nodes named "Parameter" <Root> <Category CategoryID="1"> <Elements> <Element ElementID="1"></Element> <Element ElementID="2"></Element> <Element ElementID="3"></Element...more >>

XML Deserialization
Posted by Sujith Jagini at 9/22/2005 9:45:11 AM
Hi I am facing this strange problem, we are receiving xml documents from Siebel which I am trying to deserialize into class objects for further processing. The encoding of the document is utf-16 and siebel will post it to an asp.net page, where I retrieve it as binary and convert it into u...more >>

General Question: Attribute vs. Element
Posted by pagates at 9/22/2005 7:24:05 AM
Hi All, This is a pretty simple question, but with possibly a complex answer. I was wondering if anybody had any opinions or links for "rules" as to when to use elements and when to use attributes within XML. For a quick example, think of a file system represented by XML. Method 1: A...more >>

getting error at time of XmlSerialization
Posted by IMS.Rushikesh NO[at]SPAM gmail.com at 9/22/2005 3:29:44 AM
Hi Friends, My work is stuck up because of this unresolvable and unbelievable Error. I'm trying to Serialize my Class object using XmlSerialization. And at below line, I m getting "error File or assembly name xxxxxxx.dll, or one of its dependencies, was not found.." ///I got error at thi...more >>

Validation of anyURI
Posted by Sab at 9/22/2005 1:43:03 AM
Hi, I'm writing a rendering layer for asp.net apps that renders xdime markup. I need all URLs used in the app to be absolute or relative. Whenever I use an absolute URL, something like '/myPage/LogOut.aspx' as an attribute of type anyURI the document validation fails with the error 'attribu...more >>

Typed Dataset as description of XML database?
Posted by Soeren D. at 9/22/2005 12:50:11 AM
I have read how one can define tables, indices, relations etc. in .Net code in a way that allows you to run a off-line XML based ADO.NET, which is excactly what I need. I have also read about Typed Dataset and hoiw this definition is stored in an XSD file. I was wondering if these two te...more >>

XSL File Location
Posted by Harry Riddle at 9/21/2005 9:06:07 PM
I am trying to modify someone else's XML code and I am having problems. They hard-coded the location of an xslt file in a database and I want to make the file a part of the project. How do I reference the project file in xslt.run(string PathName) without it looking in c:\windows\system32 dir...more >>

XmlTextReader, LineNumber, and total number of lines?
Posted by SirPoonga at 9/21/2005 2:18:31 PM
Can I determine how many lines an xml file has so I can say something like "line 4 of 254"? ...more >>

Finding the annotation of an enumeration
Posted by wayne_bradney NO[at]SPAM yahoo.com at 9/21/2005 12:02:37 PM
I have the following Schema (XMLSchema1.xsd): <?xml version="1.0" encoding="utf-8" ?> <xs:schema id="XMLSchema1" targetNamespace="http://tempuri.org/XMLSchema1.xsd" elementFormDefault="qualified" xmlns="http://tempuri.org/XMLSchema1.xsd" ...more >>

VS barks at this recursive schema
Posted by n_o_s_p_a__m NO[at]SPAM mail.com at 9/21/2005 6:21:16 AM
Can some one help me out here, VS doesn't like this schema ("SubSystem is not defined"). Anyone know why? <xs:complexType name="SystemType"> <xs:sequence maxOccurs="unbounded"> <xs:choice maxOccurs="unbounded"> <xs:element minOccurs="0" maxOccurs="unbounded...more >>

Default string max. length at XML validation
Posted by Abra at 9/21/2005 4:49:37 AM
Is there any default maximal length for strings in the .NET inmplementation of XML schema validation (I used a XmlSchemaCollection in a XmlValidatingReader object) ? I am getting the following error message at the line containing a 32-character string. The xml file looks like this : .... <Xm...more >>

Is it possible to write a xsd regular expression that will force certain chars?
Posted by isrsal NO[at]SPAM gmail.com at 9/21/2005 4:49:32 AM
I need to write a regular expression in xml schema (pattern) for a type that I don't care how many characters it has(can be 0 to 500), but all characters should be of (1-9|A-Z|a-z). Is it possible? how? Thank you! ...more >>

Is it possible to use XLST to set Excel worksheet margins, scaling?
Posted by donjonnio via DotNetMonster.com at 9/20/2005 6:35:34 PM
Heres my problem: I am outputting XML from a dataset and using XSLT to format the output as HTML and the Response.ContentType = "application/vnd.ms-excel" directive to load the output as an Excel file running within the context of the browser. This works fine and the result is a nicely formatt...more >>

XSLT Performance Software
Posted by parksch2 NO[at]SPAM hotmail.com at 9/20/2005 12:34:55 PM
Does anyone know of a good tool (preferably free) to gauge how my XSLT is performing? Mainly, I would like to know where the bottle necks are and how different versions of the same style sheet are performing. Thanks in advance! ...more >>

How to get attribute names from schema objects?
Posted by Brad Wood
Using 2.0, but I think this applies to 1.1. Given an XmlSchemaElement object (retrieved from an XmlSchema object), how do I get to it's attributes? I tried this against a document that has attributes, but got nothing: foreach ( XmlSchemaAttribute attr in schema.Attributes ) { Console.W...more >>

XML Validation Problems
Posted by tlwright1414 NO[at]SPAM gmail.com at 9/20/2005 9:22:20 AM
I am not getting expected validation errors when attributes in my xml are not defined in my schema. Does anyone know if this is normal behavior? I am however getting the expected validation errors for things like 'invalid child element', etc... here's is my code... XmlSchemaCollection sch...more >>

XPath to find all nodes without children
Posted by 455 at 9/20/2005 12:00:00 AM
Hey all... I have this: <Category> <Category> <Product> <Product> </Category> <Category/> <Product/> <Product/> </Category> And I'd like some XPath syntax to return ALL Category nodes that do not have children (either Product or Category childre...more >>

how to get the number of milliseconds between two System.DateTime objects
Posted by Daniel at 9/19/2005 5:02:38 PM
how to get the number of milliseconds between two System.DateTime objects ...more >>

Possible bug in XmlNode
Posted by J Mon at 9/19/2005 7:58:03 AM
I have a XML document with elements like <offer> <field name="name"><![CDATA[DS SIL CON]]></field> <field name="merchant_id"><![CDATA[3001]]></field> ..... </offer> I know not the best XML! Now I am selecting different values by XPath having an XmlNode representing the <offer> ele...more >>

Problem with xpath query
Posted by jeffreyv NO[at]SPAM globetrotter.net at 9/19/2005 5:01:15 AM
Hi! Here's a XML reprensenting a company. I would like to make a XPath query that gives me all the employees that are Programmer or Analyst and have 5 years of experience. I did the following query "//*[local-name()='Employee']/*[(local-name()='Position' and (text()='Programmer' or text()...more >>

One element correspond with two or more types?
Posted by Knighterrant at 9/19/2005 12:00:00 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <small><tt>Is it posible that one element correspond with two or more types? The example below cou...more >>

XMLDocument.Load() performance
Posted by John A Grandy at 9/17/2005 5:53:22 PM
I've got an app that has hundreds of medium-sized (100s of elements) XML files on disk (not in db). Right now these are loaded via XMLDocument.Load and searched with XPATH. The performance has become unacceptable. Performance improvment strategies I know of: 1. Switching to XMLReader ...more >>

Response.ContentType
Posted by AJ at 9/16/2005 12:12:03 PM
Hi, I am trying to read html and format in a tabular way to show it on Excel in my ASP.Net application. Everything works fine except that the header part contains " My first report" few leading characters. Can anyone please help urgently. Thanks -- aj...more >>

How to write schema
Posted by Knighterrant Dreamer at 9/16/2005 12:00:00 AM
How to write xsd schema for the element which has both child element and text value? The xml fragment seems like this: <content> aaaaaaaaaa<mark />aaaaa<mark>m</mark>aaaaaa </content> ...more >>

Simple question, how to do XPath search by XmlDocument with namesp
Posted by Tommy at 9/15/2005 7:27:02 PM
For a XML fragment like below <ns0:BusCar_Request xmlns:ns0="http://BTSDG_SQL"> <ns0:sync> <ns0:after> <ns0:BusinessCards NameOnCard="NameOnCard_1" TitleOnCard="TitleOnCard_1" Quantity="10" /> <ns0:BusinessCards NameOnCard="NameOnCard_2" TitleOnCard="TitleOnCard_2" Quantit...more >>

Serialization & Deserialization
Posted by yuriy_zubarev at 9/15/2005 6:42:15 PM
Greetings, Let's say I have a simple class: namespace Com.Company.Group { [XmlRoot("factory")] public class Factory { protected ArrayList widgets; [ XmlArray("widgets"), XmlArrayItem("widget", typeof(Widget)) ] public ArrayList Widgets { ge...more >>

Is using XmlSerializer the right choice?
Posted by yinjennytam NO[at]SPAM newsgroup.nospam at 9/15/2005 4:33:02 PM
Hi all I'm learning XML and .NET and I saw an example of using XmlSerializer to deserialize an XML file to get the corresponding object in memory. I found it very useful for my purpose. However, for simple properties it works for me, but I actually need a bit more than just properties. ...more >>

Suppressing Collection node in XmlSerialization
Posted by Paul Hatcher at 9/15/2005 10:06:39 AM
Is it possible to serialize a collection so that the collection itself does not appear e.g. <Document> <Resource> <name>a</name> </Resource> </Document> rather than <Document> <Resources> <Resource> <name>a</name> </Resource> ...more >>

Recursive Looping with Document Function
Posted by Eric at 9/15/2005 7:00:01 AM
Hello, I've found syntax documentation on the document XSLT function, but I haven't found a good resource yet on how to properly use it. As stripped down example, I have XML files that are logically nested, where the ParentID element of one is the file name of another...chaining all the ...more >>


DevelopmentNow Blog