Groups | Blog | Home


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

Filter by week: 1 2 3 4

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

More than one namespace declaration in an element
Posted by Gustaf Liljegren at 2/19/2004 11:46:59 AM
I'm using XmlTextWriter to generate an XML document. I can't figure out how to get more than one namespace declaration in an element, when there is no WriteNamespaceDeclaration() method. Thanks, Gustaf ...more >>

using XSD to validate XML
Posted by Mike P at 2/19/2004 4:40:02 AM
I have an xml doucument that I want to validate with a XSD schema. I'm new to this and I don't know exactly how I make the references at the top of the documents so that the XSD file will validate the XML file in my C# program. My code is below : change.xml : <?xml version="1.0"?> <rsp-v...more >>

Problems with XPath
Posted by Lawrence Oluyede at 2/18/2004 9:48:48 PM
I decided to rewrite a parser that I wrote with XmlTextReader cause I did have some problems with the pull model, but now I can't start coding it 'cause even the simplest XPath query doesn't work, and I don't know why :( I have an xml document such as mine: http://loluyede.blogspot.com/atom....more >>

prohibiting serializer from writing namespace info
Posted by Jiho Han at 2/18/2004 5:30:13 PM
I have an xml string which do not contain xml decl or any namespace info. Even the schema that generated the class only contained XMLSchema namespace only. Whenever the object gets serialized, the xml file contains the xml decl and the schema namespace information. I don't mind the decl state...more >>

Why output of WriteNode is not in XML format?
Posted by mengfrank NO[at]SPAM hotmail.com at 2/18/2004 2:04:01 PM
Hi. I got some sample codes from Fig 10 of http://msdn.microsoft.com/msdnmag/issues/03/05/Real-WorldXML/default.aspx .. If I read an XML file like: <test> <good>1</good> </test> The output becomes: <test> 1 </test> Why WriteNode dropped the "good" tag? I want to read an XML file and out...more >>

HELP: &#160; and XmlDocument
Posted by tbrown_01923 NO[at]SPAM hotmail.com at 2/18/2004 1:56:56 PM
Simply trying to load xml into a DOM without the dom converting my escape sequence. **code snippet** XmlDocument xmlDoc = new XmlDocument() ; xmlDoc.LoadXml("<x>hello&#160;world</x>"); **results** in the intermediate window ? xmlDoc.OuterXml <x>hello world</x> **desired results*...more >>

is it possible to read a previous node by XMLReader?
Posted by Linda Chen at 2/18/2004 11:40:43 AM
I know XMLReader can only move forward. In my program I may need to go back to read a previous node from XML file again and I don't like to use DOM, do we have any tricky way to do it? Thanks. Linda Chen...more >>

new to XMLReader
Posted by John D. Morris at 2/18/2004 11:01:32 AM
Hi, I'm doing an XML project, and I've gotten to the point where I retreive my data from my SQL Server, and execute my XML Reader. How can I display the XML in a browser window now? Here is my code: string tXML; SqlCommand objCmd = new SqlCommand ("up_get_XMLStandardExterior", dbConnec...more >>

XSLT number-format command and scientific notation (HELP!)
Posted by suschnl NO[at]SPAM yahoo.com at 2/17/2004 1:55:14 PM
Well, the project I am working on has now come to a screeching halt! I have been developing a program that heavily utilizes ADO.NET record sets. To generate reports, I convert the recordset to XML, and then apply an XSLT to transform the XML into HTML. This works great (or did) until today. I ju...more >>

Reset method on readers?
Posted by Jiho Han at 2/17/2004 11:51:01 AM
Are there any reset type methods on any of the readers? For example, if one reads from the reader to the end and wants to go back to the beginning and re-read the thing, what would one do? Thanks much. Jiho ...more >>

Dataset to memory to serializer?
Posted by Marty McDonald at 2/17/2004 11:14:43 AM
I created business entity classes using XSD.exe. In code I've populated my dataset. Now, I want to put that data into the entity class. Do I use DataSet.WriteXml() to a memorystream, then pass the memorystream to a serializer? I want to avoid I/O to disk if possible. No examples show how bes...more >>

Conversion of XmlText enum attributes
Posted by Michel at 2/17/2004 10:11:50 AM
Hi there, I have an enum field that I serialize: [XmlAttribute("direction"), XmlText(typeof(ParameterDirection))] public ParameterDirection Direction = ParameterDirection.Out; The enum looks like this: public enum ParameterDirection { In, Out, Both }; In the generated XML, the value ha...more >>

XMLTextWriter and decoding special characters.
Posted by pranaykumarjain NO[at]SPAM hotmail.com at 2/17/2004 7:43:42 AM
Hello Everyone, I have written a simple app. that converts the dataset into excelspreadsheet. The App. uses the following architecture. First it generates the dataset with corresponding datatables(each datatable represents a worksheet).It uses an Xslt file to do the transformation of the xml ...more >>

xml parsing problem
Posted by Andre at 2/16/2004 10:26:05 PM
Hi, I have a known xml file like: <Rule Name="Rule01"><Condition><BooleanExp><RelationExp><Operator>MORE</Operator><Sensor><Name>QoSLevel</Name></Sensor><Constant>99.5</Constant></RelationExp></BooleanExp></Condition><Action><Effector><Name>ACCEPT_SERVICE</Name></Effector></Action></Rule> H...more >>

Problems selecting node
Posted by Tamir Kamara at 2/16/2004 9:49:31 PM
Hi, I have the following xml file which is part of a n-level tree: <TREENODES> <TreeNode Text="A1" NodeData="1" NavigateUrl="" ImageUrl=""> <TreeNode Text="A2" NodeData="12" NavigateUrl="" ImageUrl=""></TreeNode> <TreeNode Text="A3" NodeData="13" NavigateUrl="" ImageUr...more >>

Cannot create C# proxy for Axis SOAP service?
Posted by RJGraham at 2/16/2004 6:06:30 PM
I've goggled a few posts about this but haven't found a definitive answer. I have an Apache Axis SOAP web service that I ned to write a C# client for. When I point VS.Net Studio 2003 at my Axis WSDL, I get the following error message from VS.net: - Report from 'WSDL Document' is 'There is ...more >>

XML for dummy's
Posted by DraguVaso at 2/16/2004 4:40:41 PM
Hi, Does anybody know some good articles that explain the use of XML, how to builmd a string in XML-strucutre etc? The 'rules' of XML etc etc? Thanks :-) Pieter ...more >>

XmlTextReader -> XmlTextWriter chain with minimal code?
Posted by Jiho Han at 2/16/2004 1:45:26 PM
What is the simplest way to create a pipe from an XmlTextReader to XmlTextWriter? I am talking about a straight copy. Thanks! Jiho ...more >>

Problem using FileStream and XmlDocument
Posted by Shawn at 2/16/2004 11:10:55 AM
Hi. I'm using a FileStream (instead of just the path to the xml file) to load an XmlDocument. I'm doing this because I need to be able to prevent other processes to update the file I'm working on. The problem is that I'm getting multiple processing instructions and multiple root elements in my ...more >>

Modifying namespace in XML doc, C# help
Posted by (jrmsmo NO[at]SPAM hotmail.com) at 2/16/2004 8:31:23 AM
Hi I have a document as follows: <?xml version="1.0"?> <metadata xml:lang="en"> </metadata> I want to change the document so it looks as follows: <?xml version="1.0"?> <metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://localhost/XMLDemo/...more >>

How to transform XML by using XSLT
Posted by Daniel Walzenbach at 2/16/2004 5:46:08 AM
Hi I need to know how to transform a XML file by using a XSLT file. Consider the following XML file <?xml version="1.0" encoding="UTF-8" standalone="yes"?><LogFile><Dog TimeStamp="16.02.2004 10:04:48" ModifiedBy="Smith, Geoff"><NameOfDog>Fido</NameOfDog><Weight>10</Weight></Dog><Dog TimeStamp="16...more >>

XPath Problem
Posted by Andreas HÃ¥kansson at 2/16/2004 12:21:25 AM
Hiya.. I have an XML document that is shaped like this <Objects> <Object Type="Namespace.ClassA"> <Fields> <Field Name="" /> <Field Name="" /> </Fields> </Object> <Object Type="Namespace.ClassB"> <Fields> <Field Name...more >>


DevelopmentNow Blog