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 > september 2004 > threads for september 22 - 28, 2004

Filter by week: 1 2 3 4 5

XML Serialization
Posted by Drakier Dominaeus at 9/28/2004 7:34:52 PM
Hello all... My problem is this.. I have an XML that has been formatted and given to me already. My goal is to attempt to serialize the XML into an object using a regular class and XMLSerializer if possible. I don't want to stroll too far outside the realm of "normal". My main problem is th...more >>


Postback & Xml Control ViewState
Posted by BluDog at 9/28/2004 11:42:46 AM
Hi I have an Xml control that reflects a tree structure from a serialized object that is generated in the Page_Load event: If Not IsPostBack Then Dim ms As New IO.MemoryStream Dim ser As New System.Xml.Serialization.XmlSerializer(Content.Site.GetType) ser.Seriali...more >>

Read node text.
Posted by MA at 9/28/2004 11:19:18 AM
Hi all! I have a function that reads a nodes 'InnerText'. But when the node has childs 'InnerText' includes that childs text to. Is there a way to select the value from the node but not from the child? my xml document structure looks like this: <Root> <Depth1> <Depth2 with...more >>

How to get XML data out of an XML file
Posted by flycast at 9/28/2004 11:11:02 AM
I am trying to retrieve the Parameters first or second (0, 1 ,2) node from the following XML file: <?xml version="1.0" encoding="utf-8" ?> <Robot xmlns="http://tempuri.org/RobotDefaults.xsd"> <Parameters> <Name>Decker</Name> </Parameters> <Parameters> <Name>A</Name> </Parameters> <Param...more >>

Problem with xsd codegen after installing .net framework srvice pa
Posted by Ceri Williams at 9/28/2004 9:03:05 AM
I followed the excellent MSDN article "Code Generation in the .NET Framework Using XML Schema" [1] to build a substitute for the limited xsd.exe. My code works fine under .NET framework 1.1, but after installing .net framework service pack 1, my code breaks. Below are trivial example files ...more >>

XmlWriter.WriteAttributeString()
Posted by SenthilSS at 9/28/2004 2:55:04 AM
The WriteAttributeString() method(s) of System.Xml.XmlWriter Class is embedding the Value parameter within double quotes. Is it possible to change this behaviour such that the Value is instead put within Single Quotes (Apostrophes)? -- Regards Senthil SS....more >>

latency of web service and serialization cost
Posted by Petr Votocek at 9/27/2004 11:24:39 PM
Hello, I would like to measure latency of webservice... I call the method and the time is difference between start and end value of Enviroment.Tickcount. Is it right progress??? Do you have any ideas? Something higher precision of time? Any links? Thanks all! Petr ...more >>

Working app suddenly breaking. Changes to System.Xml.dll?
Posted by Andrew Vardeman at 9/27/2004 2:16:37 PM
Hi all. Recent Windows updates seem to have broken our application. It used to run fine but now fails with XmlExceptions when loading a document. We've narrowed the problem to the following: We create an XmlTextReader by passing an instance of our own subclass of FileStream. Our subcla...more >>



Read complex XML into a dataset or XMLDeSerializer
Posted by Shailendra Batham at 9/27/2004 11:25:36 AM
hey xml gurus I have a xml which is as follows, so my question is how can I read this XML is VB.Net or C#. I want to loop for every survey ID and insider every survey I want to loop for each user ID and get their values. <?xml version="1.0" encoding="utf-8"?> <UserData> <Survey ID="S1"> ...more >>

Bulk add prefix to XmlDocument
Posted by Victor Hadianto at 9/27/2004 2:03:02 AM
Hi All, I have an XML document that looks like this: <book> <title>Foo</title> <description> <div xmlns="http://www.w3.org/1999/xhtml"> <p>Body this is the body</p> </div> </description> </book> Now I need to append this document into another XmlDocument object. T...more >>

XML Schema
Posted by shakuf at 9/27/2004 12:31:01 AM
hi i would like to define a type with restrictions, i used the following schema but i get an error <xs:element name="Latitude"> <xs:complexType> <xs:simpleContent> <xs:extension base="LatitudeType"> <xs:attribute name="Units" type="LatLonUnitsType" use="required" /> <...more >>

XML Edit Control
Posted by Lee Keable at 9/26/2004 10:22:10 AM
I am looking for a textbox like control that formats and colors xml as you type it, just like the one in the visual studio IDE. Is it possible to create an instance of the control used by the IDE? if not does anyone know of a good third party control?...more >>

Hpw to serialize boolean to 0/1 into XML?
Posted by Rita at 9/25/2004 9:01:02 AM
I can deserialize my Xml that contains 0/1 to bool, but when I again serialize it, value is true/false. Is there some way to force boolean value to be serialized as 0 and 1, not true or false? Thanks. ...more >>

Return Xpath Expression vor Serializable Object
Posted by Johann_Höchtl at 9/24/2004 3:35:03 PM
Hello, is ist possible to return the xpath expression for an instance of a serializable object? I receive an XML which may contain values for elements, which are not valid (no, the schema is not strict enough) and i would like to log wrong values and in order to find those elements later...more >>

Newbie: Read/Write xml
Posted by Adriano at 9/24/2004 3:33:56 PM
hello, I have the following XML file (config.xml): ******** <?xml version="1.0" encoding="utf-8" ?> <configuration> <dbSettings> <dbhost>SQLSERVER</dbhost> <dbuser>user</dbuser> <dbpass>pass</dbpass> <dbname>Northwind</dbname> ...more >>

validate xml?
Posted by bo_dong NO[at]SPAM yahoo.com at 9/24/2004 2:31:06 PM
I can create this xml document, but can't read it from file into XmlDocument object. It complains about the first charactor in node name... <123>567</123> Is there a way to turn off validation during XmlDocument.Load?...more >>

How to create web page with spreadsheet like functionality?
Posted by Tom at 9/24/2004 11:12:44 AM
Hello, I'm looking for a tool that would allow me to create a web page with the spreadsheet like functionality. Basically, I want to be able to type in a number in the cell and have all totals being calculated automatically without having a page refreshed (or a trip to the server). That would ...more >>

XmlTextWriter without a file
Posted by Magnus at 9/24/2004 10:49:47 AM
can anyone help me on how to create and manipulate a xmttextwriter without having to craete a physical file. I have an application that should return data in xml. But I do not want to create a file and then delete it. /Magnus ...more >>

xml schema import help
Posted by Iain A. Mcleod at 9/23/2004 8:11:16 PM
Hi I'm stuck with the following schema validation problem in VS.NET 2003: I have two types of xml document and related schema: project and projectCollection. A projectcollection is just a set of projects. Therefore, I wish to include the project customType in the projectCollection namespace....more >>

Xpath / XPathExpression equivalent of SQL's "Top" function
Posted by ree32 NO[at]SPAM hotmail.com at 9/23/2004 7:15:57 PM
Is there one? Also in either xpath or XPathExpression whats the best way to get the full xpath of a node. As i am using xpath query of (//books/.......) So I would like to see what is before the /book tag?...more >>

soapformatter vs xmlserializer
Posted by Jarda at 9/23/2004 6:22:49 PM
Hi all, i'm looking for some performance comparison some charts. I have read the xmlserializer is better, more flexible and faster (analyzing data types in constructor), but there are some limitation (i.e. public members). SoapFormatter is better to serialize arbitrary data. I have done some tes...more >>

How to access web service from client-side Jscript?
Posted by David at 9/23/2004 12:57:01 PM
I understand that MS has dropped support of the webservice HTML component. So, what is the new "supported" way of accessing a web service from client-side Jscript? DT ...more >>

how to transform xml according to c# vars
Posted by axis at 9/23/2004 12:12:54 PM
My menuing system uses xml/xslt to create the menus on my site. C# variable values dictate what menu items in the xml get translated by the xslt into the menu, and which are hidden. Say, if the user is logged in as non-admin, don't render the admin links. Currently, I have an extra attribute i...more >>

How to covert c# class to xml schema?
Posted by Cindy Liu at 9/23/2004 12:01:04 PM
Hi Everyone, In .Net we have XmlSerializer to convert c# class to xml, or vice versa. Do we have any APIs to convert c# class to XSD? Thanks in advance, Cindy...more >>

Beginner XML question
Posted by db at 9/23/2004 10:31:04 AM
Hello, I have a simple XML file which I want to parse through in .NET using C#. Do I have to parse line by line , or is there a way to marshall the tree into an object type? Can someone refer me to an online document describing how I would do either? Thanks D...more >>

xsd:any with nested xml
Posted by yanivya NO[at]SPAM cellcom.co.il at 9/23/2004 7:03:55 AM
pls help me! I have a nested xml: <?xml version="1.0" encoding="utf-8" ?> <root> <myType> <FName /> <pop /> </myType> </root> with this xsd: <?xml version="1.0" encoding="utf-8" ?> <xsd:schema id="test1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="root"> ...more >>

Unknown method
Posted by Predrag Tomasevic at 9/23/2004 4:15:01 AM
I'm trying to use selectNodes from javascript and my Xpath expression is for some, to me unknow reason, failing... I'm usinh this: xml.selectNodes("//xml/rs:data/z:row[contains(@title, 'ehe')]") There are nodes that fulfill condition expressed in XPath - there are nodes with attribute titl...more >>

XmlNode.ChildNodes Bug????
Posted by schiller NO[at]SPAM inode-dot-at.no-spam.invalid at 9/23/2004 4:03:42 AM
Hi, I just tried to replace a single XmlNode with several ChildNodes. When doing this with the following code i found out that if you get the ChildNodes with 'ChildNodes' - property the nodes get removed. Is this possibly a Framework Bug?? foreach( XmlNode node in oldNode.ChildNodes ) {...more >>

Dont want to write xsl transformation(html) to a file
Posted by Edwin Loubser at 9/23/2004 3:09:01 AM
Hi, My problem is that I dont want to output the transformed xml to a file! I convert a Dataset to xml and then apply the transformation using xsl. Dim xmlDoc As XmlDataDocument = New XmlDataDocument(ds) Dim xslTran As XslTransform = New XslTransform Dim writer As XmlTextWriter = New XmlT...more >>

Create XML Document given an XSD
Posted by Victor Hadianto at 9/22/2004 11:31:04 PM
Hi, Does .Net framework provide a way to create an XML Document based on an XSD? I know that there may be an issue with the data inside it, but it doesn't have to be a valid XML document to start with and then the user can fill in the blanks. Regards, --- Victor Hadianto http://www....more >>

Xml serialization/deserialization
Posted by Snowman at 9/22/2004 3:08:35 PM
Suppose I have a RootObject which holds a collection of other objects. The other objects have a property (Parent) which refers back to the "parent" collection (b.t.w. my collection is based on CollectionBase), in similar fashion as the object models of MS Office. I want to serialize this obj...more >>

XML by J#
Posted by Raza at 9/22/2004 1:13:44 AM
Can J# compiler generate XML file as C# compiler does. Thanks...more >>


DevelopmentNow Blog