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

Filter by week: 1 2 3 4 5

ANNOUNCING: MSDN Forums for .NET and XML
Posted by Chris Lovett at 11/30/2005 11:07:24 PM
You can now discuss issues regarding processing of XML, XSLT and/or XSD using .NET frameworks and the XML Tools in Visual Studio 2005 using the new online discussion forum located at: http://forums.microsoft.com/msdn/showforum.aspx?forumid=38&siteid=1&PageID=0 Cool features include: - R...more >>


Web services, SOAP and harness applications
Posted by Tarun Mistry at 11/30/2005 12:24:57 PM
Hi all, im pretty new to .NET development and have some question I hope some nice people here can help me with. Just to point out im not new to programming, just .NET, as such some of the concepts and libraries that are available for use may need to be clarified. Ok, my problem. I have ...more >>

How to serialize number to specific format
Posted by eSapient at 11/30/2005 12:24:04 PM
In the code I use for serialization/deserialization is the following: [XmlElementAttribute(Form=XmlSchemaForm.Unqualified)] public Decimal valArcBegAngle { [return: MarshalAs(UnmanagedType.Currency)] get {return m_valArcBegAngle;} [param: MarshalAs(UnmanagedType.Currency)] s...more >>

How to handle empty datetime if read by ReadXML
Posted by GossTremontTech at 11/30/2005 7:52:15 AM
Hi, We have a webservice that generates an xml string that has a empty/null datetime field (<OurDate></Ourdate>). When we use ReadXML read in the serialized string we get the error: "string not recognized as a valid datetime" Our code looks like this: Dim sReader As New Str...more >>

Can't aquire element's value if it hosts sub-elements
Posted by DesperateDan at 11/30/2005 4:37:52 AM
As the title say, I can't aquire element's value if it hosts sub-elements. Let me explain - My XML looks like this:- <a> <infill>xxxxxx</infill> <SourceEndPoint>testdata <EndPoint> <AliasRef ref="lAlias120001"> <Qualifier><![CDATA[OrganizationNam...more >>

GridView, XML, and .NET 2005 Application
Posted by dm1608 at 11/29/2005 7:03:54 PM
Hello, I'm in the processing of learning .NET 2005 and an trying to rewrite a simple command line application that I wrote a couple years ago. I have the following requirements: 1) Read an XML file that I create with a list of .EXE and .DLL files. 2) Scan a directory based on the path sto...more >>

Attributes for XML serialization
Posted by Jeff Connelly at 11/29/2005 4:43:51 PM
I'm using the XML attribute (.NET meaning) XMLArray on an array in a class, to serialize it. What can I do to specify that I want to serialize an XML attribute (regular XML meaning) for the element that is created? e.g. [XmlArray("namedUsers")] [XmlArrayItem("user",typeof(User))] public...more >>

XSL Sort
Posted by aerotops at 11/29/2005 12:22:30 PM
Hi, I am trying to sort something using XSLT. I am going to give examples. Original.xml <Root> <Car> <Name>Ford</Name> <DealerRating>3</DealerRating> <MyRating>1</MyRating> </Car> <Car> <Name>Honda</Name> <DealerRating>4</DealerRating> <MyRating>5</MyR...more >>



xmlns:g - base.google.com namespace problem
Posted by Kal at 11/29/2005 10:33:49 AM
I found some sample code to construct an rss feed and am trying to modify it to match Google's specs at: http://www.google.com/base/rss_specs.html, but without knowing much about XML. Their samples show the namespace declaration in the rss tag, I tried it both ways with the same result. It...more >>

CPU hangs when Deserializing
Posted by Reg at 11/28/2005 5:17:10 PM
OK, Here is the issue: I have a string of XML that has been validated against the XSD. This XSD also created a class called XMLRequest (using xsd.exe). When I attempt the following code, my CPU is zooming to near 100% (aspnet_wp) eventually the request times out. --------- XmlSerial...more >>

Inherit from XmlDocument?
Posted by Gustaf at 11/28/2005 5:12:06 PM
I have a class that contains a certain kind of XML document. The input file is *not* an XmlDocument, but when loaded, I want it to work like the XmlDocument class, like: MyDocument doc = new MyDocument(); doc.Load("input.txt"); // doc is now an XmlDocument // Query or modify the XmlDocume...more >>

xsd.exe and <xs:list>
Posted by jlea at 11/28/2005 2:40:30 PM
Does anyone know if xsd.exe in .NET v2.0 supports <xs:list> in element types? Thanks. Jon. ...more >>

XML-Problem with Visual Studio
Posted by Florian Pürsch at 11/28/2005 12:24:51 PM
Hi group, I'm facing a visualisation problem with XML in VS (.Net 2003): I have a resx-file with all my resource strings in it for internationalisation of my programm. The XML-view looks like this: <date name="WCL_NUMBERBOX_MINI_TB_TT"> <value>Value to increment or decrement</value> </...more >>

Deserialize elements to hashtable
Posted by Gabriel Lozano-Morán at 11/28/2005 11:41:16 AM
I am bit stuck here (it's monday and I am having probs concentrating). I have the following Xml file: <?xml version="1.0" encoding="utf-8" ?> <preferences> <groups> <group name="group1"> <settings> <setting name="setting1" value="val...more >>

App Architecture ?
Posted by prefersgolfing at 11/28/2005 9:07:51 AM
I am creating two services. One downloads XML streams from WebSphere MQ into a SQL2K database, the other uploads XML Streams into Websphere MQ from SQL2K. The upload service polls SQL2K every couple of minutes for uploads. If there are uploads I create an ADO Dataset that I must convert to an ...more >>

XmlNode Enum Test
Posted by Paul at 11/28/2005 7:45:43 AM
Is there a way to test if an XmlNode represents an enum? ...more >>

Reading a specific set of elements from xsd
Posted by ricolee99 NO[at]SPAM hotmail.com at 11/25/2005 9:14:04 AM
Hi there, I have an xsd file: <xsd:element name="RESULTS"> <xsd:complexType> <xsd:sequence> <xsd:element name="SEARCH_CRITERIA" type="OutputType:SomeType" minOccurs="0"/> <xsd:element name="NAMES" minOccurs="0"> <xsd:complexType> <xsd:sequence> <x...more >>

Whitespace and SOAP
Posted by Gatecrasher at 11/24/2005 9:40:07 AM
I have 100's of entity classes and datasets which are populated on a web server and returned through IIS web services. With database fields that contain nothing but spaces I have a problem. When I look at the entity classes or the dataset tables on the server that have fields with values l...more >>

Use of classes and datasets generated with xsd.exe
Posted by f.de.matos NO[at]SPAM gmail.com at 11/23/2005 3:58:14 AM
Hello, these are my first steps with vs2005 (and xml at all), so please be patient with me :-) Here is what i'm trying to achieve: Given a xml file with the following structure (simplified): <letters> <letter name="A"> <sound>A.wav</sound> </letter> </letters> i've generated a xs...more >>

XPath Problem
Posted by TJO at 11/22/2005 3:53:25 PM
What does dotnet keep throwing a error here? This is a valid xpath expression but the error says "Expression must evaluate to a node-set." XmlNode feedNode = channelsXml.SelectSingleNode ( "./feed/@id='" + rssID.ToString () + "'" ); <?xml versi...more >>

XmlValidatingReader not working with key constraint of type base64Binary
Posted by BredStik at 11/22/2005 10:46:22 AM
Hi! I have this particular problem. I have to use a base64Binary attribute as a key for one element in my schema. Everything is validating ok in XmlSpy, but when using the .Net XmlValidatingReader to validate my Xml file, the duplicate key doesn't seem to be checked. When using a string at...more >>

Can't seem to add XmlIgnore override on inherited property
Posted by nickdu at 11/22/2005 9:09:19 AM
By the way, I also posted this on DotNet Framework General. I'm trying to serialize, via the XmlSerializer, an object which is derived from System.Windows.Forms.Control. It throws an exception complaining about not being able to serialize the Site property. I expected problems and my plan...more >>

How to call aspx page from C#
Posted by sudeeprgaitonde NO[at]SPAM gmail.com at 11/22/2005 8:19:30 AM
Hello, I am forming a aspx url with query string parameters as variables. sUrl = "http://abcd.com/getresults.aspx?zipcode=" + zipcode + "&areaCode=" + areacode + "&Landmark=" + landmark; When this url formed is run in IE, it returns an xml in the browser. Now I want to duplicate this fun...more >>

Suppressing DTD look-up via web access when loading XmlDocument
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 11/22/2005 4:08:59 AM
Hi In one of our test suites we load an xml document (it's actually .svg). I'm trying to find some way of stopping the eventual call to HttpWebRequest.GetResponse which I presume it's doing when going to get the DTD at "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd". The result is ...more >>

Sign Xml
Posted by Henrik Skak Pedersen at 11/22/2005 12:00:00 AM
Hi, I would like send an user a license certificate which is in xml file. It is ok that they can read it they are just not allowed to change it. I have tried to sign my xml document using the SignedXml class and the RSACryptoServiceProvider to create the key and that works fine. But I guess...more >>

Xpath newb question
Posted by CHRISTOPHER FRAZIER at 11/21/2005 7:57:34 PM
I'm trying to integrate an xml document into a vba application, and I'm = pretty new to xml and xpath. I have the following xml document: <Chart> <Account>1000.10 <Department>10</Department> <MapNo>111</MapNo> <Amount>1234.59</Amount> </Account> ....plu...more >>

Passing XML around in an app
Posted by Dugr at 11/21/2005 12:39:06 PM
I'm writing a simple .NET 2.0 application and I'm writing a DLL for this app. I want to pass an XML document into a public function of the dll and read it's nodes and then pass the document around to other functions and subs in the dll. I'm getting lost with all the options. What's the ...more >>

Importing nodes without namespace
Posted by Christoffer at 11/21/2005 11:43:04 AM
Hi, I'm having trouble with namespaces when importing nodes. I'd like to get this output: <exampleRoot xmlns="http://mynamespace"> <row Lsm_Info="ABC123" /> <row Lsm_Info="DEF456" /> </exampleRoot> But instead I'm getting: <exampleRoot xmlns="http://mynamespace"> <row Lsm_Info="...more >>

serialization when using reflexion
Posted by Marc Falesse at 11/21/2005 10:41:45 AM
Hello, My application needs to serialize a class, which was generated with xsd.exe from a XSD. It was working .NET 1.1 and it is working with .NET 2.0 very well. Now I need my assembly to be a plugin, and to be called by reflexion, but I get this Exception: Exception.Message: "There was...more >>

appending elements to existing xml
Posted by onemonk at 11/21/2005 3:35:06 AM
hi guys... I hav this problem, I am planning to write html form values to xml file and... the problem is... When I am entering data... its recording only the latest entry.. by overwriting the existing entry.. so at any given time there's only one element in the xml file... I repeat my self...more >>

Xslt/Xpath help
Posted by Patrick.O.Ige at 11/21/2005 12:00:00 AM
I have an xml and i'm trying to loop each node... When i do FOR EACH i seem not to get my desired result I want to loop through and get only the values that matches the question i specified with the corresponding answers? I don't want to retrieve all the Answer and VoteAnswers nodes <xsl:for-...more >>

XML Security
Posted by Sean at 11/20/2005 11:03:06 AM
I have a web hosting service I am paying for. I dont have privilages to change read/write permissions on XML files (or any other on a network level for that matter). Security best practice?...more >>

XSD tool's class generation for <xs:list>: bug or not ?
Posted by MSolve1 NO[at]SPAM yahoo.com at 11/18/2005 1:24:08 PM
Hi, People I'd like to restrict the contents of an element to a list of string values delimited by a space such as the one below: <tables>summary positions trades</tables> So I defined the following schema: .... <xs:element name="tables" type="TableList"/> <xs:simpleType name="Table...more >>

XPath expression help
Posted by Paul at 11/18/2005 10:31:34 AM
I'd like to write an XPath expression that gets all nodes with a given local-name, say 'Customer', within a given namespace. From a prior response I got the following to get nodes with a specific local-name: //*[local-name() = 'thenamehere'] But how would I modify this to look only ...more >>

XML Merge/Diff tool?
Posted by nickdu at 11/18/2005 9:28:16 AM
Is there a tool that will merge XML documents? We also need the reverse, we need to be able to create a Diff of two documents. What we're trying to do is just store differences of documents at different levels of hierarchy in our configuration store. As an example, lets say at a certain h...more >>

User defined ReadXml funtions required
Posted by Prasad Dannani at 11/18/2005 12:00:00 AM
Hi, When reading XML Files from .Net we are facing different different issues. like "The data at the root level is invalid. Line 1, position 1" and some more with extra spaces at the beginning of the document etc., But I am suprised to see that these are opened using browsers including IE and ...more >>

EMAIL2 configuration problems
Posted by Madhur Nagar at 11/18/2005 12:00:00 AM
Hi I am trying to configre my PocketPC Outlook using the ConfigurationManager.ProcessConfiguration. The provisioning file that I have created is attached for your kind consideration. The mail account gets created but the problem is that I am unable to set the settings for 1. Connect and...more >>

Selecting nodes where a specific child does NOT exist
Posted by Marc Jennings at 11/18/2005 12:00:00 AM
Hi there, I have been given a rather poor schema for an XML file in the following format : ><item> > <key>ProductCode</key> > <value>1234-5678</value> > <key>Description</key> > <value>Widget 1</value> > <key>Price</key> > <value>199.95</value> ></item> ><item> > <key>ProductCode</...more >>

Validating XML fragment with single namespace schema spread into multiple schema files using include.
Posted by Wallace at 11/17/2005 8:19:49 PM
Hi all, I have a problem on validating a xml fragment using a single namespace schema which spread across multiple schema files using include in the master schema file. No matter how I change the xml fragment (to include default namespace xmlns='urn:xxx:yy' and any other namespace it may have...more >>

Transforming XML to text (and output tab and new line characters
Posted by Buddy Ackerman at 11/17/2005 3:57:59 PM
Apparently .NET strips these white space characters (MSXML doesn't) regardless of what the output method is set to. I'm using <xsl:text>&#09;</xsl:text> to output a tab character and <xsl:text>&#13;&#10;</xsl:text> to output a carriage return and line feed but they get stripped at some point. ...more >>

Using C# to conver XML into Excel ?
Posted by Polaris at 11/16/2005 9:47:58 PM
Hi Experts: Anyone knows if C# provide functions to convert XML file into Excel format? Thanks Polaris ...more >>

How to convert an xml file to another ?
Posted by Patrice Dargenton at 11/16/2005 12:00:00 AM
Hello, I have to convert an xml file to another xml file that is very similar, but some content are different, and the names of some nodes are different. In fact it's a response to a message : while in the original file there is <XXX>, the response file should contain <XXXResponse> with the same...more >>

Can I make this document format correctly?
Posted by Brad Wood
I need to build a document by adding sub docs to it. When I do so, I lose formatting. I've tried a suggestion I saw of simply setting the formatting a second time to no avail. Following is a console snippet that demonstrates the problem: static void Main( string[] args ) { StringWri...more >>

In-memory modification of NodeList
Posted by daniel at 11/15/2005 12:05:07 PM
Hi, Ignorant .Net Newbie Here - I'm loading up an XML document and trying to encrypt some elements but not others, by iterating through the nodelist returned from XmlDocument.GetElementsByName(). Goofy things happen. I get back 8 elements, but as I step through the nodes, encrypting and c...more >>

How do you remove and insert xml in C#
Posted by grs at 11/15/2005 10:55:53 AM
All, In the xml document below I want to delete the <eConnectProcessInfo xsi:nil="true" /> and insert <eConnectProcessInfo> <ConnectionString>data source=SERVERName ...etc</ConnectionString> </eConnectProcessInfo? Will someone please give me some C# code to accomplish the task. than...more >>

What is this "IBM437"
Posted by grs at 11/15/2005 10:32:50 AM
This is from a code example in visual studio beta, what is the IBM437 ? thanks grs <?xml version="1.0" encoding="IBM437"?> <book xmlns:bk="urn:samples" bk:ISBN="1-861001-57-5" bk:genre="novel"> <title>Pride And Prejudice</title> </book>Press any key to continue . . . ...more >>

how to get file id in C#
Posted by Daniel at 11/15/2005 10:21:02 AM
how to get file id in C# is there any kind of unique id that can be obtained for any file in a file system? ...more >>

Multiple definition of element in xs:choice element
Posted by pawel.pabich NO[at]SPAM gmail.com at 11/15/2005 8:10:25 AM
Hajo, I know only one way of forcing element to have one or more childes: <xs:element name="saleOrSupplyMethod"> <BR/> <xs:complexType> <xs:choice> <xs:sequence> <xs:element name="generalSale" type="emptyTagType" /> <xs:element name="p...more >>

XSD keyRef
Posted by Kent Boogaart at 11/15/2005 12:00:00 AM
Hello, I have a complex type defined in its own schema as follows: <xsd:complexType name="myType"> <xsd:complexContent> <xsd:extension base="myBaseType"> <xsd:attribute name="parentId" type="xsd:string" use="optional"/> </xsd:extension> </xsd:complexContent> </xsd:complexType> ...more >>

xsi:schemaLocation in xmldatadocument class
Posted by jean at 11/14/2005 4:44:02 PM
I am creating an xmldatadocument from an acess database with visual basic. Here is the header code I am using: Dim xmldcl As XmlDeclaration = myDoc.CreateXmlDeclaration("1.0", "UTF-8", "yes") Dim newElem As XmlElement = myDoc.CreateElement("sender") newElem.SetAttribute("sc...more >>


DevelopmentNow Blog