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 > may 2005 > threads for may 1 - 7, 2005

Filter by week: 1 2 3 4 5

Serializing a StringBuilder
Posted by Chris Dunaway at 5/6/2005 2:18:09 PM
I have a simple class with a StringBuilder as a property. When I serialize it, I get this: <?xml version="1.0" encoding="utf-8"?> <TestMe> <AStringBuilder> <Capacity>32</Capacity> <Length>25</Length> </AStringBuilder> </TestMe> It serializes the StringBuilder but without it...more >>


.NET equivalent to XSLT value-of select
Posted by Trillium at 5/6/2005 7:47:31 AM
This seems like it should be really easy, but I cannot seem to make it work. I am trying to retrieve the text value of an element named "child2Element" from an XML file in a .NET (v 1.1) with an XPath expression. In an XSLT document I would use <xsl:value-of select="rootElement/child1Eleme...more >>

Error: The node to be inserted is from a different document context
Posted by schnell NO[at]SPAM rdacorp.com at 5/6/2005 5:27:22 AM
I'm getting an error that I'm very confused about. I'm trying to generate an XML file completely from scratch in code. Here is the code fragment that is causing me headaches: Dim mBOEDOC as xml.xmldocument dim inode as xml.xmlnode dim iNode2 as xml.Xmlnode mboedoc=new xml.xmldocument ...more >>

Simple XSL Transformations using XmlDocument
Posted by Fahad Ashfaque at 5/6/2005 5:19:21 AM
Hi, I found the XSL Transformation through .NET too complex. The most simplest overload of System.Xml.Xsl.XslTransform is Transform(inputfile, outputfile), but this saves the result into file. I need to supply the XmlDocument object (with the source tree loaded) and receive the output in stri...more >>

HL7 XSD's to Classes with xsd.exe failing
Posted by Michael Jervis at 5/6/2005 4:00:14 AM
Hi, I'm trying to create some classes from XSD Schemas from the HL7v3 specification (www.hl7.org). However, the schemas I'm using are returning errors. C:\projects\NPfIT\cs\MHS\MessageClasses\schemas>xsd POII_IN040101UK01.xsd /c Microsoft (R) Xml Schemas/DataTypes support utility [Microso...more >>

How to safeguard losing XML file content?
Posted by Nad at 5/5/2005 8:36:06 AM
Hello, I need some help with this: I am trying to update some data using XmlTextWriter. I instantiate first and then do some validation and then copy data into the dataset. Finally I commit the changes. As the following excerpt: Now the problem is that if there is a validation failure f...more >>

Deserializing XML into object
Posted by Nick at 5/5/2005 1:16:01 AM
Hi, I'm facing a problem when I have to deserialize an XML into an object. The typical scenario is as follows: The XML that I have to deserialize has multiple elements of the same type (lets say multiple occurences of <abc />) with different inner texts. Now if I use the already available d...more >>

XSLT logic
Posted by Oleg Konovalov at 5/5/2005 12:00:00 AM
Hi, I am new to XSLT, trying to fix a bug in somebody else's XSL transformer [it is XSLT1.x code, part of Cocoon2.0 app]. The logic of the code goes like that (in all cases filling in one XML structure mystruct): .... <xml:if (condition1) <mystruct>..block1..</mystruct> </xml:if> ...more >>



programmatically generate xsl
Posted by skidz at 5/4/2005 10:29:01 PM
I am trying to write an application that will generate XSL files (trying to automat some of my development), but am having a heck of a time. I just don't fully grasp the namespace issues I am having. This is what I have so far: ---------------------------------Code XmlDocument doc = new XmlDo...more >>

Using XmlDocument.ImportNode() and XmlNodeList, innerXml issues
Posted by Peter Nofelt at 5/4/2005 2:55:56 PM
Hey All, I'm running into this issue with parsing through an xml document by tag name. Below is an example xml document: File Name: things.xml <things> <people> <name>Peter</name> <name>Lindsay</name> </people> <animals> <name>dog</name> <name>cat</name> <name>bear</na...more >>

XmlValidatingReader invalid xsi:type
Posted by Jason Cartwright at 5/4/2005 10:41:51 AM
I have an abstract base class and two derived classes that I want to serialize and deserialize with schema validation. When I serialize instances of the derived classes the XmlSerializer adds the xsi:type="DerivedClass" attribute and the Instance Namespace. When I attempt to validate the xml upo...more >>

Attribute not getting Serialized
Posted by Julia Beresford at 5/4/2005 8:21:04 AM
Hi I have a c# class defined as follows: [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/wix/2003/01/wi") [System.Xml.Serialization.XmlRootAttribute(Namespace="http://schemas.microsoft.com/wix/2003/01/wi", IsNullable=false)] public class Registry { ...more >>

XPath Expression
Posted by Fede at 5/4/2005 12:00:00 AM
Hi, how can I specify a XPath expression to find only the nodes with attributes starting with a specified letter? For example: <events> <event id="e1"></event> <event id="v1"></event> <event id="v2"></event> <event id="e2"></event> <event id="v3"></event> </events> ...more >>

xml to text ???
Posted by chris ong via DotNetMonster.com at 5/4/2005 12:00:00 AM
hi everyone i wish to ask if anyone can help mi to convert a XML file to a normal text file that does not contain the tags and header.. i just want the information of the columns .. thanks in advance chris -- Message posted via http://www.dotnetmonster.com...more >>

VB.Net question on using the XML DOM (xmldocument)
Posted by SuperDrone at 5/3/2005 12:39:04 PM
I am about to go bonkers trying to figure this out -- So here goes Currently I am building an xml document and have no problem building the document with one namespace designation using the DOM. Here is a snip-it of what I have <vl:VNETList xmlns:vl="http://www.1234.com/VNET/List"> <Temp...more >>

XML in Access 2003: IXMLDOMNode - Invalid Character in Content Mod
Posted by SHC at 5/3/2005 10:12:03 AM
Hi all, I ran the attached volcanoes.xml (with geology.dtd) in the Module of Access 2003. I got the following error: Microsoft Office Access You have error Invalid Character in content model. ...more >>

Find and replace the value of node type that is Text
Posted by ryu at 5/3/2005 12:00:00 AM
Hi all, I have a xml document where I have to replace the value of node type that is text. For example, if the value of a node whose type is 'text' is 'Toyota', I would like it to be replaced with 'Honda'. Is there a way to do this? Thanks ...more >>

ASP.Net WriteXML Error
Posted by Kenneth Keeley at 5/3/2005 12:00:00 AM
Hi, I am reading in an xml file into a dataset that I then make changes to before trying to save the updates to file. When I do I get the following error: Token StartElement in state Epilog would result in an invalid XML document This is a sample of my update code: { DataRow dr; ...more >>

ds.writexmlschema produces file with xs: tags
Posted by MSSQLServerDeveloper at 5/2/2005 2:57:21 PM
I have a simple vb.net program that creates an xmlschema using the dataset method writexmlschema (see #1). It creates a file (see #2), but I would like a file that looks like #3 - #3 is DIFFERENT from #2 inthat it has a sql:relation, where #2 does not. Why is my code producing this when othe...more >>

XmlValidation Errors int TreeView Control
Posted by nataly at 5/2/2005 6:39:04 AM
I show some Xml file in Windows TreeView control. Wenn I validate Xml with some Xml-Schema, I have to show errors node with red color. How can I find an element name, which causes an Exception of XmlValidatingReader? ...more >>

Problem With serialization
Posted by Nikolay Petrov at 5/2/2005 2:31:59 AM
I get an System.IO.FileNotFoundException when trying to serialize data. The "not found file" is a random name .dll after doing some Google, if found this article: http://weblogs.asp.net/cschittko/articles/33045.aspx I am not expirenced enough to do the testing, which is described there. B...more >>

[XSLT] How to obtain nesting level?
Posted by Philipp Schumann at 5/1/2005 12:00:00 AM
Hi, I have several nested layers of <node> element that are processed by an XSLT template. Is there any possibility to determine the depth of a node in the overall nesting hierarchy? For example, I would like to obtain 0 for the root <node> tag; 1 for all child <node> tags; 2 for all tags t...more >>


DevelopmentNow Blog