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

Filter by week: 1 2 3 4 5

xmlTextWriter
Posted by Gilgamesh at 3/31/2006 2:50:17 PM
Hello, How do I use this class to create an XML document without saving it into a file? I need to store the XML documen into a string so it could be passed as a parameter to another class. Gilgamesh ...more >>

XML validate by XSD schema with C#
Posted by gmocnik NO[at]SPAM gmail.com at 3/31/2006 5:57:23 AM
I am validating XML files on a server which has no internet access and the validadation in C# does not work. Schema with which I am validating has namespaces like: xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#". I have these schemas all locally on ...more >>

GetXml() does return all fields.
Posted by GMG at 3/30/2006 11:55:40 PM
Null fields are missing, how can I prevent this and return all fields in the dataset. I am using the XML returned from a DOTNET XML webservice with a data island in Internet Explorer. The error occurs when the updated XML is posted back to the server with missing fields. How can the Web Service ...more >>

how to find nodes at xml file without complete load the xml file
Posted by joe at 3/30/2006 5:29:01 PM
how to find nodes at xml file without complete load the xml file since the file is very big!!...more >>

XSD schema does not validate
Posted by Doru Roman at 3/30/2006 11:12:15 AM
Hi, I use C# to validate an XML document. It issues error messages and I do not understand why. Here is the XML document: <bookstore xmlns="http://tempuri.org/books.xsd"> <book genre="novel" style="hardcover"> <title>The Handmaid's Tale</title> <price>19.95</price> <author> <...more >>

Implementing XPathNavigator on my class
Posted by Vinayak Kamat at 3/30/2006 8:55:26 AM
Hi, I've an 'Employee' class. In my program this object is manipulated, children (List<T>) added, properties modified etc. Everytime this happens I want to be able to show some relevent html to the user. So I use XSLTransform. This Employee class is basically an XML serializable class produce...more >>

persisent timeout problem consuming webservice
Posted by Robbert van Geldrop at 3/30/2006 2:37:03 AM
Hello, I have a problem in a C# client that consumes a webservice which is wrapped by WSE 2.0 sp3: The WebService works fine but very rarely my client comes in a state where every call to the webservice results in a timeout exception. Meanwhile all my other internet traffic passes normal...more >>

Match rules are never fired!!!--Please help--Urgent
Posted by Ankush at 3/30/2006 12:07:00 AM
Hi, My match rules are not fired (though they should)--can anyone help me please? XML File trail.xml contents: --------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <COURTCASE xmlns:lnv="http://www.lexis-nexis.com/lnv" xmlns:lnvxe="http://www.lexis-nexis.com/l...more >>



Web.config with multiple schemas
Posted by Sami Marzouki at 3/29/2006 3:13:07 PM
Hi, What I'm trying to do is: - To write a Web.config with custom sections. (Done) - To write a xsd schema for this custom sections.(Done) - Tell the Web.config to take the two schemas. When i specify the two schemas in the schemas property of the web.config, it seems that only one is ...more >>

How can I validate an XML document with C#?
Posted by Doru Roman at 3/29/2006 11:27:16 AM
Hi, I am a beginner and I try to understand how can I use C# and Netframework to validate an XML document. Is XSD a solution? How? Thanks, Doru ...more >>

Can a XSLT combine several XML files during process?
Posted by msnews.microsoft.com at 3/29/2006 12:00:00 AM
Hi Does anybody know if XSLT can process several XML file at a time I have two xml document which stored in memory stream and wanna to combine it together under several rules. I am tring to use a XSLT file but donon how to process several xml at a time Regards, Norton ...more >>

Attributes failed to serialise correctly
Posted by Glenn at 3/29/2006 12:00:00 AM
Hi Here's the scenario... I have a web method to which a pass a customer ID. The web method looks up the customer and returns an XmlNode which I deserialise into a type. I then update information in the type and then serialise it back into an XmlDocument ready for submission to another...more >>

XmlSchemaValidator and XmlSerializer.Deserialize()
Posted by Vivek at 3/28/2006 3:46:25 PM
In an application which uses an XML file, I wish to use XmlSchemaValidator class to validate this file against the XSD file.. In the example of msdn, ( http://msdn2.microsoft.com/en-us/library/system.xml.schema.xmlschemavalidator(VS.80).aspx ) , before initialising the XmlSchemaValidator, X...more >>

2.0 : fastest read-only forward-only loading method
Posted by John A Grandy at 3/28/2006 1:22:34 PM
In 2.0 what is the fastest way to iterate through an element set in a read-only forward-only XMLDocument ? For example , load the key/value pairs in the following xml doc into a hashtable : <Mappings> <Mapping MappingKey="AL" MappingValue="Alabama" /> <Mapping MappingKey="CA" Map...more >>

Serializing array of objects of different types
Posted by geshas NO[at]SPAM gmail.com at 3/28/2006 9:51:15 AM
Hello, I need to serialize/deserialize array of non-typed objects to/from such xml: <contents> <resource name="res1" /> <category name="cat1" /> <resource name="res2" /> <category name="cat2" /> </contents> So that Contents object is array that consists of Resource or Category...more >>

Using XmlDocument.Save removes previous formatting of the file
Posted by Aaron Sellers at 3/27/2006 2:03:08 PM
Hi all, I have a nicely formatted .xml file that loses that nice formatting when I edit it and use XmlDocument.Save to save the file. Does anyone know of any way to keep the formatting I had when I opened the file? Thanks! Aaron Sellers ...more >>

Where to write XQuery statements?
Posted by Shilpa at 3/27/2006 3:54:17 AM
Where to write XQuery statements? For eg: doc("D:\\workArea\\Books.xml")/Books/Book/Name ...more >>

Import custom namespace in XSLT
Posted by Alok Sathaye at 3/27/2006 12:00:00 AM
Hi, I wanted to use the <msxsl:script> tag in a XSLT and include a .Net defined namespace. For ex: System.Web It seems the framework 1.1 does not work in a manner mentioned in the documentation. The framework gives me a run-time exception and does not transform the input file Have you...more >>

Invoke Web Service using a Client Application
Posted by Ganesh Muthuvelu at 3/26/2006 2:55:29 PM
Hi, I have a web serivce created that contains several methods that are NON-PRIMITIVE types - meaning I cannot test it directly from the browser. So, I thought of devloping a client application in .NET that can submit the XML request and receive the response. I created the application and...more >>

Newbie: fetching XML over http
Posted by Chris at 3/26/2006 1:38:36 PM
I have an external application that returns XML in response to http requests. I need to get the XML and process it in a 1.2 .NET/ASP/IIS environment. I'm just getting started with .NET and know very little about it (I'm primarily a Java developer). What's the best approach here? ...more >>

Querying in an XML file
Posted by Curious at 3/25/2006 1:14:22 AM
Hi, I have the XML file shown below. Now I am trying to retrieve all the 'Event' nodes using XPath. The code being used is shown below. The output being ouput is the data in the SubNodes given as one string. (Output shown below) Is there a way how to iterate through the sub-nodes(From...more >>

Testing for non-existing namespace attribute?
Posted by Lidström at 3/24/2006 4:13:17 PM
Hello! I'm using msxml3 in the C++ environment, VC 7.1.3088. How do I know if the namespace attribute doesn't exist? I want to put it in a std::string, and I try to do that like this: string CXmlNodeWrapper::GetNamespaceURI() const { if( IsValid() ) { _bstr_t str = m_xmlnode-...more >>

Element order on serialization
Posted by jamie at 3/24/2006 1:24:00 PM
Here's a class I'm working with public class BatchHeader { public string ScaleSite; public string FromScaleDate; public string ToScaleDate; public string SubmitterBatchID; System.Xml.Serialization.XmlElementAttribute(DataType="integer")] public string DocumentCount; ...more >>

"Show XSLT Output" in VS2005 with extended functions
Posted by Peran at 3/24/2006 6:01:02 AM
If I create a simple xslt stylesheet I can quickly test this in VS2005 by pressing the "Show XSLT Output" button rather than running the whole solution. If I then create a xslt stylesheet with some extended functions I have to run the whole solution (adding the extension objects to the XsltAr...more >>

With an XmlNode from a NodeList Can you tell where you are in the original XmlDocument
Posted by dickster at 3/24/2006 4:14:57 AM
This problem was raised in another post Assuming we have an XmlDocument (xDoc) that has a node (<dickster>) randomly dispersed throughout the hierarchy. eg <root> <A> <B> <C> <dickster>1</dickster> </C> </B> </A> <D> <dickster>2</dickster> </D> <E> <F> ...more >>

Setting row color to be based on content in cells in rows in XML
Posted by vincemoon NO[at]SPAM rcn.com at 3/24/2006 4:09:34 AM
What would be the best software, and also what would be the best programming language based solution, to solve the following problem: I have an XML data set I reference with the usual HTML table. What I want to do, is to give rows in the data that contain, say the word X in column 2 a red back...more >>

wat is the best way to pass xml into Stored Procedure
Posted by SwatSoftwareDev at 3/24/2006 12:00:00 AM
Hi All, I want to use XML technologies with SQL Server 2000 for sending master details data from Application to SQL Server. I'm using xmldocument class for writing data in the form of attribute centric elements. First I write data into xmldocument (using appendchild, setattributes methods), an...more >>

Implementing xsl:message with .Net 1.1
Posted by Alok Sathaye at 3/24/2006 12:00:00 AM
Hi, I have an XSLT which outputs an <xsl:message> How can I handle it using .net framework 1.1 I know 2.0 has provided an event to trp the message. Is something similiar possible in 1.1 also? Thanks, Alok ...more >>

Regular Expression Help
Posted by Michael Primeaux at 3/23/2006 9:53:38 PM
I'm somewhat new to regular expressions and am in need of assistance. I'd like to match on any OBJECT, EMBED, or APPLET element nested inside an <HTML> element. Would someone point me in the right direction for creating such a regular expression or at least point me to the correct news group? ...more >>

Problem with document()
Posted by Lis at 3/23/2006 8:31:21 AM
Hi, I have inconsistent behavior of document() function which I hope someone can explain. I have Windows Service (runs as LocalSystem) that perform some Xslt transformation. In the stylesheet I load another Xml document using document("http://localhost/myfile.xml") syntax. I use XmlUriRe...more >>

new line replacement in xsl:attribute value with fx2.0
Posted by Carlo Folini at 3/23/2006 1:30:29 AM
Hi, I have the following xsl: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="/"> <a> <xsl:attribute name="href"> pippo </xsl:attribute> </a>...more >>

serialization in compact frame not listing some elements
Posted by jamie at 3/22/2006 1:35:28 PM
OK I'm not sure how explain this without giving hundreds of lines of code. basically I have a main class that I want to serialize. It's constructor creates more classes that I also want serialized. public Mainclass{ public subclass1 class1; public MainClass() { class1 = new...more >>

XSD One Multiple element question
Posted by Victor at 3/22/2006 6:50:30 AM
Hi, I am trying to define a Key element for a vehicle schema. I have three ways to uniquely identify a vehicle such as URN, UnitID and Vin. I'd like to make a rule that ensures that at least one of the three is present, but 2 or all 3 can be present. I tried something like below, but it ...more >>

for some reason when i deploy my C# application on windows 2003 occasionaly rdr[0].ToString() hangs where rdr is a System.Data.SqlClient.SqlDataReader
Posted by Daniel at 3/21/2006 11:36:31 PM
for some reason when i deploy my C# application on windows 2003 occasionaly rdr[0].ToString() hangs where rdr is a System.Data.SqlClient.SqlDataReader. Is there a fix for this? is my visual studio.net out dated? ...more >>

How to add parent node in Vb.NET
Posted by neerajb NO[at]SPAM noida.nospamhcltech.com at 3/21/2006 8:46:22 PM
Hi, I am having an XML document(input.xml) which is showing the menu heirarchy used in my application.My requirement is to add "submenu" tag to those menuitems who are having the child menuitems as shown in output.xml. I am using VB.NET framework 1.1. Please Help, i have already invested ...more >>

Get Xml schema from user defined type at runtime?
Posted by John Glover at 3/21/2006 3:33:30 PM
To whoever can help, Is there a way to get the Xml schema for a user defined type at runtime? I've looked at the XmlSerializer as I had hoped there might be a way to retrieve it. I've also looked at XmlReader and XmlWriter, but again no luck. I am trying to generate a schema for an arbit...more >>

XML Deserialization (IXmlSerializable implementation)
Posted by John Glover at 3/21/2006 2:41:40 PM
To whoever can help, I've been having a problem with XML deserialization lately. I needed to serialize and deserialze two objects which inherited from Hashtable. Because IDictionary implementations cannot be serialized, I had to take matters into my own hands by implementing a wrapper o...more >>

Creating, saving pages showing xml docs in various sort orders automatically
Posted by vincemoon NO[at]SPAM rcn.com at 3/21/2006 12:18:14 AM
I can see from http://72.14.203.104/search?q=cache:6f-yXCR3f8kJ:www.readol.net/books/computer/WEb/XML%2520Programming/xmlproghtml/32ch08b.htm+%22metadata+about+any+entity%22&hl=en&gl=us&ct=clnk&cd=3 how XML is transformed by XSL into a sorted HTML table. That is, the XSL turns the XML, which is n...more >>

XML Schema with unnkown Element names
Posted by Mark Doerbandt at 3/20/2006 10:29:48 PM
Hi, I need to validate a XML document where some of the element names are unnknown. <xs:any processContents="lax"/> or "skip" allows me to do so. But: I want to validate those elements - the only thing unknown is the name of the elements. Especially the attributes are well-known and ne...more >>

XmlArrayItem not allowed on Root Elements
Posted by Wilco at 3/20/2006 10:49:20 AM
I'm trying to serialize a collection, which is the root element, however the items in the collection contain derived classes, and thus give an error without XmlArrayItem attributes. However I can't add these to the field I'm copying from as its the root element, and so they appear to get ignored...more >>

Deserialization Error
Posted by Doug at 3/20/2006 7:46:23 AM
Hello, I am trying to deserialize a very simply XML file and have the following code to do it. When I run the code, I keep getting this error: "An unhandled exception of type 'System.InvalidOperationException' occurred in system.xml.dll. Additional information: There is an error in XML doc...more >>

Upload XML file to website cart, Security Issues?
Posted by Stork via DotNetMonster.com at 3/17/2006 8:01:27 PM
Hi, Just a little background info, I am working on a WinForms program that allows users to have an eletronic version of my catalog, since while they are actually looking at peices they need to buy they won't also have internet access and be able to go to the website. The catalog has a fe...more >>

XmlBookmarkReader bug using ReadSubtree
Posted by eric.olstad NO[at]SPAM gmail.com at 3/17/2006 7:45:40 AM
I have discovered a bug in XmlBookmarkReader (code provided by MSDN, but not necessarily supported by Microsoft). The article is found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/XmlBkMkRead.asp Consider the following code to print xml. This code ass...more >>

NULL Value in XML Schema
Posted by Reuven Nisser at 3/16/2006 2:33:05 PM
Hi All, How to define an XML element with no value and no attribute? <X> <Y/> </X> And Y has no value? I've done it with: <xsi:element name="Y" type="rn:T_NULL"/> <xsi:simpleType name="rn:T_NULL"> <xsi:restriction base="xsi:string" length="0"/> </xsi:simpleType> But it seems...more >>

creating an instance of a custom control in xslt?
Posted by Josh Wolf at 3/16/2006 10:19:30 AM
I feel like this question has been half-answered on here for me a few times, but I'm looking for a more complete solution. I've got the results of a query being returned in XML and processed with XSLT via XmlDocument and XslTransform in C#. It outputs a web form. My problem is that I've got a ...more >>

sql server data to ms word using xml
Posted by ads at 3/16/2006 1:17:30 AM
hi i was given a task to display sql server data in ms word using xml. Im currently doing research to accomplish the task. What i have in mind is to create an xml template (or schema?) to load the sql server data first.Then add the xml template in the ms word add-in option. Is it possible? ...more >>

Read XML document from Web Service
Posted by Jeff Ditty at 3/15/2006 9:50:04 PM
Hello- I am looking for the best way to run different Xpath expressions from a web service, and return the appropriate XML data. The data source that the web service queries is an XML file, that is not very large (less than 2 MB). I can retrieve the entire XML file, but I would like to ha...more >>

blank lines screwing up XMLDocument object
Posted by Glenn Venzke at 3/15/2006 3:31:28 PM
I have an XMLDocument object that is attempting to parse an xml document generated by a cold fusion page. The problem is that for some reason the cold fusion page is generating a number of carriage returns preceding the XML declaration. This is causing the following error: System.Xml.XmlExc...more >>

Dataset diffgram doesn't set xsi:nil for nullable elements
Posted by KillerJ at 3/15/2006 7:31:21 AM
I found a post about this exact issue: http://groups.google.com/group/microsoft.public.dotnet.xml/browse_thread/thread/1dfeb38170cb0b1/ea073666a4035bd5?lnk=st&q=decimal+parse+error+loading+dataset&rnum=6&hl=en#ea073666a4035bd5 but it only shows how to correct the issue manually, not whether it...more >>

Read attributes of elements from xml schema.
Posted by asjad at 3/15/2006 1:48:01 AM
Is there any way through which attributes of elements along with their default value and possible values can be retrieved from the schema using C#. Any help will really be appreciated. ...more >>


DevelopmentNow Blog