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 2006

Filter by week: 1 2 3 4 5

All - Element limitation - XML Schema
Posted by Istvan Loerincz at 9/29/2006 7:04:52 AM
Hi ! "The all element provides an XML representation that describes an unordered set of element types." But for minOccurs, and maxOccurs I can only use "0" or "1". How can I achieve that I can have more than 1 or 0 elements of the element types inside the all element ? ..I recognized thi...more >>


Creation of XSD from XML
Posted by Urs at 9/28/2006 6:12:29 PM
Hi Is there an easy way to programmtically create an xsd-schema from an xml file? Reason .... I create slightly different xml documents in my app, based on user data. I would like to create a temporary schema files from those xml documents, in order to use the data in a UI grid. I found ...more >>

String Serialization issue
Posted by ukfreethinker NO[at]SPAM yahoo.com at 9/28/2006 2:38:00 PM
Hello Using Visual Studio, I created a WebService with the default "HelloWorld" method. It all works fine but when I try to get the method to return a French string, all the accented characters are removed. ie. I changed the webservice implementation to: <WebMethod()> _ Public Funct...more >>

Need Simple XML help in VB.Net or C#
Posted by James Fifth at 9/27/2006 12:43:19 PM
Hello and God Bless, I am stumped trying to get a simple xml database replacing certain data with other data programmatically. This is what my xml looks like. **************************************** <Root_Element> <Topic index="1"> <Sub_Topic> <Notes></Notes> <Notes></Notes> ...more >>

Display XML in WebBrowser Control
Posted by Webbert at 9/27/2006 4:23:02 AM
I am trying to display XML in a WebBrowser Control. I receive a data feed of XML and am trying to inject it into the control. I have not been successful in doing so. The only solution I have found is to write it to a temp file and then use the Navigate method to load it. As the control ...more >>

Getting the right nodes
Posted by Klaus Jensen at 9/27/2006 12:00:00 AM
Hi Using Xml.XmlDocument I need to get all <rfd:li>-elements below <photoshop:SupplementalCategories> in the below XML-sample. I normally use GetElementsByTagName, but since there are other <rfd:id> elements other places in the doc, I cant. How do I navigate the tree and get the right nod...more >>

Urgently needed a tool for generating XSLT file
Posted by Navneet Gupta at 9/26/2006 9:09:02 PM
Hi, I am a novoice developer for XML and XSLT. I need a tool which generates XSLT files. The UI should be similar to the transformation maps we create in BizTalk; it would be greate if I can host the UI in my .Net application. Or can I host BizTalks map designer in my .Net application? ...more >>

Urgent XSL question, please help, thanks
Posted by davidw at 9/26/2006 1:08:01 PM
I have xml tree like <root> <field name="l1"> <field name="l11"> <field name="l111"/> <field name="l112"/> </field> <field name="l2" stop="true"> <field name="l21"> <field name="l211"/> <field name="l212"/> </field> <field name="l22"/> </field> <field name="l3"/> ...more >>



New at this
Posted by ampeloso NO[at]SPAM gmail.com at 9/26/2006 8:54:22 AM
I have the following: <?xml version="1.0" encoding="utf-8" ?> <Football> <Week>1 <Player> MikeP </Player> <Team> Seattle </Team> </Week> <Week>1 <Player> AnnaP </Player> <Team> IDONTKNOW </Team> </Week> </Football> ...more >>

XPath peformance vs Hash
Posted by Ben at 9/26/2006 8:42:54 AM
How does XPath performance compare to accessing a Hashtable structure? I will need to access the same data repeatedly throughout the lifecycle of my application. What factors should I take into consideration? ...more >>

what r the XML softwares?
Posted by Joshua at 9/26/2006 5:58:02 AM
Hi everybody, I am new in this field and i need a help from you .... can u tell me which all r the softwares r needed for doing an Xml prog.(with version) . Thank you, Joshua Joseph...more >>

Define a development approach to Parse/Load/Search an XML document of size ~1GB
Posted by Sandeep Akhare at 9/26/2006 12:42:10 AM
Hi All i have given a problem set in which i need to parse/load/search a xml document of near about 1 GB in dot net. Please help me in this also do not have the luxury to dump the data into a relational database Sandeep *** Sent via Developersdex http://www.developersdex.com ***...more >>

Deserialize xml
Posted by Rotsey at 9/26/2006 12:00:00 AM
Hi, I am getting an error when I try to deserialize a XML file into a object with a apostrpohe in the data. Works fine when I remove the apostrophe. Any thoughts???? ...more >>

Getting unescaped XML from a transform
Posted by the_dog_gabby NO[at]SPAM yahoo.com at 9/25/2006 6:15:25 PM
Hello, I have a stylesheet that contains C# functions to generate XML. When I apply the stylesheet to my document, everything works perfectly except the data I get back is escaped like so: &lt;test&gt;this is a test&lt;/test&gt; I need to get <test>this is a test</test> rather than the e...more >>

Opening and altering XML-doc using XmlDocument wrecks havoc on doc
Posted by Klaus Jensen at 9/25/2006 2:43:42 PM
Hi I am trying to post-process some XML-documents from some third-party software. I open them, find the right element, manipulate the text and write it back to the element. Dim x As New Xml.XmlDocument Dim nl As Xml.XmlNodeList Dim text As String Dim textOutput As String x...more >>

Crystal report Generation
Posted by Jack at 9/24/2006 2:36:01 AM
Hello All, Can anyone here suggest me a solution to solve my follwoing problem? 1) I got a .aspx page and on that page i got a combo box and a command button. Combo box displays records from the database. I wanted to generate a report which is based on the record that user selects from the...more >>

ReadXML Illegal characters in path
Posted by webmaster NO[at]SPAM 1stmiami.com at 9/23/2006 8:13:19 AM
Getting error: Illegal characters in path what's wrong with this? string xmlSR = "<XmlDS><table1><phone>Value1</phone><name>jake</name></table1></XmlDS>"; myDataSet.ReadXml(xmlSR, XmlReadMode.IgnoreSchema); DataList5.DataSource = myDataSet; DataList5.DataBind(); Also, what's the best way...more >>

Strange validation warning
Posted by jan_bar at 9/22/2006 6:14:05 PM
Hi, My VS.NET 2005 displays strang validation warning on xsi:SchemaLocation: The attribute 'http://www.w3.org/2001/XMLSchema-instance:SchemaLocation' does not match one of the four allowed attributes in the 'xsi' namespace. The data seems to be correct, where is the problem? Here are my f...more >>

roundtripping and xmlns attributes
Posted by Gary Stephenson at 9/22/2006 6:14:01 PM
I am endeavouring to use .NET v2.0 XML facilities to "roundtrip" reading and writing XML documents - i.e. to end up with _exactly_ what I started with, but I can't seem to figure out how to get an XMLReader to report "xmlns" attributes. It seems to report an "xmlns='MyDefaultURI'" ...more >>

swap nodes
Posted by Jan Kucera at 9/22/2006 2:35:43 PM
Hi, just a simple question, I have XmlDocument, two XmlNodes and I want to swap them in the document... how to do that? Any optimalizations these two will be siblings? ...more >>

Gradient color
Posted by jaydev at 9/22/2006 1:57:43 PM
Hi, I want to create Gradient color in my header (just like in microsoft site) but we don;t want use the image for that and also it should work in all browsers (If i use filter:progid:DXImageTransform.Microsoft.Gradient, it works only in IE). Please help me to solve this isse. Thanks, Jay...more >>

XmlSerializer and xsi:schemaLocation
Posted by grochmal at 9/22/2006 10:24:44 AM
I am trying to use XmlSerializer to serialize a class I have create specifically for generating an XML file. The problem is that the XML file must contain a xsi:schemaLocatio attribute in my root node but I can't figure out any way to do it. Here is what the resulting XML file must look like ...more >>

RSS feed
Posted by Steve at 9/21/2006 4:45:01 PM
I have a script that has been modified from one that I found on the internet to display RSS feeds in html. The script works fine for most RSS feeds but there are a number that it fails on with the error "End tag 'head' does not match the start tag 'meta'". Does any one on here have any ...more >>

XPath help
Posted by Showjumper at 9/21/2006 2:02:34 PM
Hi, I need some help with xpath. I am very unfamilair with XPATH. I have an xml file with the folloing structure: <Photos> <Photo> <Description>This is a photo of horse that colicked. The bowel is necrotic and on the wrong side of the horse. </Description> <FileName>deadbowel.jpg</FileN...more >>

IXPathNavigable.Value returns child node values
Posted by Keith Patrick at 9/21/2006 12:40:18 PM
I'm trying to parse some XML via IXPathNavigable, handling elements, text, and attributes with the same code but without having a switch (node.NodeType). However, if I look at a parent element in something like this: <MyParent> <MyChild>Text1</MyChild> <MyChild>Text2</MyChild> </M...more >>

Xpath Query
Posted by cobus.lombard NO[at]SPAM gmail.com at 9/21/2006 1:24:35 AM
Hi All Couldn't find an xpath specifig UG, so I'm posting this here. I have XML in the following structure: <Assignments> <Assignment> <ID>123</ID> <Description>Test Assignment 1</Description> <DueDate>2006/10/10</DueDate> <Tasks> <Task>...more >>

Xpath with multiple values..
Posted by Frano Hartman at 9/20/2006 10:20:02 PM
Is is possible to use XPath with multiple values like in SQL Queries (AND Clause).For example: If I have xml: <rows> <row code=1/> <row code=2/> <row code=3/> <row code=5/> <row code=6/> <row code=7/> <row code=100/> </rows> Now I want only to select rows 1,2...more >>

Autogenerate enumerations
Posted by Dan Bron at 9/19/2006 3:35:27 PM
Hello, Does xsd.exe support generating .NET enumerations from XSD enumerations? That is, if I have ... <xs:simpleType name="US_STATE"> <xs:restriction base="xs:string"> <xs:enumeration value="AL" /> <xs:enumeration value="A...more >>

Nested Predicates
Posted by dmessenger NO[at]SPAM verdantsys.com at 9/19/2006 3:29:49 PM
I need to access the primary context in a nested predicate and for the life of me I don't know how to do it. What I want to do is select the Applicant with any income in a single XPath query. Here is a snippet of xml: <Application> <Applicant Id="xxxx">...</Applicant> <Financial> ...more >>

Strange behaviour of AppendChild
Posted by Sek at 9/19/2006 12:54:50 AM
Hi Folks, I have come across a behaviour which seems strange to me. I wrote the following code for a task: -----BEGIN CODE------- XmlDocument idc = new XmlDocument(); idc.LoadXml("<book><title>The Confidence Man</title><first-name>Herman</first-name><last-name>Melville</last-name></book>...more >>

XML Parsing Peformance
Posted by george at 9/17/2006 11:13:55 PM
Hi, I have a xml file that is similar to a config file however this xml file is for an assembly. Currently, I parse the xml file using XMLReader however my assembly parses this file alot so I was wondering if I should use a different approach like loading it in memory in XMLDocument. Howe...more >>

Accessing dataset datatable table row problem
Posted by Tony Girgenti at 9/17/2006 12:08:27 PM
Hello I developed and tested a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1. It uses a web form. I used the XML Designer to create an XML .XSD Schema to produce a Dataset. In looking for a way to start adding data to the dataset programmatic...more >>

Constructing XML file based on Schema
Posted by Sek at 9/17/2006 8:19:20 AM
Hi Folks, I would like to create a XML file that adhere to the Schema definition files. My schema definition files import/include further XSD files and internal references can be to a depth of two or three. The data required for the creation of XML are present in the form of user defined...more >>

Insering a node via an expression
Posted by Jan Limpens at 9/16/2006 5:44:00 PM
Hello, I am creating a simple CRUD application which uses xml files as data storage. I extended Textbox with a XPath expression and a XmlDocument property, this way I can easily read and update existing nodes' content. I was very happy with the solution until the first time I needed to in...more >>

Need help designing XML Dataset
Posted by Tony Girgenti at 9/16/2006 4:12:46 PM
Hello I developed and tested a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1. It uses a web form. I tried doing this without any help, but i'm getting nowhere. I want to create an XML schema (XSD) for a dataset/datatable using the XML design...more >>

.NET XSLT Transform - Optimization
Posted by das at 9/14/2006 9:19:45 AM
Hello all, I am using .NET XSLT to transform an XML into another XML file. All this is fine with small files, but when tested with big files (30MB) it is taking between 1hr-2hrs to just transform the file. Here is the code snippet: XPathDocument xdoc = new XPathDocument(fs); XPathNavig...more >>

create dataset from stored procedure
Posted by vickilynnpgc at 9/13/2006 5:14:02 PM
I have a tsql stored procedure I want to drag from server explorer onto an xsd file. I get the error ' xml schema could not be interpreted'. The stored procedure does a select from a udf, that's it. ...more >>

XML Query Question
Posted by george at 9/13/2006 8:49:06 AM
Hi, I have the following node within a xml document. <Results> <Result> <RecordID>1</RecordID> ... </Result> <Result> <RecordID>2</RecordID> ... </Result> <Result> <RecordID>1</RecordID> ... </Result> </Resu...more >>

Question about C# classes generated from a .xsd via xsd.exe in VS 2003
Posted by Roy Chastain at 9/12/2006 12:27:58 PM
I have a schema that has been in existence over 1 year. I have been making a few minor modifications to it recently and suddenly the generated C# classes have made a radical change. I have just compared the xsd source to the last compiled version on 8/25/06 and they are identical, yet the gener...more >>

<xsl:text disable-output-escaping="yes"> does not work in XslCompi
Posted by Jon at 9/11/2006 2:07:01 PM
Hi, I used XslCompiledTransform with the following Xsl file. The <xsl:text disable-output-escaping="yes"> does not work when using XslCompiledTransform to do the trnasform (namely the output contain < not <), while it works when using MSXML2 to do the transform. Does anyone have the same pr...more >>

XML and Dataset
Posted by Istvan Loerincz at 9/11/2006 9:09:38 AM
Can somebody argue why its good to use Datasets to save XML data ? The flexibility of XML is gone, if I do that. I have an XML file, which I have to read in and work with. So I ask myself whats better, DOM access with saving the data in XMLNodes and XMLNodeLists OR save the xml data in an Da...more >>

Parsing XML
Posted by george at 9/10/2006 5:08:56 PM
Hi, I am parsing a XML string (see code below) by loading into XMLDocument and selecting certain node (Result) and loop through it. Instead of using item(), is there a way to get the element value by name? Also, is there a way to using the XmlTextReader to move to Search/Result and the...more >>

Why is my Validate always succeeding?!
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 9/10/2006 12:23:21 PM
Hi XmlTextReader reader = new XmlTextReader("Accounts.xsd"); XmlSchema schema = XmlSchema.Read(reader, null); schema.Compile(null); XmlDocument d = new XmlDocument(); d.LoadXml("<ThisShouldNotValidate/>"); d.Schemas.Add(schema); d.Validate(null); I'm just nulling the event handlers for...more >>

problem with document() function of XSLT
Posted by Michal at 9/10/2006 5:08:21 AM
Hi everyone, Microsoft states that the System.XML 1.0 included in framework 1.1 supports the W3C XSLT Specification. However, I am having a problem using the document() fuction specified in http://www.w3.org/TR/xslt (chapter 12.1). When using "<xsl:variable name="test" select="document('Resou...more >>

Defining a type or element for this element/complex data type ...
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 9/9/2006 12:22:13 PM
Hi <ClubNight Name = "Go club" Date = "2006-09-09"> Discussed a few simple proverbs. <Attendee Name = "RJ"/> <Attendee Name = "TT"/> <Attendee Name = "RB"/> </ClubNight> I'm trying to work out if I can actually define this as a complex type in my schema. I can do it no problems withou...more >>

Serialize SchemaTable without qualified type names
Posted by matt.skibbs NO[at]SPAM gmail.com at 9/8/2006 7:23:46 PM
When we moved a project from .NET 1.1 to .NET 2.0, we ran into an issue with some code that inserts a datatable from IDataReader.GetSchemaTable() into a dataset, and then serializes the dataset to XML. I need to strip all of the qualified type information and the rest of the junk from the serial...more >>

Validating Xml with an with the longer form of EndElement fails
Posted by Labm1ce at 9/8/2006 7:16:01 AM
' First create Xml document Dim oXmlDocument As New System.Xml.XmlDocument oXmlDocument.LoadXml("<Trees><Oak TreeType=""deciduous""></Oak></Trees>") oXmlDocument.Save("Trees.xml") ' .NET save xml document with spaces <Trees> <Oak TreeType=""deciduous""> </Oak> </Trees> ' Because...more >>

XmlTextWriter.WriteString
Posted by Gavin Sullivan at 9/8/2006 3:34:01 AM
Hi, I've been working on a bug in some production software using XmlTextWriter. Basically, I need to but a Surname in an element, the surname in question is O'Connor. Because of the ' I've used the following code: .WriteStartElement("Surname") .WriteString(clien...more >>

xHTTP send problem
Posted by julian.tklim NO[at]SPAM gmail.com at 9/7/2006 7:46:01 PM
Hi, I am using trying to send out an XML using ASP. It is actually trying to call some webservice application using SOAP. The problem is that the same codes works perfectly fine in Excel VBA on the same server, but when it comes to IIS server, the program stop at "xHTTP.send xDoc.XML" line....more >>

recursion xml element?
Posted by dotnetnoob at 9/6/2006 3:01:02 PM
i have a unusual problem or maybe to me :) i have a xml file that i need to insert xml element from a string string - /Box/BoxTest/Test i have a function that seperate the string out into arraylist and turn it into string array string array 0(array index) - "", 1 - Box, 2 - BoxTest, 3 ...more >>


DevelopmentNow Blog