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 2004 > threads for april 15 - 21, 2004

Filter by week: 1 2 3 4 5

Working with an Embedded XML File
Posted by Jay Douglas at 4/21/2004 5:26:32 PM
Hello all, I have a basic XML file of which I set the Build Action to "Embedded Resource" The XML file is simple: <root> <item> <name>Test Name</name> <description>Test Description</description> </item> </root> I'm having a heck of a time reading the xml file embedded...more >>

Getting the xml from the Request object
Posted by markeboy at 4/21/2004 5:01:02 PM
We are converting a JScript app to .Ne Previously, on the servers we were using MSXML2.DomDocument.4. and using the load method to retrieve the incoming XML from the CLIENT as follows mydoc.load(Request) This line now fails advising of an incorrect argument. How should we be handling this i...more >>

Validating XML with XSD's
Posted by Matt at 4/21/2004 3:45:17 PM
I have written a small app that uses the XmlValidationReader and a customer ValidationEventHandler function. When I validate the XML I get detail structured information like child is not defined or structure is invalid but now I am getting into facets. I am working with data lengths and I have ...more >>

Parse Xml Schema
Posted by shearne NO[at]SPAM tssg.org at 4/21/2004 3:25:50 PM
I have a Xml schema like the this: .... <schema xmlns = "http://www.w3.org/2001/XMLSchema" targetNamespace = "http://www.ipdr.org/namespaces/ipdr" xmlns:ipdr = "http://www.ipdr.org/namespaces/ipdr" version = "3.0" elementFormDefault = "qualified" attributeFormDefault = "unqualifie...more >>

The age old debate of Attributes vs. Elements
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 4/21/2004 1:46:15 PM
Hi all, I have to decide on an XML structure going forward. The structure is going to house a large amount of data. In the past I've always just used the philosophy of "when in doubt use elements" - but I just read this article: http://msdn.microsoft.com/library/default.asp?URL=/library/en-us/...more >>

HOWTO Overcome missing namespace declaration in root node
Posted by David B. Bitton at 4/21/2004 9:59:50 AM
I am having a problem deserializing XML when the root node is missing a namespace declaration. My Type has an XmlTypeAttribute with a namespace defined. If I attempt to deserialize the XML, I get the dreaded <elementname xmlns=''> was not expected exception. If I comment out the XmlTypeAt...more >>

in-browser XML editors?
Posted by darrel at 4/21/2004 9:31:29 AM
We're building components for our in-house CMS. We're doing a lot with SQL database, but we decided to build out main site structure as an XML file. This XML file stores the navigation hierarchy and bits of meta data that we use throughout the site. Right now, we, the developers, are maintaining ...more >>

SelectSingleNode and XPath question
Posted by Dave at 4/20/2004 12:11:03 PM
Is it possible to get <codes><code id="4"><name>abc</name></code></codes from the XML below in single SelectSingleNode/xPath expression step OR is going to have to be a multi=step process of using SelectNodes with an XPath expression to return all the nodes with "code id = 4", iterate the NodeLi...more >>



XML Cleaner
Posted by Matthew Wieder at 4/20/2004 11:06:49 AM
I was hoping that someone could point me in the right direction. I'm looking to develop a tool that will run an XML file against an XSD schema and if a node doesn't conform to the schema, remove that node from the xml (or output a new xml without that node) and continue through the whole do...more >>

Using .NET XmlDocument Class, How to use a xpath expression on xml document which has a default namespace
Posted by Seong-Tae Jeong at 4/20/2004 10:33:34 AM
for example, xml document is below, It has a default namespace "xmlns='qwer://test'". string xmlText = "<test xmlns='http://test'><clear/><clear/></test>"; I would like to select node list "clear" with XPath Expression. XmlDocument xmlDoc = new XmlDocument(); ...more >>

XML Serializing unknown objects
Posted by Chris Smith at 4/19/2004 11:01:43 PM
I bet this question has been asked quite a bit, but if someone can point me in the right direction, I would be very grateful. I would like to write a assembly (dll) that one of the functions will act as a task router. This router will take different objects of many types, and pass that object ...more >>

Web Service 500 error
Posted by JP at 4/19/2004 2:21:06 PM
I have a web service that returns a XML dataset, but when i invoke the WS, i get the http 500 internal server error msg The stored procedure retrives data just fine in .NEt environment and in Enterprise Manager. The user in the connection string has permission to execute the SP. Any ideas? ...more >>

Problems with Deserialization.. There is an error in XML document (1, 2).
Posted by AA at 4/19/2004 2:14:20 PM
I want to Deserialize this simple xml... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <SubmitReq = xmlns=3D"http://www.3gpp.org/...more >>

Tricky XPath query - Part 2
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 4/19/2004 12:10:44 PM
Hey all, I've attempted to simplify my question (or at least the XML that is part of my example in my question): I have the following XML: <A> <B><C><D> I want to query the data in this node for the element B </D></C><E> I also want to query the data in this node for t...more >>

Strange xsltransform behaviour
Posted by s_vakareskov NO[at]SPAM hotmail.com at 4/19/2004 11:29:11 AM
Hi there, I really someone can help me. This is a real head scratcher... I have an XSLT stylesheet that transforms perfectly when I embed the link to it in an XML document. But if I try to use the same stylesheet with the same XML document (with no embedded link to a styelsheet) I get nothi...more >>

sgen.exe
Posted by Marcus Olsson at 4/19/2004 4:01:05 AM
Hi Is ther a way to get a evaluation version of sgen.exe today somewhere Regards /Marcus...more >>

problem with XML webservice
Posted by Bobofrut at 4/17/2004 1:42:37 PM
hi I'have problem with calling XML Web Service from another computer (in my workstation all work properly) I using IE browser first page look ok, but when I try run a webmethod occurs message: "The test form is only available for requests from the local machine. " thanks for advice chris ...more >>

Security problems in web-services
Posted by alexmsu at 4/17/2004 12:51:06 PM
Hi all I have wrote win aplication(client) which call method in web-service in another machine. It work then I run it in localhost, but if I change web-reference from "localhost" to my IP and bring my application to another machine and run it write "security error, use system.net.WebPermission to g...more >>

How can I get schema from a class/object at runtime
Posted by HJ Rodriguez at 4/16/2004 5:12:56 PM
Hello all, I have the following serializable class. ---------------------------------------------------------------------------- -- Public Class Test _testID as int32 _testName as String Public Sub New() MyBase.New() End Sub <XmlAttributeAttribute()> Public Property Test...more >>

Issue passing DataSet as XML from WebService
Posted by Andy at 4/16/2004 4:25:31 PM
Hello, I have a WebService that sends a client a DataSet as XML (I use a DataSet.GetXml to get the XML). The DataSet is filled by a DataAdapter in the WebService. The client coverts the XML Back to a DataSet (using StringReader sr = new StringReader(xml); DataSet ds = new DataSet(); ds....more >>

Apparent bug in XmlSerializer or XmlTextWriter or something
Posted by Integer Software at 4/16/2004 3:31:16 PM
Hi. I have a really simple set of classes that writes 2 pathnames to a xml file. I can write the default ok. Then if I change 1 pathname to a shorter one, then rewrite the xml file, the remains of the old pathname, and closing tags are left on the end resulting in an invalid XML file. Xm...more >>

Nested Elements in XML Schemas
Posted by Anthony Williams at 4/16/2004 10:06:48 AM
Hi all, I'm in the stages of developing a standard of data transfer between over 30 sites at my company, and around 5 or so aggregators outside of our company. We sell cars, and have designed a database and now want to design an XML Schema. The Schema is designed primarily for the transfer ...more >>

from DTD to XSD
Posted by Casey at 4/15/2004 4:16:04 PM
We use DTD's for our xml publications. What would be an easy route to develop schemas and move towards using the schemas instead of DTD Any advise is appreciated TI Case ...more >>

Tricky XPath query
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 4/15/2004 12:17:30 PM
Hi all, I've just changed the structure of my XML file and now I need to construct an XPathNavigator object that uses tags from two different levels in the XML file. For example: <someTag> <innerTagA> <innerInnerTagA> <innerInnerInnerTagA> Some Data That Belongs Here ...more >>

extracting a XML segment (element)
Posted by AA at 4/15/2004 11:15:31 AM
Hello, I need to extract an element from a xml document something like this <myXml> <Header> <Name/> <LastName/> <Age/> </Head> <Body> <Properties> <Address/> <Location/> <Country> </Properties> ...more >>

Bug in regex called by validatingreader
Posted by creid NO[at]SPAM projux.com at 4/15/2004 10:20:34 AM
Hey MS, here's an apparent problem in the base class library. I pulled the email validation pattern "^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})" from http://regexlib.com. If I validate the email address "test@someverylongemailaddress.com" against ...more >>

Avoiding the use of XmlDocument
Posted by Dan Kelley at 4/15/2004 5:16:04 AM
I have an application which sends messages to an external application. All data is submitted as a string in an Xml format specified by the other application, along with some custom elements we have added to assist in trouble shooting. The format is below <AppName><Data><![CDATA[our data goes here]...more >>


DevelopmentNow Blog