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 2004

Filter by week: 1 2 3 4

html in database
Posted by Jochen Stuempfig at 2/28/2004 3:07:46 PM
hello, i'd like to store text in an database and generate html files with the text stored in the database. i use dom to generate an xml file and render it using xsl. i use the following code to render the xsl file. XmlTextWriter output = new XmlTextWriter("myHtmlFile.html", System.Text.Enco...more >>


XML DataSet Deployment
Posted by Trey at 2/28/2004 11:49:08 AM
Let me ask one more time! If you have an application that uses a DataSet (System.Data) but the dataset is only loaded with XML data. Do you need to deploy MDAC with your application? Trey ...more >>

Fastest method
Posted by Richard Bower at 2/27/2004 10:23:00 PM
Hi, What is the fastest .NET method of opening an XML file (no schema validation) and doing basic XPath Queries? Thanks Richard. ...more >>

book
Posted by C# newbie at 2/27/2004 7:07:00 PM
What's the best xml book? ...more >>

XPath question
Posted by Mark Snelling at 2/27/2004 4:34:35 PM
Hi, I have a question regarding XPath and namespaces. I have a piece of XML... <Cred> <Meta> <Type xmlns='syncml:metinf'>syncml:auth-basic</Type> </Meta> <Data>QnJ1Y2UyOk9oQmVoYXZl</Data> </Cred> What I'm trying to do is retrieve the text 'syncml:auth-basic' with ...more >>

XML Serialize
Posted by JG at 2/27/2004 2:37:53 PM
I have a class public class DooDaa { public String ThisThat = "123"; } The xml that I want to create should look like. <DooDaa> <Somthing ThisThat="123"/> </DooDaa> How can I get the xml to look like that when I serialize the class. FYI: I saw some of the previous posts that...more >>

CultureInfo changed on Callback threads?
Posted by chadb at 2/27/2004 10:16:09 AM
Basic scenario -Winforms client calling an asp.net web service on Windows X Problem: When I perform an async web service call from a winform client, my Thread.CurrentCulture and Thread.CurrentUICulture are changed from the initiating thread's culture Some code Set all the Cultures to a differ...more >>

Xml Serialization - Guid problem...
Posted by Jiho Han at 2/26/2004 7:22:07 PM
I generated a class from a schema. One of the fields are typed as System.Guid. Perfect. The only problem is when this class serializes, the guid field serializes as 8c4a969b-2aa4-4679-b170-d9f6441f7c6d, when I need it as {8A3ACA06-A7DE-41A5-B584-063E7CF391BB}, all upper, and with braces. Is...more >>



Webservice client fails on even numbered calls
Posted by paul NO[at]SPAM palmnospam.com at 2/26/2004 6:21:14 PM
Hi, I have an unmanaged VC7 app calling a C# dotnet service. I'm using the VS2003 generated proxy class derived from CSoapSocketClientT. The client app works fine for most of my customers, but for some it appears to be upset by their firewall / proxy. If I use CSoapSocketClientT.SetProxy(...more >>

Case Sensetive
Posted by C# newbie at 2/26/2004 5:57:55 PM
Hi, How can I make my query to return both "Bob" & "bob" (during search for a string) ? any idea? thanks ...more >>

Null values and XML
Posted by Naveed Anwar Kharadi at 2/26/2004 5:03:53 PM
Hi, Is there any way by which null values of a dataset's table can be represented in its XML. Regards. ...more >>

XML/MDAC Deployment question
Posted by Trey at 2/26/2004 8:14:38 AM
I saw in another post that if you use the System.Data namespace you must deploy MDAC 2.6 or MDAC 2.7 with your application. Is that correct if you are using a DataSet to load Tables with XML data only? Like this: XMLDataFile = Application.StartupPath + @"\Data\theData.xml"; XMLSchemaFile...more >>

XmlSerializer, problem mixing attributes and element values
Posted by Mike LeBlanc at 2/26/2004 7:36:06 AM
Hi, I have a desired xml output that looks like this <?xml version="1.0" encoding="UTF-8"?><onhand_request><item organization_id="414">1</item><item organization_id="414">7321</item></onhand_request I can get to this point with attributes <?xml version="1.0" encoding="utf-8"?><onhand_request><...more >>

override CreateElement - getting the name of the parentNode ????
Posted by JoostNews NO[at]SPAM hotmail.com at 2/26/2004 4:42:41 AM
However, I am wondering if I can make the creation of my object depend on the name of the parent node DURING parsing (or even the name of the grandparent node)?? In other words, how can I do something like this: class MyParser : XmlDocument { public override XmlElement CreateElement(string ...more >>

confused about NameSpace in xml files!
Posted by C# newbie at 2/25/2004 4:27:44 PM
Hi guys, Something werid happening to me. When I run a query against every xml I have, below query works fine and returns what it should be returned. but there is another xml file as below, which doesnt' return what it should! I run a query like: //*[contains(.,'the string I'm looking f...more >>

text/string finder
Posted by C# newbie at 2/25/2004 12:20:48 PM
Hi, I'm new to xml and sometimes gives me a hardtime. is there any xpah query that returns a particular string I'm looking for? I used: //*contains(text()="foo") the "foo" could be in any part of xml file. it could be text or attribute or .... any idea? thanks in advance c# newbiew ...more >>

how to write unicode using XMLWriter?
Posted by Linda Chen at 2/25/2004 11:03:52 AM
I need to write some unicode symbols such as degree symbol (for example 36=B0) by using XMLTextWrite but couldn't make=20 it work. I found the degree char in unicode is '\u030A'=20 and here is my sample code: char myChar =3D '\u030A'; string myString =3D "36" + myChar.ToString(); myWriter.Wr...more >>

Interesting Problem with Child element order
Posted by (jrmsmo NO[at]SPAM hotmail.com) at 2/25/2004 7:48:34 AM
Hi there, I have an interesting problem that maybe you pros can suggest how I solve. I'm working with a third party program that serializes an XML document (it was obviously not designed with schema in mind). I created a schema from this document. It works fine. Except for some unknown reason, i...more >>

Query/Filter XML to produce new document
Posted by Jim at 2/25/2004 5:06:06 AM
Hi I'm looking to take an existing XML document, query for certain nodes, and 'recreate' the document with just the relevant nodes. I'm currently using XPath - I have established the pattern that returns the required child nodes from the document, but am struggling to find a good statergy for recr...more >>

System.XML Migration - Corresponding System.XML object for MSXML IXMLDOMSelection
Posted by awong at 2/25/2004 2:06:29 AM
Hi there, I was trying to convert the following VB6 code to VB.NET. But I can't find a corresponding System.XML object for MSXML IXMLDOMSelection. I am thinking to use System.XML XMLNodeList object and GetElementsByTagName method to find the "selection". Any suggestion/comment? Thanks ...more >>

Passing Parameter to Transform of XML to XML
Posted by Craig Petrie at 2/24/2004 10:53:45 PM
The following transformation puzzles me when trying to transform XML to XML. I get an exception "THE EXPRESSION PASSED TO THIS METHOD SHOULD RESULT IN A NODESET" at the last line "xmlDoc.Load(xr)" when I run the code. I previously tried it all without a parameter and hard-coded the value into...more >>

in code comments
Posted by Tomk at 2/24/2004 4:36:01 PM
I'm using VB.DOC & NDoc for now until Whidbey is released and I'm looking for a way to extract and compile my XML comments for private methods. These tools and I beleive the existing C# doc functions only extract XML for public Fields & Methods. I presume because reflection does not reveal pri...more >>

Basic XmlTextReader question
Posted by Gustaf Liljegren at 2/24/2004 3:42:55 PM
I shall make a make a function that will read an XML file, looking for elements like this <context id="A1"> <period> <instant>2001-01-01</instant> </period> </context> or this <context id="A2"> <period> <startDate>2001-01-01</startDate> <endDate>2001-12-31</endDate...more >>

SecurityAction.InheritanceDemand....
Posted by Earth Worm Jim at 2/24/2004 2:23:56 PM
I have a base class in an assembly that I want to add the following attribute: [StringNameIdentityPermission(SecurityAction.InheritanceDemand, PublicKey="00024....e45e")] The assembly is strong named and all the derived classes are in the same assembly. The problem that arises is that at ru...more >>

XML performance in .net?
Posted by sandra at 2/24/2004 10:22:23 AM
Hi there Anyone know how fast for XML performance when I use dataset to save and read data from XML file? my client need those answers. Thanks in advance Sandra ...more >>

using Xsd.exe to generate classes *properly*
Posted by Jiho Han at 2/24/2004 10:04:59 AM
Ok, I searched the group and the net but didn't find what I was looking for. :) I have an xsd which must be in all lowercase(the tags). However, I'd like the generated classes (with xsd.exe) to be properly cased such as Person, Car, Company, MainMenu instead of person, car, company, mainmenu ...more >>

validating against schema with namespaces
Posted by Ryan at 2/24/2004 9:31:37 AM
I have a very complex XDR schema that uses namespaces: xmlns="urn:schemas-microsoft-com:xml-data" xmlns:b="urn:schemas-microsoft-com:BizTalkServer" xmlns:d="urn:schemas-microsoft-com:datatypes" Do I need to build a custom validator in order to validate XML documents against this schema? Ho...more >>

Question about signing XML and RSA
Posted by David Lindgren at 2/24/2004 9:02:21 AM
Hello. I am trying to sign my XML files with private/public keys but I have noticed that initiating the RSA key with either RSA.Create() or FromXMLString() takes a lot of time. I wonder why? On my machine (which is pretty fast) it takes seconds to call RSA.Create() Is it possible to skip this ...more >>

About XML scheme
Posted by ElanKathir .S.N at 2/24/2004 4:13:31 AM
Hi ! What is XML scheme ? What is a use of that ? Give me some idea... Thanks & Regards Elankathir, B'lore, India. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

do i need to write my own validator?
Posted by Ryan at 2/24/2004 12:00:45 AM
I have a very complex XDR schema that uses namespaces: xmlns="urn:schemas-microsoft-com:xml-data" xmlns:b="urn:schemas-microsoft-com:BizTalkServer" xmlns:d="urn:schemas-microsoft-com:datatypes" Do I need to build a custom validator in order to validate XML documents against this schema? Ho...more >>

XSLT Extension Object Problem
Posted by Matt Frame at 2/23/2004 9:33:30 PM
In my old VB6 application I have an xslt extension object that builds a small cross reference document and returns it as a NodeList in my XSLT. I can then use it with xpath expressions as $nodeset/xpath and I would get my values or use xsl:copy-of and I would get the whole document in my results...more >>

Serialization to Stream - how?
Posted by Joe Rizla at 2/23/2004 7:56:01 PM
Is there any example code I can find which shows how to Serialize an object to System.IO.Stream. The reason why is because I want the pass the stream on: The Stream is then XSLT Transformed by passing the stream to create an XPathDocument object. Thanks rizlaroller ...more >>

XmlReader and XML Web Control
Posted by Jeff at 2/23/2004 2:46:06 PM
Hi I am trying to use the XML Web Control and the XmlReade but when I try and load the xmlReader into the XmlDocument is gives me this erro Error: This document already has a DocumentElement node It fails at: doc.Load(myXmlReader Is there something I am missing Here is my code Dim myComm...more >>

Serialize/Deserialze XML
Posted by Dave56 at 2/23/2004 2:02:11 PM
I need to create a class that will serialize to produce the following XML. I must also be able to deserialize it back in to the class. <?xml version="1.0" encoding="utf-8"?> <TotalBandData> <InstrumentList> <MaxID>6</MaxID> <Instrument> <ID>2</ID> <Name>Trumpet</Name>...more >>

XmlTextWriter and suppressing empty elements
Posted by tconti NO[at]SPAM hotmail.com at 2/23/2004 12:01:53 PM
Howdy: I am currently writing a .Net handler to replace an ASP page. The ASP module used a COM dll to format XML. This dll was pretty robust and it auto-suppressed empty elements and attributes. A developer in my group is porting the code into .Net, but I an still believe that there is a w...more >>

How to append records in exist XMl file?
Posted by Matrix at 2/23/2004 10:04:50 AM
Greetings I want to append records in a XML file,I use XMLTextWriter,but i found it only create a XML file,not append records in exist XML file.why? ------------------------------------------------- XmlTextWriter myXmlTextWrite = new XmlTextWriter(@"C:\myconfig.xml"); myXmlTextWrite.WriteStar...more >>

Won't update row in datagrid
Posted by Trey at 2/23/2004 9:25:40 AM
I have a XML file that I have bound to a typed Dataset, which goes to a DataView, which is connected to a datagrid. When I enter new data in the last row (empty) row of the datagrid and move off of the datagrid's row the data disapears. AllowNew and AllowEdit of the dataview are both true. R...more >>

XmlSerialization vs SoapSerialization
Posted by Boris Leykekhman at 2/23/2004 9:06:09 AM
Hi All, What is advantages/disadvantages of using XmlSerialization vs SoapSerialization? I'm specifically interested in "stability": I mean, I serialized something in a file and have to be sure that in a year, when the .Net version will be different, I still can deserialize my objects from this f...more >>

Problem Serializing A Class to XML
Posted by Dave56 at 2/23/2004 8:45:45 AM
I am trying to create an class (in vb.net) that will serialize to produce xml as follows: ------------------------------------------ <?xml version="1.0" encoding="utf-8"?> <TotalCostData> <Ship DataType="Money" Currency="USD">1.00</Ship> <Total DataType="Money" Currency="USD">35.00</Total>...more >>

how to keep the white space when assigning innertext
Posted by Coco at 2/23/2004 1:26:06 AM
i'm creating my xml programatically and adding the elements i'm having a problem keeping my space when trying to assign innertext to the elements i've just created. how do i solve it thanks! ...more >>

Loading XML shema at design time?
Posted by Trey at 2/22/2004 5:41:43 PM
Is there anyway to load a XML Schema into a DataSet at design time? This way all the data binding would work and I could set up the columns in a grid in the designer. I can't seem to figure it out. ...more >>

Programmatically generate xsd from a type
Posted by Bert at 2/21/2004 11:04:53 PM
Hi, I would like to generate an xml schema based upon a class, just as you can do with xsd.exe (xsd.exe /type: typename /outputdir:c:\ assmeblyname). Is there a way to do this by code instead of using this tool? Thanks in advance....more >>

Searching xml file for multiple searchstrings
Posted by smita at 2/21/2004 4:33:05 PM
Hi, I want to search an xml file for particular searchstrings and also based on the date i.e. all items containing the date -----prior to the specified date, or ----on that date or ----- after the specified date. Also i want to search throught he xml nodes for more than one search string....more >>

XMLTextReader for Search?
Posted by Siva at 2/21/2004 3:05:59 PM
Guys - I am a rookie to the field of xml but I have a pressing issue that I hope you can help with. I have an xml document (say runs.xml). I would like to load it in my Vb .net app and search for the presence of a certain attribute value. This xml file would have user information along with t...more >>

How to convert dataset into xml with embedded schema?
Posted by William Wong at 2/21/2004 9:06:05 AM
Hello Is it possible to convert a dataset into xml document with embeded schema? Thanks William...more >>

[ANN] RenderX seeks beta-testers for XEP.NET
Posted by Nikolai Grigoriev at 2/21/2004 1:07:32 AM
Dear all, RenderX, Inc. [1] plans to release a pure .NET version of its Java XSL-FO formatter, XEP [2]. We are looking for beta testers for the new product. If you are interested in trying XEP under .NET and eager to share your impressions with us, please send an email to: beta-request@...more >>

Need some pointers - XML vs Data Table
Posted by Bob at 2/20/2004 12:41:12 PM
I just started playing with the XML extensions of the CRL and have a question and have not seen how why what I have here is happening. Now I do know my XML is not complete and the file layout we are starting with is simply a prototype Any way here is a cut out of my xml file <IADSNOTES type='pu...more >>

Weird Serialization Problem
Posted by Ot at 2/20/2004 10:01:13 AM
I have two different solutions that use xml serialization to create xml from a given class. The class is defined identically in both solutions. I copied the code for both the class and the code that does the serialization from the first solution to the second. The first solution works just...more >>

Q/VB.NET: Append data to XML file without loading complete file?
Posted by jonathan NO[at]SPAM theinformationpeople.com at 2/20/2004 5:04:30 AM
Can someone give me an example how to append data without having to load the complete XML file. Is this possible? Jonathan...more >>

XslTransform.Transform, invalid character output to Response.OutputStream
Posted by Tim Menninger at 2/19/2004 2:55:35 PM
When I use the XslTransform.Transform method to write to the HttpRequest.OutputStream The first byte of the output is always an invalid character, looks like an ascii zero or some other non-printable ascii char. The problem is that it messes up my display. Here is the code: .... Response.Wri...more >>


DevelopmentNow Blog