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 > august 2007

Filter by week: 1 2 3 4 5

Write XML File to Web Server File Problems
Posted by Dean Hinson at 8/31/2007 11:02:03 AM
Hello All, I am about to go mad because of the wonderful error messages that don't provide enough detail. Below is the code I am trying to use to take an updated dataset and write it back to a file on a web server.... ' Create WebClient Dim oClient As New WebClient ...more >>


Matching attributes between elements
Posted by Dylan Nicholson at 8/30/2007 6:18:53 PM
Hi, Just wondering if anyone knew if it was possible to select <input> elements in an XHTML document for which there exists a corresponding <label> element, whereby the label's "for" attribute value must match the input's "id" attribute value. i.e.: something like //input[//label[@for=???@i...more >>

How to select parent based on a child value via XPath?
Posted by Art at 8/29/2007 11:38:01 AM
Here is sample XML: <Root> <A> <B> <C>Yes</C> </B> </A> : <A> <B> <C>No</C> </B> </A> </Root> There can be any # of nested <A> with values of either Yes or No. I would like to select <A> node(s) based on value of <C>. In...more >>

guidance on writing XML
Posted by Darren Mar-Elia at 8/28/2007 4:00:40 PM
I'm creating some XML documents in my C# .net 2.0 code. To date I've mostly only read XML. Now I'm writing it and I'm struggling to figure out the best ways to do it and the best classes to use. Essentially I'm starting with a XML file that contains the root and start and end elements and I wa...more >>

Microsoft SOA
Posted by Dave T at 8/28/2007 2:16:01 PM
Can anyone point me to something that pretty clearly defines what Microsoft's vision of Service Oriented Architecture is and how they suggest you implement it (best pactices maybe)?...more >>

Decoding XML response in VB .NET
Posted by Jonathan Attree at 8/28/2007 7:40:00 AM
The following is the SOAP response from my customer 's intranet based web service. From my VB app I call: Response = getOrdersForDateRange(94, #8/28/2007#, #8/29/2007#) and this is what comes back: <soapenv:Envelope> <soapenv:Body soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encod...more >>

Annotated XSD mapping of unary tags
Posted by Adi at 8/27/2007 10:28:19 PM
I am trying to export SQL data using SQLXML4.0 and annotated XSD. The XSD was provided by our vendor and contains definition for choice and unary tags. Structure is something like xsd:complexType -> xsd:choice -> xsd:element type="unary". Does anybody have experience or insight into performing...more >>

Robust deserializer - Handling errors in XML
Posted by Max at 8/27/2007 3:51:01 PM
I am using XmlSerializer to deserialize XML, and sometimes have to deal with legacy files with slight differences, for example "yes" where "Yes" is expected, i.e. Expected: &lt;Enabled&gt;yes&lt;/Enabled&gt; Actual: &lt;Enabled&gt;Yes&lt;/Enabled&gt; This causes an "InvalidOperationExceptio...more >>



What is the correct way to do an XSL Transform .Net 2.0
Posted by Larry Viezel at 8/27/2007 3:21:39 PM
We just switched one of our larger applications from using .Net 1.1 to .Net 2.0. The XMLDocument XMLMainDoc is used heavily in the application. One place we use it is in sending HTML emails. We transform XMLMainDoc against some XSL and send the results as an email. The old version of the code to...more >>

Cognos XML-Schema - How to read?
Posted by Chuck Vance at 8/26/2007 10:08:40 PM
Hi ng, I can't handle this XML-Schema (below) I want to access the data like "Select Name from DATA". <?xml version="1.0" encoding="utf-8"?> <dataset xmlns="http://developer.cognos.com/schemas/xmldata/1/" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"> <!-- <dataset xmlns="http:...more >>

XPath and namespaces
Posted by David Thielen at 8/26/2007 2:18:01 PM
Hi; First off, I think I still do not understand exactly how we are supposed to handle namespaces when doing xpath queries under .NET so I may have some bad assumptions here. As I understand it, we need to set the namespaces on an XmlDocument - the ..NET libraries do not read it from the...more >>

[VB] XML & DTD -Validation
Posted by Pepi at 8/26/2007 10:34:13 AM
Hi, I've got a problem. Consider for a moment that there exists a URI to a DTD in an XML file. Not very uncommon. Now, what happens if the remote server owner go belly up and because of this the DTD vanishes? Will all XML docs of the same type be rendered useless? If not, how do you tel...more >>

Generate typed DataSet from XML or create typed DataSet from xsd?
Posted by DC at 8/24/2007 8:51:01 AM
Hi, I can easily create an xsd from an xml file in Visual Studio 2005. But I want a typed DataSet, so is there an option to create that typed DataSet from the xsd or the xml file? I need many such typed DataSets so I don't want to create them from scratch. On a sidenote: I am loading the XM...more >>

Writing to windows registry using XML....
Posted by kbnumesh NO[at]SPAM gmail.com at 8/23/2007 12:00:00 AM
Dear All, I have query regarding the registry. Is it possible to write it to windows registry using the XML? if yes then what is the API or tag used to write it. I am just a beginner in XML. thanks in advance. Regards, Umesh ...more >>

XmlResolver Host Headers
Posted by xml at 8/22/2007 2:44:29 PM
(Apologies if this is not the right newsgroup - if so, please point me in the correct direction.) Can anybody tell me a way to set the host header value on a DTD request through an XmlDocument object? (I'm using the 1.1 Framework, VB.NET under ASP.NET) I currently have 2 live systems down b...more >>

Generete an XML instance from its XSD
Posted by Shahar Ron at 8/22/2007 7:06:03 AM
Hi Is there a way to generate in code an empty instance of an XML from it's XSD? I have a lot of schemas and I want at run time to create an empty instance for them (I then have to fill one or two fields). Shahar ...more >>

Serializing descendants of generic collections
Posted by ilitirit at 8/22/2007 6:53:08 AM
Can anyone explain why the following program doesn't work? The attributes and elements of the MessageList class are not being generated. Am I doing something incorrectly? Or if this is a bug in .NET, is there a known workaround? using System; using System.IO; using System.Collection...more >>

XML schema validation with web services
Posted by wowfed at 8/22/2007 2:10:39 AM
I'm getting following errors in my schema validation . Error Message: The 'TimeSeries' element is not declared. An error occurred at , (1, 2). The 'http://alx.ml.com/mapsws:BoxColor' attribute is not declared. An error occurred at , (1, 163). It would be great if some one could tell me wha...more >>

Check for well formedness and get all errors
Posted by eliasen at 8/21/2007 12:00:00 AM
Hi I would like to run through an XML file using C# 2.0 and check for well formedness - and I would like to get all errors and not jsut the first one. My code is, off course, very simple: XmlTextReader xtr = new XmlTextReader(xmlInstanceTextBox.Text); try { while (xtr.Read()) {} } cat...more >>

.Net RSS Feed library with Filter...
Posted by Siva at 8/19/2007 3:11:47 PM
Is there a commercially available RSS Feed API written for .Net (C# or VB.Net) preferably containing methods to set filter terms to search within the feeds? Please let me know if anyone has had any experience with any of these tools. Thanks -Siva Ramaswami ...more >>

Problem with transform XSL that incude asp.net controls
Posted by tim.cavins NO[at]SPAM gmail.com at 8/17/2007 10:58:29 AM
I have an xsl file that transforms an XML document and outputs it to my web page. The xsl file is also creating LinkButtons and they appear on the page. However, I cannot get the linkbutton click event to fire for these controls. My page load event looks like the following: Protected Sub...more >>

DateTime Format
Posted by Prashant C at 8/17/2007 6:58:01 AM
I declared one element in my XML Schema as "xs:dateTime", when I validate the XML with the date in the format "dd/mm/yyyy", it shows the error that the give value is not valid, so my question is how to change the date format in XML Schema ?? Please, help me in solving the problem -- R...more >>

How can I serialize Color type?
Posted by Dmitry Nogin at 8/15/2007 10:59:07 PM
Hi, Can I xml serialize the property of type Color? The following doesn't work: [TypeConverter(typeof(ColorConverter))] [XmlElement(typeof(string))] public Color TextColor { get; set; } How? -- thanks ...more >>

How can I compare 2 XML dataset schemas?
Posted by Leon_Amirreza at 8/15/2007 12:00:00 AM
Hi, How can I comapre 2 dataset schemas are compatible (Same table columns, same keys, same constraints, ...)? ...more >>

image path
Posted by seema at 8/13/2007 8:48:01 PM
I have the following requirement for an assignment. Could u please help me in creating xml document for this. I have images stored in c drive. .. Create an xml document that models the image groups. Each grouping should include the name and location of the images within the group. • ...more >>

xml doc
Posted by seema at 8/13/2007 2:48:01 PM
I have three image groups. I have to create an XML document that models the image groups.Each grouping should include the name and location of the images within the group. How can I do that? ...more >>

XML schema validation
Posted by SimonB at 8/13/2007 12:00:00 AM
Hi, I have a XML file which I validate against a schema using the following: doc.Schemas.Add("", xsdSchema); doc.Validate(new System.Xml.Schema.ValidationEventHandler(ValidationErrorEvent)); This works fine, and I get the correct error when changing element names and structure. But whe...more >>

escape xml with xpathnavigator.appendchild
Posted by Rick at 8/12/2007 8:24:16 AM
I'm using an xpathnavigator in a windows form to append child with attributes. xnav.AppendChild("<item name="""" value=""" & client supplied value & """/>") When the client enters a value with illegal characters like "<", the naviagtor does not escape them. How do I escape the input i...more >>

xpathnavagator no xml declaration
Posted by Rick at 8/11/2007 5:15:17 PM
Net 2.0 I'm using xml to store company configuration settings in a BLOB database field. I create an xPathNavigator like this: Dim doc As XmlDocument = New XmlDocument Dim strXml As String = (-read the xml string from the db) Dim sr As New System.IO.StringReader(strXml) doc.Load(s...more >>

Adding a param to an XslCompiledTransform
Posted by MichaelJ at 8/10/2007 8:39:52 AM
I written the following example program to highlight a problem I am having with transforms and adding parameters. Below is the code followed by the XML and XSL. The program runs as expected until I uncomment the following line. xsltArgumentList.AddParam( "selector", String.Empty, "descenda...more >>

SOAP Exception - Deserializer Problem
Posted by at 8/10/2007 1:46:15 AM
Hi, In my C# code, I have defined a Map object which is sent as part of a request to a web service, here's an extract of the part of the code: - Map map = new Map(); map.item = new mapItem[4] { new mapItem(), new mapItem...more >>

Exclude subnodes from Validation with .xsd file
Posted by Martin Eckart at 8/10/2007 12:00:00 AM
Hi NG, Is there a way to specify in an XML SChema file (.xsd) that the validation should go until a specified node, but not further down the document? So, in the example below, the xml file should get validated only until the <column> tag. The <exclude>-tag and its content should be exclude...more >>

XSL Question
Posted by Gaurav at 8/9/2007 3:18:06 PM
<xsl:if test="fTOC[starts-with(@filename, '5')]"> <xsl:element name="Section1"> <xsl:attribute name="titleRef">Section 1 - Section One</xsl:attribute> <xsl:for-each select="fTOC[starts-with(@filename, '5')]"> <xsl:copy-of s...more >>

c# Namespace prefix question
Posted by Markus Bauer at 8/9/2007 12:00:00 AM
Hello, I have a problem with the namespace prefix. I need to add nodes to a xml file that is not created by me. It has a namespace with the prefix "NFD". So an already existing node looks like that: <NFD:Sonstiger_Hinweis> <NFD:Erfassungsdatum>20070102</NFD:Erfassungsdatum...more >>

Newbie Question About Parsing XML file
Posted by Peter Krikelis at 8/8/2007 6:22:11 AM
Hi So far, I am used to working with well formed XML files like <Top> <Node1>Val<Node1> <Node2>Val2<Node2> </Top> These I can parse just fine. Now the type of file I am working with is in this format:: <ntcipMessage source="Williston"> <value name="essSubSurfaceTemperature.1">36...more >>

encodig attribute of output element ignored
Posted by Markus Neugebauer at 8/7/2007 6:52:41 PM
Using xslt in .NET 2.0 I found no way to get the right encoding (UTF-8) in the resulting xml file. Here my setup: test.xslt: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="...more >>

xsl:sort - where am I going wrong??
Posted by Illustris at 8/7/2007 2:54:02 PM
I'm hoping someone can help me with what looks like a very simple problem. My output does not sort the languages alphabetically as I would expect. Can someone inspect my XSLT please? TIA!! XML: <?xml version="1.0" ?> <Markets> <Market name="US"> <Language name="English (US)" LCID=...more >>

how to determine all namespaces used in a document
Posted by davidsmontgomery at 8/7/2007 2:13:28 AM
I an writing some code which validates xml documents against the appropriate XML schemas. The problem is that I don't always know which schemas are used for any particular document. Is there an XPATH query I can use to select all nodes with namespace declarations throughout the document? Sometime...more >>

Validating Xml Fragments .NET 2.0
Posted by at 8/6/2007 9:42:05 PM
I was wondering if someone would help me with validating specific parts of an xml document again its XSD. I would like to valiate the a fragment <property name="TextMode">Multiline</property> The error I get when validating with validate method of XmlDocument is Validation Error: T...more >>

how to include schema declaration in xslt output
Posted by Himself at 8/6/2007 11:21:03 AM
I apologize if this has been answered before, I couldn't find it. I'm trying to transform XML to XML and specify a schema in the output XML. I am transforming nodes to different local names while keeping the same namespace. This works fine, until I try to introduce the schema. My input look...more >>

XMLTextReader reading too many characters
Posted by JohnB at 8/6/2007 11:16:58 AM
I'm stumped though I have an idea of what might be happening. I would appreciate any help someone might give/suggest. I have a well formed XML document. Here is an example below. The real thing (a file) is almost a gig in size. <?xml version="1.0" encoding="UTF-8"?><VoterView xmlns:xs...more >>

XSLT Doubt
Posted by Prashant C at 8/6/2007 7:22:10 AM
Is it possible to transform Two XML documents at once using XSLT? -- Regards, Prashant C...more >>

Wrong usage of xmlns?
Posted by eliasen at 8/6/2007 7:04:45 AM
Hi I need to integrate to a system that has XML like this: <Calls xmlns="\\SomeMachine\Share\Schemas\Calls1_2.dtd" Version="1.2"> <Call> <CallRef>Call1</CallRef> <UserRef>286</UserRef> <Details> <Condition>EDITTABLE</Condition> <CallType>Water Damage</CallType> <Select0>Water Damage</Sele...more >>

Input caching within Global.asax
Posted by doug at 8/6/2007 6:54:02 AM
Not sure if this is better put heree or in some IIS6 NG. I have put input caching into my global.asax file. Code listing below. I put a file dependency on the cache. My issues is, my log file gets an entry when Application_Start gets triggered and writes an entry for 'FillCache invoked"....more >>

XSLT with Database
Posted by Prashant C at 8/6/2007 6:50:09 AM
Hi All, Is it possible to query database in XSLT? or pass value to XSLT through C# or VB.NET -- Regards, Prashant C...more >>

Is a XML file Does not Support XSL and XSD operation together.
Posted by Samir1014 at 8/4/2007 12:40:00 AM
Dear Experts, Check out the following XML, XSl and XSD document. If i use XML file without XSD defination it applies XSL style and If i include the XSD document. Nothing is getting displayed in the browser. Is that mean XSL and XSD can not be apply together on a XML file. ? or I am doi...more >>

XML/DTD interpreted display...
Posted by Number 11950 - GPEMC! Replace number with 11950 at 8/4/2007 12:00:00 AM
Is there control in VB2005 (VS8.0) that can display & allow editing of mixed content XML as defined in specified DTD WYSIWYG style??? Thanks in Advance... -- Timothy Casey GPEMC! >> 11950 is the number@fieldcraft.com.au 2email Terms & conditions apply. See www.fieldcraft.biz/GPE...more >>

'xsi:noNamespaceSchemaLocation=' and 'Custom tool error'
Posted by eSapient at 8/3/2007 8:56:09 AM
I developed C# code which has been in production for more than a couple of years. The code includes the following: [XmlAttributeAttribute(Namespace="http://www.w3.org/2001/XMLSchema-instance", Form=XmlSchemaForm.Qualified)] public string noNamespaceSchemaLocation { get { This code...more >>

New to XSLT and can't select even the first node... Any Help?
Posted by JoelBrimm at 8/3/2007 7:34:09 AM
Hey, brand new to XSL and XSLT. I've downloaded an evaluation copy of XML Spy to debug my transformation, but I can't get to frist base. Can anyone help my get straightened out? My XSLT is: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Trans...more >>

XPath: Multiple conditions (contains, dates, node-set)
Posted by jorgedelgadolopez NO[at]SPAM gmail.com at 8/2/2007 12:31:13 PM
Hi all, I am using the xpathnavigator evaluate function on .net (xpath 1 right?). Now I need to expand the code to do multiple contains, compare dates (such as 'before', 'between' and 'after'), and so on. This is the thought: //person[contains(@name, 'george') and not(contains(@name, 'bus...more >>


DevelopmentNow Blog