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 2006 > threads for february 8 - 14, 2006

Filter by week: 1 2 3 4

removing a container in XML serialization
Posted by Iain at 2/14/2006 3:18:20 PM
What I want is to take a class like public class Fred { [XmlaAttributeAttribute]; public string Name; [SomeAttributeHere] public string[] Items; } and have it sereialize like <Fred Name="MyName"> <Item>Item1</Item> <Item>Item2</Item> </Fred> But I cannot see how to avoid i...more >>


XmlResourceResolver
Posted by Peter Morris [Droopy eyes software] at 2/13/2006 1:36:15 PM
Hi all I am using XmlValidatingReader to read XML one line at a time and also validate it as I go along. I cannot rely on the XML to have the required xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="DataImport.xsd" attributes in the root node, and...more >>

Can't understand schema validation error
Posted by Brad Wood
I'm using a 2.0 XmlReaderSettings object with setting.ValidationType set to ValdationType.Schema to validate a document against a schema. Following is a schema fragment (names altered): <xsd:element name="Stuff"> <xsd:complexType> <xsd:sequence> <xsd:element ref="RequiredSimp...more >>

validating XML with XmlValidatingReader
Posted by prefersgolfing at 2/12/2006 8:01:38 PM
I have a doc that that I am entering an incorrect value in a node that expects an restricted enumeration yet I can't get the ValidationEventHandler to fire. Shouldn't it fire if it finds an enumeration that's not listed in the schema? I've also misspelled node tags and it still won't fire. Am ...more >>

reading only the first 30 bytes of an HTML file with xml object
Posted by ergun at 2/12/2006 10:45:10 AM
Hi, I wonder if there is a way to read only the first x bytes of a xml responsetext. In my project I need only first 20-30 bytes of very large HTML files and i don't want to wait for the rest to be read. Here is a piece of code i use ; Dim xml As New MSXML2.XMLHTTP xml.Open...more >>

XSD help please
Posted by Peter Morris [Droopy eyes software] at 2/11/2006 1:33:03 PM
Hi all I need a little help with XSD, here is my XML <data> <brandData> <brandGroups> <brandGroup> <name>Group1</name> </brandGroup> <brandGroup> <name>Group2</name> </brandGroup> <...more >>

Issues Serializing A Derived Class and its Base using IXmlSerializable, Can't See Base
Posted by Peter Nofelt at 2/10/2006 1:19:47 PM
Hey All, I am having issue with serializing a class and its base class using ..net 2.0. I am using IXmlSerializable I've provided code displaying my at the bottom of this post. Thanks ahead of time for any help or feedback. Cheers, Peter www.nofelt.com Situation =========== I am us...more >>

Searching through DB Table containing Records in XML format
Posted by ANDY AIYER at 2/10/2006 12:31:11 PM
Guru's! Your time and guidance is much appreciated in this task that i am trying to get done. Background I have a SQL Server 2000 database table which contains 2 Fields (RecordID, XMLData (datatype=TEXT). There are about 10,000 records in this table. The Data in the field (XMLData) is a ...more >>



Unable to generate classes with XSD
Posted by Chris Smedley at 2/10/2006 11:47:51 AM
I am attempt to perform something that I thought should be quite simple... I want to take the VoiceXML 2.0 or VoiceXML 2.1 XSD definitions and create classes. It appears that a number of items are not included in the definitions of either version of VoiceXML and I find this unlikely. For Vo...more >>

How to save nested xml in Datagrid?
Posted by Shelby at 2/10/2006 12:00:00 AM
Hi, I'm having problem saving the data in Datagrid back to my XML file. Below is the code: dsConfig.ReadXml("./Settings.xml"); XML File: <Import> <POSTerminals> <POS> <StoreNo>S0001</StoreNo> <TerminalNo>T01</TerminalNo> </POS> ...more >>

xml fragment - undeclared namespace
Posted by John Slagle at 2/9/2006 9:22:52 AM
I am trying to parse this XML fragment: <xsl:apply-templates select="_APPLICATION/MORTGAGE_TERMS" mode="attrSpec"> <xsl:with-param name="elem" select="'LENDERLOANNUM'"> </xsl:with-param> <xsl:with-param name="attr" select="'LenderLo...more >>

Having trouble with validating XML against XSD
Posted by Griff at 2/9/2006 3:56:30 AM
I can get an app to work with XmlValidatingReader but of course that is "obsolete". I'd prefer not to use an obsolete class if possible. However, when I instead used XmlReader as suggested, my program hangs at the line. myXmlReader.Settings.ValidationType = ValidationType.Schema; I do...more >>

How do I properly add a custom section to my Web.Config?
Posted by Brad Wood
If I add my own section to my Web.Config file of my (2.0) web service project (and refer to it by adding a "section" sub-element to a "configSections" element, I then get information messages ("Could not find schema information for the element"...) for every custom element and attribute in m...more >>

Validating XML with empty dateTime & numeric elements
Posted by craig.wagner NO[at]SPAM gmail.com at 2/8/2006 10:45:27 AM
I have an element in my schema defined as follows: <xs:element name="BillingDate" type="xs:dateTime" nillable="true" minOccurs="0"/> I use the schema to validate incoming documents using an XmlValidatingReader in .NET 1.1. If the document contains the above element with no data, for examp...more >>

xslt formatting question
Posted by Jon at 2/8/2006 9:15:01 AM
I would like to make a table using xslt and I need to put html anchors in the table. I want to do something like the following, but can't figure out how... Anyone able to help out? <xsl:for-each select="PayDet"> <tr> <td> <xsl:for-each select="Vendor_Invoice_Id"> ...more >>

ReadBinHex method
Posted by Karine Bosch at 2/8/2006 1:14:03 AM
Hi, I'm trying to read binary information from an XMLTextReader and to save it to a .jpg file, using a FileStream. I don't want to use an XmlDocument because of performance reasons. But the only example code I could find is: byte[] binhex = new byte[1000]; do { binhexle...more >>


DevelopmentNow Blog