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 > october 2005 > threads for october 1 - 7, 2005

Filter by week: 1 2 3 4 5

XmlDocument.Save() - write raw
Posted by David Thielen at 10/7/2005 5:22:01 PM
Hi; I have nodes in the XmlDocument I create that need to be written exactly as is - not converting < to %lt; and no changing the whitespace. (This is for the SpreadsheetML schema and it reads the <Data> nodes literally.) How can I do this? -- thanks - dave...more >>


Namespace problems
Posted by David Thielen at 10/7/2005 5:20:02 PM
Hi; I am creating an XmlDocument (.net 2.0) and then saving it. I need the final xml file to look as follows (SpreadsheetML schema - I have no control over it): <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uu...more >>

Get 3 chars before <?xml version...
Posted by David Thielen at 10/7/2005 5:14:01 PM
Hi; My code is: XmlDocument doc = new XmlDocument(); doc.AppendChild(xmlDoc.CreateXmlDeclaration("1.0", "UTF-8", "")); .... doc.Save(outStream); And my saved document has: 0xef 0xbb 0xbf before the <?xml... What do I have to do to eliminate this? (.net 2.0) -- thanks - dave...more >>

Best way to read an xml file
Posted by David Thielen at 10/7/2005 3:01:02 PM
Hi; If I need to read an XML file - basically the SAX approach where I just need each node in order - one pass, read-only - what is the best way to do this. It looks like it's XmlReader but I want to verify that. ??? -- thanks - dave...more >>

Most efficient way for write only XML
Posted by David Thielen at 10/7/2005 2:59:03 PM
Hi; If I am creating an XML file, what is the most efficient way to create it? All I can see is creating an XmlDocument, building it up, then writing it to a Stream. But that means I have the entire DOM sitting in memory when I have no need for it. ??? -- thanks - dave...more >>

Carriage Returns
Posted by st NO[at]SPAM jpa.co.jp at 10/7/2005 1:38:44 AM
Hi, I've a routine that exports a DB query to Excel by building an XmlDocument and saving to a XmlTextWriter. I'm having trouble with carriage returns in a mailing address not showing up in the final Excel sheet. What's added to the InnerText of an XmlDocument is something similar to: "...more >>

xml transformation question
Posted by -00Eric Clapton at 10/7/2005 12:00:00 AM
How can I use the XML and XSLT to transfer data from CSV to SQL server? Thanks. ...more >>

Dynamic UI - Win Forms
Posted by Krishnan at 10/6/2005 3:33:59 PM
Hi, Sorry if this is a cross-post. Wondering if there is any way to genrate Windows UI from an xml file just as one would load a Web UI as HTML from an XML using XSLT. Please do let me know if you have any ideas. Assume that the xml contains UI info (i.e., which is the control to display th...more >>



VB.NET -. C# signatures different for XML Attributes
Posted by dickster at 10/6/2005 4:12:52 AM
I notice when moving from VB.NET -> C# that the overloads are different for <XMLRoot(....) > [XMLRoot(....) ] <XMLElement(....) > [XMLElement( ....) ] but in notice the following seems to compile in C# [XmlRoot(ElementName="message", Namespace="http://myurl")] even though this is opt...more >>

XmlTextWriter and whitespace
Posted by st NO[at]SPAM jpa.co.jp at 10/6/2005 2:24:48 AM
Hi, I've a routine that exports a DB query to Excel by building an XmlDocument and saving to a XmlTextWriter. The function works but new lines don't show up, i.e. significant whitespace is cut. I've tried adding WriteAttributeString("xml", "space", null, "preserve") to the XmlTextWriter jus...more >>

Element Order in Serialized Class
Posted by Tom Kiernan at 10/5/2005 8:07:02 PM
I have a class written in C# that generally serializes fine. The issue that I have is that I need to be able to submit the serialized data to another system and that system seems to be very sensitive to the order of the elements. Is there any way to force the classes within the main (root)...more >>

Best approach for xpath on .NET 2.0
Posted by David Thielen at 10/5/2005 4:37:02 PM
Hi; I need to perform xpath queries on xml under .net 2.0 (ok if it won't run under 1.1). What is the approach that will give me the fastest code? These xpath queries will walk all over the xml - it is not a case where each query usually occurs further down the xml from the previous query....more >>

Special Characters
Posted by MAF at 10/5/2005 11:57:08 AM
Is there a quick way to convert all special characters to XML format for example '&' to &amp; or '+' sign to ? ? ...more >>

XPath with prefix and local name
Posted by Tom_B at 10/5/2005 10:59:04 AM
The following returns a system error of System.Xml.XPath.XPathException. Dim Nodes As XmlNodeList Nodes = doc.SelectNodes("soap:Body") How is the XPath string formed where there is a prefix and a local name for the node? Thanks....more >>

Problem creating XML file...
Posted by Ferrari, Eduardo at 10/5/2005 7:25:23 AM
Hi all! I'm trying to create this XML file: <?xml version="1.0" encoding="utf-8" ?> <Build type="Daily" sync="True" compile="True" assemble="True" > <Sync version="1.0.0.0" branch="QA"> <Directories basePath="//OpicsPlus/Source/Release" /> </Sync> </Build> For this, I'm trying t...more >>

System.OutOfMemoryException on Large Files)
Posted by Mohd Banat at 10/5/2005 2:47:02 AM
hello, I get XXX when I run the following code (if and only if the outcome of transformation is beyond 20 MB) With _Xslt .Load(XslFile) .Transform(XmlDocument, Nothing, MyWriter, Nothing) End With If I run this in .NET 2.0 B...more >>

HELP!! Placeholder text for XML
Posted by chinimimita at 10/5/2005 12:00:00 AM
Hi guyz, How can I manipulate programmatically to show placeholder text for all empty elements? I'm using c#. Thanks in advance. ...more >>

Decimal Type in a XSD Schema and problems with DataAdapter
Posted by Andres at 10/4/2005 2:14:04 PM
Hi every body, I am having a problem and I need your help, please I am using a XSD file; it has several nodes that have the following definition: <element name="guarantyPercent" type="decimal" /> As you can see, the type of guarantyPercent is decimal. In the XML file the guarantyPercent ...more >>

Line Feed XML File
Posted by Nader Shahin at 10/4/2005 11:34:08 AM
I am using SqlXmlCommandType component to generate an XML file in a VB.net Console Application. Everything ran perfect except one thing. I need to know if there is anyway to make this XML file Line feed file. In other words, I need to put each tag in one line instead of mixing them up. Do I...more >>

XmlResolver and xsl:include
Posted by Keith Chadwick at 10/4/2005 8:11:16 AM
Have been doing a fair amount of reading but at this point no joy. The scenario is - XSL template is stored within db. - Template has a xsl:include statement as <xsl:include href="inc.template.methods.xsl"/> I now I have to pass a resolver when I use the load method so that it underst...more >>

DTD file location on a website
Posted by Chuck at 10/4/2005 7:59:09 AM
When XML is transferred by XSLT it creates and error that “dtd” file mentioned in document type is not found in window\system32 directory. How can I make either the XML or my code properly point to a relative virtual directory within the website for the dtd. Application is ASP.VB.Net L...more >>

Please help me with this XPath expression
Posted by jerry.xuddd at 10/4/2005 1:31:04 AM
Hi, I have a xml file like this <tab> <category name="Software" > Test purpose <subcategory name="Software"> <method url="addSoftware.aspx">Add</method> <method url="editSoftware.aspx">Edit</method> <method url="searchSoftware.aspx">Search</method> </subcategory> </category> </tab> Yest...more >>

XPath Validation
Posted by ZUP_DUDE at 10/3/2005 3:19:40 PM
I'm looking for a way to Validate an XPath prior to executing the expression, without using a try catch clause. For example: I'm looking for something that would tell me that "\some/Xpath\to\Node" is invalid... Any Ideas? ...more >>

how to get the element whose children fulfill the requirements
Posted by jerry.xuddd at 10/3/2005 2:50:01 AM
Hello, I actually have two questions: I have a xml like this: <tab> <category name="Software" > Test purpose <subcategory name="Software"> <method url="addSoftware.aspx">Add</method> <method url="editSoftware.aspx">Edit</method> <method url="searchSoftware.aspx">Search</method> </subcat...more >>

data exchange with XML
Posted by -00Eric Clapton at 10/3/2005 12:00:00 AM
What is Microsoft solution for the data exchange between different platform with XML? Thanks. ...more >>

Get XPath position of an XmlNode
Posted by Guy at 10/2/2005 11:46:03 AM
Hi, I read an XML file to an XMLDocument and iterate through its nodes. How do I get the XPath position (index) of a certain element? For example If I on the second "b" node I want to get "2": <a> <b/> <c/> <b/> <--- This one </a> Is it possible?...more >>

AJAX (javascript help) - ASP.NET(C#)
Posted by Trip at 10/2/2005 12:00:00 AM
Please if someone can help me !!! I need client and server code(principle based on AJAX) for next problem: i have 3 <select> tags on html page.(it must be NO page reload(callback) only select(controles) regeneration !!!) In the first <select> goes countries, which must be pulled from some ki...more >>

ASP.NET 2.0: problem using xmlDataSource and GridView...
Posted by W. Kacy at 10/2/2005 12:00:00 AM
I am having trouble using XML in an ASP.NET 2.0 webform. Using ASP.NET 2.0 beta 2, I have created a blank web page in a C# website. I have added an XML file (soData.xml), structured as follows: <?xml version = "1.0" encoding="Windows-1252" standalone="yes"?> <VFPData> <ac_sodata> <ion...more >>

Output after Transform is wrong
Posted by Wil at 10/1/2005 8:26:02 PM
What am I doing wrong here? The html output from this xslt is all run together with no tags or anything, when I should be getting "Hi!": <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xm...more >>


DevelopmentNow Blog