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

Filter by week: 1 2 3 4

An XML question - calculating time total
Posted by Uncle Ben at 2/28/2005 11:17:06 PM
I would like to produce the following output based on my XML file: My Album (2005) Elapsed Time (hh:mm:ss): 00:07:00 Song 1: title1 Length (hh:mm:ss): 00:02:30 Song 2: title2 Length (hh:mm:ss): 00:02:15 Song 3: title3 Length (hh:mm:ss): 00:02:15 ===== <album> <general> ...more >>

serializable class isn't written to xmlFile
Posted by chris yoker via DotNetMonster.com at 2/28/2005 6:29:38 PM
hiya, I have a snipped class as follows: <code> <Serializable()> Public Class clsConfigClass Public Sub New() End Sub Private Shared _dbConn As String Public Shared Property dbConn() As String Get Return _dbConn 'Return _dbConn ...more >>

DateTime format from XML in ADO.NET
Posted by jonathan NO[at]SPAM jroberts.cix.co.uk at 2/28/2005 10:10:24 AM
I get DateTimes back from ADO.Net using XPathDocument for formated as 2005-02-25T00:00:00.0000000-00:00 rather than 2005-02-25T00:00:00 which I get back from SQLXML which means that for EXSLT work on datefields you need you use substring-before('.0000000'), (which I know will break some tim...more >>

Getting the Attributesd of a single element
Posted by qb at 2/28/2005 7:46:55 AM
I'm trying to get the Attributes of an Element in my XML. The proces I'm using works fine until I have ELements of the same name. <TodaysPurchase> <Order CustNum="123456" CustName="LName"....etc..> <Order CustNum="123456" CustName="LName"....etc..> <Order CustNum="123456" CustName="LName".....more >>

XmlElementAttribute: How to check if it exists.
Posted by Thomas Wolf at 2/28/2005 12:23:04 AM
If the WSDL of a web service defines a complextype with the attribute X how do I examine if X is returned after the call? Definition: [System.Xml.Serialization.XmlElementAttribute("X")] public string[] X { get; set; } The problem is that I get a NullReference Exception ...more >>

XmlTextReader TCP Socket
Posted by Stelrad Doulton at 2/25/2005 10:51:06 PM
Hi all, This is repost from dotnet.general, I have only just found this forum. I am writting a Jabber-esque client-server application and have run into an issue with the XmlTextReader constructor when passing a NetworkStream - It hangs forever, apparently this is an issue with SP1. Anyway...more >>

XML parsing error with schema
Posted by Edward Diener at 2/25/2005 11:19:09 AM
I have a simple XML file: <?xml version='1.0'?> <Employee xmlns='urn:MyEmployee-schema'> <Name> <First> Edward </First> <Last> Diener </Last> </Name> </Employee> and a schema to use to validate it: <?xml version='1.0'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' tar...more >>

Deserialization issues, handling integer properties correctly?
Posted by Raterus at 2/25/2005 10:13:04 AM
Hello, I'm running into an issue when I'm deserializing an xml file into my = custom object. This issues revolve around integer properties (though = I'm sure others would apply). I have to account for my xml response to = be empty (<myintegerfield />), if I simply use one property, I get = ...more >>



with-param not working in XSLT
Posted by indyjones48 NO[at]SPAM yahoo.com at 2/25/2005 8:28:01 AM
Hi, I'm using msxml4 sp1 to transform some xml. My template looks like this: <xsl:call-template name="rowCounter"> <xsl:with-param name="max_cols" select="2"/> <xsl:with-param name="N" select="1"/> </xsl:call-template> <xsl:template name="rowCounter"> <xsl:param name="max_cols"/> ...more >>

Get rid of the namespace
Posted by Willie at 2/25/2005 6:39:03 AM
I've the following code: writer.WriteStartDocument(); writer.WriteStartElement("n", "Property", "http://www.aaa.com"); writer.WriteAttributeString("xmlns", "j", null, "http://www.bbb.com"); writer.WriteAttributeString("xmlns", "n", null, "http://www.aaa.com"); wr...more >>

how...
Posted by ENDRI RACO at 2/25/2005 5:08:39 AM
i have to create an application in C# who read two XML documents from any file ,compare them by tag"name"and show the difference.Anybody can give me any instructions or any links about this problem cause I dont know how to manage with this...Best regards *** Sent via Developersdex http://w...more >>

Totally lost...Retrieving XML from WebRequest/Response..problems
Posted by Neal at 2/25/2005 12:13:02 AM
Hi All I post a WebRequest, and the response is supposed to be delivered in XML format. posting the request in the browser address bar does return it.. ie <?xml version="1.0" standalone="no" ?> ' <!DOCTYPE homearea (View Source for full doctype...)> '- <homearea base="http://webedu.it...more >>

FrontPage Table of Contents - .xml files
Posted by whimsy at 2/24/2005 8:15:25 PM
How do I stop the Frontpage publishing .xml files to the Table of Contents. Simply selecting 'do not publish this page" in Hyperlinks view doesn't work. ...more >>

Getting enumerations from an XSD file
Posted by Todd at 2/24/2005 6:17:03 PM
I am using an XSD to validate XML files. Within the XSD, I am storing some simple types which are enumerations. In addition to using these XSDs to validate XML, I would like to access the enumerations to populate some controls on some pages. Is there any way to programatically get the enumer...more >>

problem with WriteXml method
Posted by Dixie Guo at 2/24/2005 12:06:17 PM
Hi, I used WriteXml() to write my data from DataSet to the file. The output in the file is fine. However, there is one problem with my Column names in the table. If my column name has more than two words seperated with space, the output use "_x0020_" to connect those words. For example, ...more >>

Overruling embedded DTD
Posted by Søren M. Olesen at 2/24/2005 11:51:18 AM
Hi Is there a way to overrule the entity settings in an embedded DTD when using xmlreader?? TIA Søren ...more >>

Import XML file into dataset (C#)
Posted by Thomas Lischetzki at 2/24/2005 9:29:59 AM
Hello all together, I have a little problem importing the following xml file into a dataset. <?xml version="1.0" standalone="yes"?> <logfile version = "0.1.001" > <log date = "01.01.2005" time = "12:01:59" username = "Mueller" level = "Info" message = "2"> <data order="1" capt...more >>

ASP to ASP.NET --- XMLHTTP error--XML document must have a top level element
Posted by juliankhan NO[at]SPAM hotmail.com at 2/24/2005 7:42:36 AM
Hi i am converting an ASP page to ASP.NET. The original ASP code works perfectly but in ASP.NET i am getting the error "XML document must have a top level element." I have checked the XML being sent and it looks exactly the same as the live (working version). The back end code has not chang...more >>

Create an XmlDocument from XmlSerializer?
Posted by Raterus at 2/23/2005 4:38:45 PM
Hello, This is probably a very simple question. I played around with it some = but couldn't get it. I'm got a custom class I'm serializing, I'm loading the results into a = new XmlDocument. What is the best way to take the results from the = XmlSerializer and convert it into an XmlDocumen...more >>

Implementing IXmlSerializable
Posted by Lidström at 2/23/2005 4:31:39 PM
Hello, will this read all attributes? void Point2D::ReadXml(Xml::XmlReader* reader) { //! write attributes reader->MoveToFirstAttribute(); while( reader->ReadAttributeValue() ) reader->MoveToNextAttribute(); } My attributes look like this: [System::Xml::Serializa...more >>

Where is documentation for System.Xml.XPath.XPathQueryIterator
Posted by Jus Thomas at 2/23/2005 3:38:51 PM
I am trying to find documentation for the System.Xml.XPath.XPathQueryIterater object which is being returned internally in the .Net XSLTransform class and which I cannot find any info. This object replaces the IXMLDomNodeList object that the MSXML4 XSL Parser uses. Help. ...more >>

XPath XML Statement Creator
Posted by Derek Hart at 2/23/2005 10:53:14 AM
Does anybody know of an application that will dynamically generate XPath statements. Basically, I would use the program to click through the nodes of an XML file, and then have some way to generate the XPath. I have looked at Stylus Studio, but it is too pricey for just that one feature. Th...more >>

XmlReader-to-XmlReader skips nodes?!
Posted by Philipp Schumann at 2/22/2005 8:51:05 PM
Hi, I have the following code to copy nodes from an XML document (XmlReader reader) to some output (XmlWriter writer). while (reader.Read ()) if (reader.MoveToContent () == XmlNodeType.Element) break; // forward the reader to the document element writer.WriteStartDocument...more >>

XLink - XBRL
Posted by B at 2/22/2005 12:37:05 PM
I am working on an application which reads, writes and generates XBRL-compliant documents. XBRL makes extensive use of XLink in creating these documents. I have so far been unable to ascertain the current support for XLink provided by the System.XML classes. In short, my question is: Wh...more >>

Mapping a CSV file to an Xml Schema
Posted by Ali-R at 2/22/2005 9:05:47 AM
Hi all, I am getting a CSV file like this from our client: "C1","2","12344","Mr","John","Chan","05/07/1976"......... I need to validate **each filed value** against a set of rules ,for instance for "05/07/1976" ,I need to make sure that it's in the right format ,It's not later than today...more >>

InvalidCastException on adding schema to XmlSchemaCollection
Posted by barak.yechezkely NO[at]SPAM kla-tencor-dot-com.no-spam.invalid at 2/22/2005 1:51:57 AM
Hi all, I am working with XSD for a while using C# objects ( XmlSchemaCollection , XmlValidatingReader) and have met this problem: Current code demonstrates the problem: <xs:schema ...> <xs:element name="Parent" type="Parent_Type" /> <xs:complexType name="Parent_Type"> ...more >>

XmlSerialization: bool as 0/1
Posted by Diego Mijelshon at 2/21/2005 4:16:55 PM
While the XmlSerializer can read boolean values as either 0/1 or true/false, it always writes true/false, which is a problem when I want to insert in an SQL Server bit column. Temporarily, I'm using a surrogate variable (see below), but I'd like to do it in a cleaner way. Is it possible? Co...more >>

XMLWriter and NumberDecimalSeparator
Posted by Vyacheslav Lanovets at 2/21/2005 4:02:58 PM
Hello, All! Is it possible to change parameters of locale for writing XML file (with XMLTextWriter)? I want DataSet.WriteXML() to use NumberDecimalSeparator "." instead of "," Regards, Vyacheslav ...more >>

problems with loading different xsd's with same namespace to XmlSchemaCollection
Posted by Che at 2/20/2005 7:28:38 AM
Greetings, I am writing an application that uses an extendible XML file. in order to validate that XML I use a main XSD and in additional - few more extensions XSD's that uses the types in the main XSD as base types. my clients can define their own XSD's extensions and use my generic applic...more >>

XML Serialization:: Too many ArrayList elements
Posted by Codex Twin at 2/19/2005 2:20:08 PM
I'm using XML Serialization to try and get this structure: <LibraryCategories> <LibraryCatgeory>1</LibraryCatgeory> <LibraryCatgeory>2</LibraryCatgeory> <LibraryCatgeory>3</LibraryCatgeory> </LibraryCategories> My class has a public property called LibraryCategories, of type Ar...more >>

Do XmlNode's have a unique internal system ID?
Posted by nntp1.sympatico.ca at 2/19/2005 12:51:09 AM
Hello all, Do System.Xml.XmlNode's have a unique system ID available via a property somehow? I have nodes which may be very similar or even identical (but in different locations) in a document and need to be able to look them up via this ID. I have for now assigned my own GUID to each ...more >>

Inline XSD schema for XML with no namespaces
Posted by Edward Diener at 2/18/2005 6:02:14 PM
I could not find an example of an inline XSD schema for an XML document which has no namespaces. Could someone supply one ? When I tried validating my XML with an inline XSD schema, using XmlDocument.Load on a validating reader set to System.Xml.ValidationType.Auto, it failed and I do not know...more >>

One Element, one attribute - simplest xsd?
Posted by Mark Bosley at 2/18/2005 12:13:07 PM
Well, despite reading an excellent article on ComplexTypes, I am unsure on the quickest way to express the following <myElem myAttrib="noMoreThan30chars"> No More than 30 chars </myElem> Both on the string are SimpleContent, right? Thanks, Mark BTW the article is http://www.xml.com/pub/a...more >>

XPath Query problem with Namespace
Posted by MAF at 2/18/2005 9:28:41 AM
I am triing to query the following xml document. I am loading the xml into a XML Document and then using XPath to get the EntityDataSet Node Here is my code XMLDoc = new System.Xml.XmlDocument(); if (this.m_FileLocation != null && this.m_FileLocation.Length > 0) XMLDoc.Load(this.m_Fil...more >>

XPath query problem w-attributes
Posted by Dave Lech at 2/18/2005 9:05:01 AM
In a C# app I have an XPath query where I am trying to return a single node based on the value of 2 different attributes. The xml looks something like this: <TESTS> <TEST SAMPLE_NUMBER="1" TEST_NUMBER="1"/> <TEST SAMPLE_NUMBER="1" TEST_NUMBER="2"/> <TEST SAMPLE_NUMBER="2" TEST_...more >>

Change encoding from UTF-8 to ISO-8859-1
Posted by JuanDG at 2/18/2005 8:39:08 AM
Hi, I have a .Net Web Service and the encoding of the SOAP Messages is always UTF-8, and I need to change the web service so that it encodes with ISO-8859-1 because it’s the only encoding my web services client supports. I've updated my web.config & machine.config Globalization requestEn...more >>

Changing a single value in an xml file
Posted by Brett at 2/18/2005 7:33:04 AM
I often have to change a single value in an xml file based off of a given ID. Is there any easy way to do this through .net.xml? Do I have to parse the file then write it out again?...more >>

Gurus for XML TextStream vs Response Stream vs XMLValidatingReader
Posted by Neal at 2/18/2005 6:15:01 AM
Hi, I try retrieve an XML stream from a webapp using a post "http://webedu.its.uct.ac.za/webct/public/serve_webctdb?OPERATION=homearea_xml&DB=global&WebCT%20ID=rodgersn_its_main&AUTH=ee09aabc77ef593917a60720f167c733" and result = req.GetResponse() ReceiveSt...more >>

strange and curious problem
Posted by bch NO[at]SPAM genie.co.uk at 2/18/2005 3:16:07 AM
Hello and thank you for reading on (hopefully). How does one typecast the XMLREADER returned from the XSLTRANSFORM method 'transform' into XMLTEXTREADER, so it can be passed in to an XMLVALIDATINGREADER? I am getting an invalid cast. It seems that although the XSLTRANSFORM 'transform' met...more >>

XML abd PDF
Posted by news at 2/18/2005 2:12:25 AM
Can I generate PDF from XML using .NET? ...more >>

Extra HTML In Response.OutputStream from ASP.Net xslDoc.Transform
Posted by Todd at 2/17/2005 5:59:01 AM
Hello Folks! Using http://support.microsoft.com/default.aspx?scid=kb;en-us;320847 as a reference, I am trying to pipe the results of an XSL Transformation directly out of a WebApp Default.aspx. The code is as follows; ------------------------------------------ Private Sub...more >>

Cannot implicitly convert type 'object' to 'System.Xml.XmlNode'
Posted by pieter_van_landuyt NO[at]SPAM hotmail.com at 2/17/2005 5:58:40 AM
Hi, I have a problem with XmlNodes and my stack. It looks something like this: //declarations XmlNode node, new_node; Stack MyStack = new Stack(); //code MyStack.Push(node); new_node=MyStack.Pop(); The last line delivered an error like this: Cannot implicitly convert type 'object' to...more >>

XslTransform and Long Long String in memory
Posted by Yuriy at 2/17/2005 3:00:35 AM
Hi, Can anybody explain the following? Say I have the following source XML and XSLT (see below). No matter what this XSLT does. It is just a sample to show a problem. the idea is that XSLT transforms small XML into quite big XML. Now, I have a straightforward C# (see below) code that d...more >>

Newbie problem: empty nodes won't collapse
Posted by Ross Presser at 2/16/2005 5:13:03 PM
My app builds up a structure using a typed dataset; when it is done it wants to output it as xml. Unfortunately, since <OBJECT> and <SOURCE> elements appear in two different parts of the heirarchy, I had to rename one pair as <OBJECT2> and <SOURCE2> in order to get the xsd to be valid. So I hav...more >>

XmlAttribute, Prefix and LocalName
Posted by Fede at 2/16/2005 5:02:19 PM
Hi everibody, I have a XML document that I load as XmlDocument. I would like to add it a new tag "mytag" with an attribute "xlink:href". For this purpose I wrote this code: Dim myNode as XmlElement myNode= myXmlDocument..CreateElement("myTag") attr = myXmlDocument.CreateAttribute("xlin...more >>

Problem with XmlDataSource TransformFile property
Posted by John Jumper at 2/16/2005 1:39:04 PM
I am using an XmlDataSource in VS2005Beta1 and setting the TransformFile property in my ASCX and it is finding both files. However, the resulting data does not contain any of the sub nodes of the generated document. I have tested my XSL by viewing the generated XML and it properly transforms...more >>

Newbie in need of Help
Posted by Joe at 2/16/2005 10:47:13 AM
I am trying to write a web service that gets a list of users from ActiveDirectory and then returns them as an XmlNode that can be consumed by InfoPath. I am having problems finding a tutorial that will let me know how to create an XML Node from scratch and build it out as I cycle through th...more >>

XmlSchemaCollection
Posted by (cmrchs NO[at]SPAM yahoo.com) at 2/16/2005 10:42:50 AM
Hi, what is the purpose of having a XmlSchemaCollection since you can only validate an xml-file against 1 xsd-file at a time ? so why have a collection ? thanks Chris ********************************************************************** Sent via Fuzzy Software @ http://www.fuzzysoftwa...more >>

create XmlElement from a string
Posted by ryang at 2/16/2005 10:23:12 AM
Hi, XmlElement.OuterXml allows us to get a string representation of a XML element as well as its children but it is get-only and you can't assign OuterXml to a string of XML fragment. Does anyone know a way to convert or create XML element from a string of XML fragment? For example, if I ...more >>

Need help writing proper class structure based off XSD schema.
Posted by JTrigger at 2/16/2005 10:18:50 AM
I am rather new to the XML and XSD world and was wondering what the code would look like to write the following XSD items as classes in C# with all the proper XML attributes to make them serializable. Thanks in advance. <xsd:complexType name="Order"> <xsd:sequence> <xsd:element ref="Or...more >>


DevelopmentNow Blog