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 > july 2003

Filter by week: 1 2 3 4 5

XmlSchemaParticle
Posted by Matt Frame at 7/31/2003 5:27:12 PM
I am trying to traverse a schema to learn how to use the SOM. I am pretty far into the schema tree but have found a small problem I can't seem to figure out. I have a group reference as one of the sequenced elements. When creating my text report I get the information about all of the elements ...more >>


Merging/Linking XML files?
Posted by Cy Huckaba at 7/31/2003 3:23:45 PM
I have an XML document that is linked to other document and I can't = figure out what the best way to try and merge them before query qith an = XpathNavigator. Simple example...a root xml document contains the root folder that can = contain items and other folders. The other folders can either...more >>

Serializing an ArrayList
Posted by Christopher Pragash at 7/31/2003 2:37:36 PM
Hello all, Following is the code that I'm using to serialize an arraylist. This code returns an "Unknown" Errror. Any ideas would be of great help. <System.Xml.Serialization.XmlArray(), _ System.Xml.Serialization.XmlArrayItem("User", GetType(User))> Public arrUserList As New ArrayList Pr...more >>

Serializing an ArrayList into XML File
Posted by Christopher Pragash at 7/31/2003 1:58:37 PM
Hello all, I'm trying to persist an object of type Arraylist into XML using the following the XMLSerializer and it returns an "Unknown" Error. I'm able to serialize and deserialize the arraylist object using Binary format but unable to do so using XML formatter. Is it possible to serialize an ...more >>

Transfer data from XML to Stream?
Posted by Rich Wallace at 7/31/2003 1:51:08 PM
Hi all, I have a COM component that receives XML documents from MSMQ. Before I process the final documents and pass it to my application, I want to modify the format a bit, as in create a name/value pair structure from an element structure or rename certain fields. I'm using XmlTextReader to...more >>

storing xml in filesystem or db?
Posted by Lucas Fletcher at 7/31/2003 3:09:16 AM
Hi All, I've searched the web for an article explaining the many tradeoffs between storing your XML in a database vs the filesystem but I haven't really found anything of note. This is the little I've come up with: FileSystem Pros: 1) more scaleable than db, although I haven't seen dat...more >>

Is it possible to serialize a read only property
Posted by Mudit at 7/30/2003 6:45:28 PM
Hi, I am new to XML Serialization. I am interested in serializing my object to Xml. I only have to serialize and I needn't worry about deserialization. As per my understanding, only the properties that have both "get" and "set" can be serailized. Is that so. Is it also possible to serialize pr...more >>

Appending a Node
Posted by Johnny at 7/30/2003 4:14:04 PM
I have below a sample parent-child xml that I'm trying to manipulate <Persons> <Person Id='1'/> </Persons> I will have a string that I want to append to my existing xml shown below: "<Person Id='1'/>" My question is, instead of creating a new node using the createnode method ...more >>



Blank lines inserted when XSLT output inside a loop
Posted by Jim at 7/30/2003 10:33:46 AM
When output from inside a loop <xsl:for-each select="Comment"> <br><xsl:value-of select="Line" /></br> </xsl:for-each> A blank line is inserted between each line, when I remove the <br> then everthings on the same line. Want a new line but get...more >>

Embedding XML into ASPX question
Posted by Victor Fees at 7/30/2003 6:44:38 AM
I have an XML string in a database that I would like to display using XSLT. All of that works like a champ, but I can't figure out how to embed the XML inside an ASPX page. For example, I have an ASPX page with a Header User Control and a Footer User Control. I'd like to put the transform...more >>

novice: datatypes
Posted by Al Knowles at 7/29/2003 6:13:29 PM
In a VB6 application, I include this in the code that creates the xml that is to be sent to the web service: Set oAttribute = XDOM.createAttribute("SEQUENCENO") oAttribute.dataType = "int" oElement.setAttribute "SEQUENCENO", 42 I am not clear on how the .Net Web service XMLTextReade...more >>

XmlNode -> Schema -> Object
Posted by Brad Quinn at 7/29/2003 4:16:46 PM
Lets say I have an XmlNode that validates against some schema. I also have a class that was generated by the xsd tool using said schema. What is the best way to get from an XmlNode to an instance of the class? ...more >>

WriteAttributeString
Posted by Bill at 7/29/2003 2:39:31 PM
I'm trying to write out an XML file from VB and have it mostly done, but I need the following header and can't seem to get the right syntax for the WriteAttributeString methods to get this result. <fsaAtlasData xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xsi:noNamespaceSchemaL...more >>

Changing Node Values
Posted by Mike McCarthy at 7/29/2003 12:33:21 PM
I have the following XML.. <?xml version="1.0" encoding="UTF-8"?> <EMS> <Scene> <Number_of_Patients>1212</Number_of_Patients> <MCI code_description_type="description"> <Code>Stri</Code> </MCI> <Location_Type code_description_type="description"> <Code>Stri</Code> </L...more >>

tif file loses integrity when uploaded
Posted by Al Knowles at 7/29/2003 10:13:08 AM
I have researched and tried every method I can find for passing a two-page tif file from a VB6 application to a web service via XML. These include XMLTextReader.ReadBase64, Convert.FromBase64, and using the Binary Writer. When the web service stores the file, the length is the same as the up...more >>

XmlTextReader and 2GB file limit
Posted by Hugh McFadden at 7/29/2003 9:37:13 AM
Are there any work arounds to get XmlTextReader to work with files bigger than 2GB? I tried to get the source of XmlTextReader and create a version with long (instead of int) offsets but I can't compile it due to package restrictions. Best wishes, Hugh McFadden hugh.mcfadden@visiongain.co...more >>

Parsing XML over TCP/IP
Posted by Thomas Polan at 7/29/2003 9:17:58 AM
Sorry if this has been posted before... I am receiving XML messages over a TCP client. Messages vary in size and sometimes can arrive in groups. Thus, I am not guaranteed to receive a full message in a single read from my socket. I am loading each message into an XmlDocument after it arriv...more >>

xmlnode as custom object
Posted by Ian Williamson at 7/28/2003 5:45:12 PM
Greetings, I have seen this question posted a few times, but the answers have not helped me. I have used the program xsd.exe to generate several c# classes from a client provided xsd template. I now wish take a sizeable amount of data and create an xml file based on these classes. My...more >>

Trivial modification to web.config
Posted by Anita C at 7/28/2003 4:30:14 PM
Hi, Can someone please provide a code sample for: Load the web.config for a web app and add a space at the end of it or if there is space at the end then delete the space and then re-savethe file. The reason for thwe above being to force a restart of the web app. Thanks. ...more >>

Detect schemas in use on xml file
Posted by Antonio Maciel at 7/28/2003 2:15:53 PM
Hi. My application uses 4 xml files as configuration files. Actually, I use an If statement with a function to run my schema files against the xml files every time the application loads. This function receives as parameters the name of the .xml file and the name of the .xsd file. I am trying t...more >>

Parsing XML Schemas
Posted by Matt Frame at 7/28/2003 11:28:40 AM
I am just starting to work with Schemas and VB.Net. I created a simple schema with a structure of a top level group, then inside that group I have sub-groups and elements and within the sub-groups I have other elements, some of these elements have attributes. I want to read that schema into a...more >>

Simple Xpath Query
Posted by Samik Raychaudhuri at 7/27/2003 6:51:02 PM
Hello, I am having the following XML file: ----- <bibRecords xmlns="http://tempuri.org/bibrecords.xsd"> <bibRecord> <entryID>1</entryID> <tag>Shioura97</tag> <entrytype>Conference Proceedings</entrytype> </bibRecord> </bibRecord> ------ Dim oNode As Xml.X...more >>

serialization crash at root node ??
Posted by andrewcw at 7/26/2003 11:21:22 PM
I made one C sharp class that was successful with the XSD utility in the SDK bin. However now I can't get any xml file to work with the other generated classes. The serialization always stops on the first character of the root node. I am pulling my hair out because I am now stuck way behin...more >>

How do I get Schema definition of an XML node in .NET ?
Posted by Naraen at 7/25/2003 6:47:13 PM
Hi, In .NET how do I get the underlying schema definition that corresponds to a particular XML node? This used to be easy in MSXML3.0 & MSXML4.0, using ... >>> IXmlDomNode.definition property. Is there a .NET equivalent to this method? I have pored through the object model, in v...more >>

XQueryServices.com
Posted by Damon at 7/25/2003 11:08:08 AM
Hi Anyone know when this site will be accessible again? Thanks Damon Internet Systems Manager Direct Marketing Support Ltd www.dmsltd.co.uk t - +44 (0)151 604 1000 ext 2095 f - +44 (0)151 604 1003 ...more >>

Copy XPathDocument into an XmlDocument
Posted by Ian Lawton at 7/25/2003 5:58:21 AM
Hi, in a C# app, I have an XPathDocument that looks similar to this: <row uniqueid="4234" /> <row uniqueid="4365" /> <row uniqueid="3124" /> <row uniqueid="9879" /> <row uniqueid="1332" /> <row uniqueid="4322" /> I want to import it into an existing XmlDocument that looks like this:...more >>

format-number function & .NET
Posted by jim.craig NO[at]SPAM touchstone-am.com at 7/25/2003 5:56:22 AM
When I do a transform with a stylesheet containing the function format-number($varname,'#,##0.00') from XSLerator (which uses MSXML) I get the result I expect, a decimal number rounded to 2 places. When I load the stylesheet & do the transform from my VB.NET or C# code however (i.e. using sys...more >>

Read XML
Posted by Paul Marrero at 7/24/2003 9:24:05 PM
I'm sure this has been asked before, but with over 3,000 listings...Anyway, what I want to do is load an XML file so I can populate the text property of a label in VB .NET. The XML file is as follows: <orglevels> <code>2</code> <desc>Tampa Division</desc> </orglevels> ...more >>

XPath pb
Posted by Steve B. [Labo.Net] at 7/24/2003 4:06:03 PM
Hi In infopath, I use a XPath expression to get some nodes : var oEMailNodeList = XDocument.DOM.selectNodes("//Message/EMail"); My problem is that this method returns 0 items. Here is the DOM.xml property : <?xml version="1.0" ?> <?mso-infoPathSolution productVersion=\"11.0.5329\" P...more >>

network error during dtd validation
Posted by Galen Harris at 7/24/2003 3:58:39 PM
I'm getting weird errors during transformations -- "System.Net.WebException. The remote server returned an error: (500) Internal Server Error." I'm on the 1.0 Framework. I've looked through the stack trace and it seems to be happending at a call to .Transform as follows (see stack trace bel...more >>

XML Fragment into new XML Document
Posted by gu4y at 7/24/2003 1:42:44 PM
Hello All, What's the most efficient way to do this? I would like to load an xml file like this: <?xml version="1.0" encoding="utf-8" ?> <strings> <section key="1"> <string>sdfa</string> <string>qwe</string> </section> <section key="2"> <string>iouio</strin...more >>

Learning XPath Query Language Resource Material/Books/White Papers
Posted by Earl Teigrob at 7/24/2003 11:23:51 AM
I am a total beginner to XPath and using Native .NET XML Classes (although I have used XML with Datasets before). I have "XML for ASP.NET Developers" which seems like a good .Net XML overview book but would like to learn more about writing XPath Queries. What do I need to learn the XPath Langu...more >>

schemas in dataset
Posted by AlexS at 7/23/2003 5:44:31 PM
Hello all! Are there any limitations know for schemas (xsd), which could be processed by DataSet.ReadXMLSchema method? I have problem when reading one of schemas. .Net complains and people say schema is valid for XML Spy. Is there any .Net compliant validator for schemas, which can help t...more >>

ReadBase64 - length?
Posted by Al Knowles at 7/23/2003 5:04:03 PM
I am having a lot of trouble understanding the last parameter of the XmlTextReader's ReadBase64 method,length. In all the examples I have been able to find on the web, the developer seems to already know that value and hard codes it. I am attempting to pass a decoded base64 xmlstring from a ...more >>

xpath again - not xslt ? but to select node in asp.net
Posted by Kathy Burke at 7/23/2003 3:14:56 PM
Hi again, I'm using the following xpath (works in visualizer) with a SelectSingleNode("xpath") statement. //Station[@name="Station1"]/(WI[Boards/Board[@sn="583230"][@finish]])[la st()]]/@order Problem is I get an error "expression passed to this method should result in a NodeSet". Of cou...more >>

How to seach and read XML node
Posted by Earl Teigrob at 7/23/2003 2:05:51 PM
I am somewhat new to working with the base XML classes and have always worked throught a DataSet before. Now I just need to retieve one piece of info from an XML file and think that using one of the XMLReader based classes would be [much] faster then reading the entire file into a DataSet the th...more >>

Stupid (I hope) XML questions
Posted by wgant NO[at]SPAM transcender.com at 7/22/2003 6:01:29 PM
Ok, I have a project that is destined for continual growth and development over the next few years (benign scope creep). The object model is relatively generic at the moment, but will be extended considerably over time, mostly using inheritance. Each document will have a single element at the r...more >>

XML to XML Translation
Posted by John Yung at 7/22/2003 2:13:23 PM
Hi, I need to translate an XML document into another XML document. I would like to avoid using XSL that translates character by character. Is there a way to map fields between those 2 documents, and then translate? Thanks John Yung ...more >>

HOWTO: Unique ID in XML
Posted by Chirag at 7/22/2003 8:17:56 AM
How to create unique id in xml documents using API? Are there any Microsoft APIs available to generate Unique IDs in XML Documents? Thanks in advance, Chirag...more >>

Urgent!!! Please help
Posted by CGuy at 7/21/2003 4:48:05 PM
Hi, I'm trying to write a log file (in XML) using XMLTextWriter. Each time my application runs, certain events are logged and the same log file should be updated. The very time, the log gets saved correctly, bu the next time I try to write to the same XML file using XMLTextReader, the file...more >>

xpath - how to get an element name?
Posted by KathyBurke40 NO[at]SPAM attbi.com at 7/21/2003 2:20:39 PM
I'm using the following xpath in .net //Station[@name="Station1"]/WI/Boards/Board[@sn="12345"][not(@finish)]") to test if there is a Board element with NO "finish" attribute. If there is, I need to get the @title of the WI element...but haven't been able to figure it out yet (and yes, I do...more >>

Control for nested XML Data
Posted by Franz at 7/20/2003 5:32:21 PM
I want to show the content of the xml with a control which allows to show the nodes in a nested way. I don't want to use DataGrid which shows the nodes in a tabular form. Is there any suitable control for me? Thanks. -- My C++ and C# ( Traditional Chinese ) Web Site : www.franzwong.com/Home.php...more >>

XmlTextReader bug ?
Posted by Meir S. at 7/20/2003 2:14:19 PM
I think the following is a bug in XmlTextReader: I need to process large XMLs, that are typically constructed of many small elements nested in the root element. Each inner element represents a command, so I have to parse and execute them according to the order they appear in the ROOT element...more >>

Url validation
Posted by Erik Cruz at 7/19/2003 5:30:38 PM
A custom xml file I wrote for my application has two elements that accepts urls. I used vs.net to generate a schema file for my file but there is no validation for urls. How can I validate an element to accept valid urls including https ones? TIA, Erik Cruz ...more >>

SelectSingleNode with a default namespace
Posted by Edward Yang at 7/19/2003 5:54:36 AM
My XML document has a default namespace specified by xmlns="some_url". Here it is: <?xml version="1.0" encoding="utf-8" ?> <ssmproject name="sample" server="sql" xmlns="mailto:neo_in_matrix@msn.com?subject=ssmprjx" > <pr> <script name="pr_sample_script_name" /> </pr> </ssmproject> ...more >>

XmlDocument: I keep getting told "The reference node is not a child of this node"
Posted by George W. at 7/18/2003 6:18:07 PM
Okay, I'm a C#/XML newbie, and I've been wrestling with this for a while now, checked dotnet sites, articles, MSDN Library, etc. and haven't been able to determine why this is happening. I have an xml file that I am loading into an XmlDocument and then trying to add a child element to the r...more >>

adding records to multiple tables in MSDE 2000 from XML using ADO.NET
Posted by pratibhaa NO[at]SPAM jvc.co.uk at 7/18/2003 3:56:46 AM
I am using .NET web aplication and MSDE 2000. I receive new record in XML format which I want to add into MSDE 2000. I am doing it as below. Private Sub InsertNew(ByVal sData1 As String) Dim SR1 As System.IO.StringReader = New System.IO.StringReader(sData1) DS1.ReadXml(SR1) ...more >>

HTML to XML conversion
Posted by Yann Chane-Kive at 7/17/2003 11:03:57 PM
Hi, I'd like some advice on the best way to convert html to xml. Is anyone aware of third parties component that would do the job? Thanks, Yann ...more >>

XmlReader Question
Posted by CGuy at 7/17/2003 8:00:32 PM
Hi, I am using an XmlTextReader to read an xml file. It may happen that the file is present in the disk, but it may be empty (0 bytes). I would like to find out whether the xml file contains a valid root node or not. How do I do this? This is what I need if(File.Exists(fileName)) ...more >>

best way to deserialize xml
Posted by Tomasz Kaszuba at 7/17/2003 4:27:07 PM
I'm at a quandry as to what's the best/fastest way to deserialize an incoming xml stream? I ran a small test on xmlserializer and on a small file it performed 10 times worse then when I used the XMLDocument and deserialized the values myself. Is the xmlserializer really that slow? I'm expec...more >>


DevelopmentNow Blog