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 > december 2005

Filter by week: 1 2 3 4 5

Valid xml to read from an xml file?
Posted by Chumley Walrus at 12/28/2005 1:30:20 PM
I'm using vb.net, i get an error at the reader line saying the remote server can't be found. Is the below even valid? dim reader as XmlTextReader reader = new XmlTextReader ("http://www.mysite.com/my.xml") do while (reader.Read()) 'do some action here response.write(reader) loop thanx ...more >>


Topics in XML
Posted by Intermediate at 12/27/2005 8:52:27 PM
Hi, I am a .NET Software Developer but I really have a hard time in understanding XML and its use in my applications so if anyone can tell me what are the important topics in .NET related to XML and any online material or books I can find. Thanks in advance. ...more >>

Array/NameValue Collection Serialization
Posted by parag.gadkari NO[at]SPAM gmail.com at 12/27/2005 8:22:54 AM
Can a name value collection be serialized as attributes to the Xml element of class containing this name value collection? For eg. if a class pControl: [XmlRoot("Control")] public class pControl { ..... NameValueCollection _dynamicProperties; ..... } if the _dynamicProperti...more >>

How to code <A> target attribute
Posted by Aaron at 12/27/2005 7:19:29 AM
<a> <xsl:attribute name="href"> http://<xsl:value-of select="name" /> </xsl:attribute> <xsl:value-of select="thelink" /> </a> Here above is the code for <a> links getting transformed--I would like to know how code in target=_blank? TIA ...more >>

XML Parsing with SAX
Posted by Sam at 12/24/2005 11:08:38 PM
Hi, Do anyone know if SAX can be used to parse XML using dotnet framework? If yes any sample will be greatly appreciated. Thanks. ...more >>

Newbie in XML
Posted by Curious at 12/24/2005 1:34:02 AM
Hi, I am using the following code, and the xml being generated is shown below: XmlNode root = Rdf.document.DocumentElement; XmlElement element = Rdf.document.CreateElement("rdf", "Stadium", Rdf.RDF_PATH); element.SetAttribute("about", null, Rdf.STADIUM_PATH+"/"+stadium.Name); root.AppendC...more >>

Multiple namespaces
Posted by Curious at 12/23/2005 6:04:55 AM
Hi, Is it possible to write the following with the use of XML? How? <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cd="http://www.recshop.fake/cd#"> Can someone help me out. Thanks in Advance ...more >>

Editing root name using XmlDocument
Posted by sridev at 12/22/2005 5:15:34 AM
hi, i am new to xml can any one plz tell me how to change the root name in a xml. <NewDataSet> - <PersonInfo> <ID>3123</ID> <Person>Mohan</Person> </PersonInfo> - <PersonInfo> <ID>3124</ID> <Person>Ram</Person> </PersonInfo> </NewDataSet> how to change <NewDataSet>...more >>



XML Validation: required attributes
Posted by uttara at 12/21/2005 4:31:44 PM
Hello All, I was trying to validate an XML document against a XSD which works fine. Then I tried to put in a version attribute on the root element and set it to a fixed value of '1.0' in the schema. Guess what? The validator completely ignores the attribute inspite of the fact that I have...more >>

Optimizing searches in readonly XML
Posted by Melgin at 12/21/2005 3:29:51 PM
Hi, I try to optimize a high loaded site ... the site needs to store in memory, a 400 tags XML that will be queried many times by many users (it have some biz rules)... I wonder if exists something like "compiled XML" or "binary XML" and clases in dotnet that optimize this queries by time ...more >>

Trouble validating XML w/ XSD.
Posted by Jonas Bush at 12/20/2005 12:16:31 PM
I've got the some code to try and validate some xml. Against my schema, the "Good" xml (below) produces a couple of warnings, which I don't care about. The "Bad" xml (also below), produces warnings as well, but *should* be producing errors. The XML validator at http://apps.gotdotnet.com/xmltool...more >>

How to validate an Xml doc with XSD
Posted by Gilles Lambert at 12/20/2005 6:11:06 AM
Hi, i'm trying to validate a doc.xml against a schema XSD this way, but it doesn't validate anithing : Dim xrs As New XmlReaderSettings xrs.Schemas.Add("urn:mediatheque-lrvb8", "schema.xsd") xrs.ValidationType = ValidationType.Schema AddHandler xrs.ValidationEventHandler, AddressOf Validati...more >>

question about using the correct schema namespace
Posted by Jay at 12/20/2005 5:56:02 AM
I have a Access/VBA client that exports xml to the local drive, then posts it over http to an aspx page. The aspx page consumes it, then builds itself based on the xml data. This works find only if I first mannually change the root entry's namespace url as shown below. Does anyone know how ...more >>

XML Validation in .NET
Posted by Francois Malan at 12/19/2005 11:28:07 PM
Hi In a schema, I have an element definition as follow: <xs:element name="XDateTime" nillable="true" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:dateTime"> <xs:pattern value="\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2} \p{Nd}{2}:\p{Nd}{2}:\p{Nd}{2}"/> </xs:restriction> </xs:simp...more >>

reading large xml files...
Posted by bongoo at 12/19/2005 9:47:18 PM
I'm reading a 20Mb xml file in vb.net using .net framework 1.1 But when I'm opening that file for the second time, memory consuption goes wild... Do I need to take newer .net framework, or to close XMLDocument on another way? (I'm accessing data using XMLDocument & XMLElement) Is it bett...more >>

Help needed with XPathNav
Posted by jainamber NO[at]SPAM gmail.com at 12/19/2005 1:29:14 PM
Hi, I am using this code to search on the id attribute of the Report element in this XML fragment. If I find a match for the id, then I need to return the value of the attributes of the child column for each column. The code I have written is not working and I do not have a clue about ...more >>

soap binding
Posted by RJ at 12/17/2005 11:13:51 PM
Folks, I need some help. I have a webservice that needs to be consumed by a Java app in Websphere(our customer's partner). Unfortunately, we don't know much on the Java side. The question is that they are requiring that the <soap:binding transport="http://schemas.xmlsoap.org/soap/http"...more >>

Testfiles
Posted by MG at 12/16/2005 5:57:02 AM
Hi, I need to verify a XML parser and need test files. Is there anyone out there that has .net XML file with a corresponding .xsd? that you can pass on to me? Thanks in advance! Sincerely Mats ...more >>

VS.net 2005 broke my client code that posts xml over http to asp.n
Posted by Jay at 12/15/2005 7:41:02 PM
After upgrading from VS 2003 to VS 2005, my stable VB client code that posts xml over http to an aspx page stopped working. Somehow, asp.net (or IIS) is expecting the root url to be http://www.w3.org/2001/XMLSchema, not http://www.w3.org/2000/10/XMLSchema as shown below. <root xmlns:xsd="htt...more >>

how do I get the ampersand character back?
Posted by David Bartosik [MSFT MVP] at 12/14/2005 5:15:00 PM
I'm parsing an XML file with XMLDocument, each node I write to SQL server. Sometimes values in the XML have to contain an ampersand, so they are in the XML as &amp; obviously. I assumed the .net framework took care of converting &amp; back to & But I'm wrong in that assumption. For eve...more >>

what is 'tns' in this statement in this wsdl doc?
Posted by hazz at 12/13/2005 8:33:51 PM
if I can ask that in this newsgroup? <input message="tns:addRestaurantIn"/> what is the tns used for here in this wsdl? Thank you thank you.. -hazz ...more >>

Sorting with XPATH
Posted by Loretta at 12/13/2005 3:01:02 PM
Given an XML node List with the individual nodes looking like the following, what kind of XPATH statement can I use to sort the nodes by element F8 and inside F8 by element F3? <OffNetworkRequestPackage> <Transaction> <OffNetworkRequest> <OffNetworkData> <UserEmail>loretta.pelis...more >>

How do I preserve XML tags in XSLT transform
Posted by Andrew Jocelyn at 12/12/2005 3:51:32 PM
Hi Is there a way of outputting some xml tags during an XSLT transform? For example when I use the 'xsl:value-of select="xhtml"' statement I'd like to output the children of 'xhtml' after the transform. At the moment the tags are being ignored. I don't want to put the contents inside CDATA ...more >>

directory structure xsl transformation question
Posted by dave at 12/12/2005 8:11:03 AM
I really have 2 questions regarding the following xml snippet. The xml is a directory representation. <?xml version="1.0" standalone="yes"?> <FileSystem> <Row> <ID>1</ID> <Name>Root</Name> <Directory>Root</Directory> <Dir>true</Dir> <ParentID>0</ParentID> </Row>...more >>

How do I create an XML file for my VB 2005 App?
Posted by dm1608 at 12/11/2005 2:42:49 PM
I would like to plug in a bunch of static, but related, information into a XML file that can be used by my VB.NET 2005 utility application. I would like to do something like: <shortname> <longname> <description> <version> <dateupdated> </shortname> <shortname> <longname...more >>

Identifying XML schema validation errors in.NET 2.0
Posted by Buddy Ackerman at 12/9/2005 2:37:06 PM
In .NET 1.x the validating reader used an XmlTextReader which had LineNumber and LinePosition properties so you could report where the validation took place. In 2.0 the XmlReader is a validating reader but has no line number or position properties so how can you tell where the error occured? ...more >>

Converting SVG in to PDF
Posted by Vidya Kulkarni at 12/9/2005 12:41:02 PM
Hi, I work in .net , I need to convert SVG in to pdf and send it over network through xml. Please help me.. -- Vidya ...more >>

Convert XML file to a bitmap file
Posted by SJ at 12/9/2005 8:23:02 AM
I'm currently using Visio to convert and XML file to a bitmap file, but it is taking too long. Is there a better way of converting an xml to a bmp file? I'm using DOM for modifying the XML file. Does DOM support conversion from XML to bmp? Thanks...more >>

XML Serialization of derived classes
Posted by John Glover at 12/8/2005 5:08:01 PM
I'm having a very strange problem with XML serialization. I'm writing web services which pass instances of various classes back and forth as parameters and return values of web methods. The problem is that in my derived classes, the XML that is automatically generated is lacking the properti...more >>

noob Q: Insert binary into xml?
Posted by supranoob at 12/8/2005 3:58:54 PM
I would like to wrap xml data/information around a file. Is it possible to insert binary data into an xml file? If so, where could I learn to do this? Thanks....more >>

xmlNodeReader question
Posted by adhag at 12/7/2005 12:26:02 PM
Hi I am trying to parse through a large file in pieces using the xmlNodeReader. I only need it to be forward only and performance is the key but I am having a problem trying to get all the information out of my xml file. For arguments sake my sample xml file looks like this <?xml version...more >>

From_excell_to_XMÖ
Posted by Lamis at 12/7/2005 1:48:02 AM
Hi, I have never worked with xml files (in .net C#).. How can I read an excell file to XML file??? I do not want to read all the columns. Thank your for your help. -- LZ...more >>

Deserializing primitive element with attribute
Posted by voipdealer at 12/6/2005 6:39:29 PM
I think this XML response sucks, but it's being sent to us from a third-party, so I can't do anything about it except work with it. I am receiving the following return code elements inside a response: <Response> <RC1 message="SUCCESS">0</RC1> <RC2 message="Blah blah blah">1</RC2> </Res...more >>

Merging Few XML
Posted by paolol at 12/6/2005 2:19:03 PM
Hi, I need to merge few XML DB file in one big XML, nay easy way biside reading one by one and writing a new big one ?? Thanks, Paolol...more >>

load an existing buffer using IXMLDOMDocument
Posted by Polaris at 12/5/2005 1:27:15 PM
Hi Experts: Is there a way to load an existing buffer (an XML file) using IXMLDOMDocumentPtr->load()? I know it works for loading an XML file, but I need to load an existing buffer with known length. Thanks In Advance! Polaris ...more >>

reading an xml file problem
Posted by adhag at 12/5/2005 7:41:03 AM
Hi I have an app that uses xpath to read an xml document. The problem is a 70meg file uses 1.5 gig of memory. What I really need is to read only chunks of the file at a given time and cannot afford the overhead of reading in 1.5 gig of memory. A simplified example would be an xml file of...more >>

Using just the XmlDocument to validate xml against an xsd schema
Posted by John H at 12/5/2005 7:40:25 AM
Hi, How can i just use the XmlDocument object to validate an xml instanace against a schema referenced inside the xml instance? The Load method seems to not validate it against the schema. Thanks John ...more >>

XML schemas .NET 2.0
Posted by peter.moss NO[at]SPAM gmail.com at 12/5/2005 4:29:14 AM
I have an XML schema and I am trying to validate any XML document sent against it. Here's some of the code: XmlReaderSettings xmlReaderSettings = new XmlReaderSettings(); xmlReaderSettings.Schemas.Add(@"http://myschema/myschema.xsd", "myschema.xsd"); xmlReaderSet...more >>

Serialization: Two Scenarios - Best Approach?
Posted by integragreg NO[at]SPAM yahoo.com at 12/4/2005 5:13:34 AM
I apologize for the length of this post, but this particular problem takes a bit of explanation. I have a set of hierarchically-related classes that I want to serialize on demand at runtime. There are two scenarios for serialization: the first is what I refer to as a "reduced" values set, wh...more >>

Serialization Problem
Posted by Curious at 12/3/2005 8:20:06 AM
Hi, I am trying to use the following code to make xml serialization to a file. The following error is being given: "An unhandled exception of type 'System.InvalidOperationException' occurred in system.xml.dll Additional information: There was an error generating the XML document." Th...more >>

How to detect, if an element string has to be written as CDATA
Posted by Stefan Gentzmer at 12/2/2005 10:56:36 PM
Hello, how can i detect, if the text for a XmlElement has to be written as CDATA (i am using the XmlWriter) instead of a normal string. For example <start> <node1>HelloWorld</node1> <node2>a>b</node2> </start> How can i programmatically detect, that node1 can be written by u...more >>

differences between XslTransform and XslCompiledTransform
Posted by Eckhard Schwabe at 12/2/2005 7:33:42 PM
when switching from the old "XslTransform " to "XslCompiledTransform" I notice a difference in the handling of whitespace. I need to transform a XML file which contain tabs (\t), and which remain untouched when I use XslTransform to do the transformation. But after switching to XslCompiledTr...more >>

How to change name of an XML node
Posted by KK at 12/2/2005 6:20:50 AM
Hi, Is there any way to change the name of XML node? In the following xml, I want to change the node <FIELD_1> to <FIELD_ITEM> in all the places. Ex: <NewDataSet> <LOOKUP> <FIELD_1>First_Item113</FIELD_1> <FIELD_2>First_Item224</FIELD_2> </LOOKUP> <LOOKUP> <FIELD_1...more >>

Remove and insert
Posted by Markus at 12/2/2005 1:26:03 AM
Hi! I wanted to select a subset of nodes (list = selectNodes("parent/child[foo='bar']") from a XmlDocument, then remove all (parentNode.removeAll();) child-nodes and insert the previous selected nodes back. Of course the XmlNodes in the nodelist ref. where lost once the removeAll() were ...more >>

newbie how do i read the following values in a XML file
Posted by dogo at 12/1/2005 10:46:33 PM
Hi a newbie to VB2005. I have the following xml file that i would like to read there value in, and place the result into a relevent textbox <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="reg.xsl"?> <bml> <type> <modes>449B27</modes> <country></country> </trans...more >>

"xsi:type" missing from serialization of object- XmlSerializer
Posted by geoffrobinson at 12/1/2005 5:36:53 AM
Hi, I'm serializing an object using XmlSerializer. It is serializing, but we are getting errors upon deserialization. We use the following code to serialize: FileStream fs = new FileStream(NavCmdFile, FileMode.Create, FileAccess.Write, FileShare.None); XmlSerializer xmlFmt = new XmlSeria...more >>

synchronization of Xml file access in .net Pro
Posted by rathoreaditya81 NO[at]SPAM gmail.com at 12/1/2005 1:41:17 AM
Hi, Iam trying to develop a solution for my comapny in MS VS Pro, using C++.net. My work involves extensive usage of xml as well. I use DOM model for xml opeartions. Now the problem scenario is that multiple clients might be using my application as same time and trying to modify/update the ...more >>


DevelopmentNow Blog