microsoft.public.dotnet.xml Archive - January 2002
Post a message to this list
Messages
Page: 12
The most performant way to chop a 26MB XML File (5 replies, VIP)
microsoft.public.dotnet.xml
Hello, I'm making a chopper component. This component has to open an XML file and split that file in different parts, by a given X Path. All the different parts (StringBuilders) are saved in an ArrayList. But when I'm chopping a 26 MB big file, the application uses more than 200MB of Memory. And it takes about two minutes to process the entire file. I feel that there is some room for performance, ...
Error in ReadXML (5 replies)
microsoft.public.dotnet.xml
I'm getting an error trying to load a dataset from an XML file. The code: DataSet1.ReadXml("c:\test.xml") The error I get: The same table (StreetAddress) cannot be the child table in two nested relations. A sample snippet of XML code: RETS ReplyCode "0" ReplyText "V0.0.1: Success" REData REProperties ResidentialProperty Listing StreetAddress StreetNumber 123 /StreetNumber StreetName Main /StreetNa...
XmlDocument.LoadXML (3 replies)
microsoft.public.dotnet.xml
Can someone verify this: this code XmlDocument xmldoc new XmlDocument(); XmlTextReader xmlReader new XmlTextReader(new StringReader(str)); while(xmlReader.Read()) xmldoc.AppendChild(xmldoc.ReadNode(xmlReader)); xmlReader.Close(); are much faster than XmlDocument xmldoc new XmlDocument(); xmldoc.LoadXML(str); or its just me :) Im on VS.NET Beta2 and working with Xml string less than 5k.
trying to serialize collection class (3 replies)
microsoft.public.dotnet.xml
Hello All, I have a strongly typed collection class in C# and am trying to serialize an object using this class to XML. I am getting an error reflecting my class: "System exception: You must implement a default accessor on MyCollection because it inherits from ICollection." I have this in my class as a default accessor but obviously it's not working. Anyone tried anything like this? Thank you! Ali...
XSLT a file who isn't in the disk (3 replies)
microsoft.public.dotnet.xml
Hi everybody, Can someone tell me how can I transform a xmldocument how isn't on my disk! Thanx for your feedback MD
Simple XML Transformation Question (aka XSLT) (4 replies)
microsoft.public.dotnet.xml
I have a XSLT document placed on my HD, I have a XML document that I created within a string And I want the Output to be sent to the: System.Web.UI.HtmlTextWriter in Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter) HOW DO I DO THIS?
Caching in C# (2 replies)
microsoft.public.dotnet.xml
Hello In VBScript or JavaScript I could cache an XSL Object in an Application variable by combining "MSXML2.FreeThreadedDOMDocument" and "MSXML2.XSLTemplate" Is there a way of caching an XSL object in C#. TIA Yaz
xsl indention problem (2 replies)
microsoft.public.dotnet.xml
Hello, i am trying to write some XSL to transform the .NET My Services schemas into an XML instance. Got the selections down (i think), but i cannot get it to indent the resulting XML ... [the files are attached] any ideas? thanks casey
XSL and Controls (4 replies)
microsoft.public.dotnet.xml
I am implementing a custom server control and I would like to be able to style the output with an XSL stylesheet. It would be preferable to be able to apply a style sheet to a single control that is part of the controls collection of a custom server control. Either that or apply a XSL stylesheet to the entire output of the control. BTW, I am doing Control Composition in this custom server control....
Class Object to XML (2 replies)
microsoft.public.dotnet.xml
Is there a way to take a whole class object and output a xml file? For example, a self made class with properties and methods or any class object for that matter (command button object). And create a xml document of that object. Randy
Nesting not honoured by ReadXML (even with a schema) (2 replies)
microsoft.public.dotnet.xml
Hi, A fairly long posting. Sorry about that. I've tried to keep it down to size. I am an XML newbie and have force fed myself enough to get almost to where I want to go, but I'm really stuck on this one. If an XML packet contains more than one structure with the same name nested at different levels, I cannot see how to get the one I want. In the example below only mos.roCreate.mosExternalMetaData ...
How 2 insert XML in SQL2K (2 replies)
microsoft.public.dotnet.xml
HI everyone. I have an xml document which I wanna insert into the database? How do I accomplish this? XML has " (special)characters which is confusing SQL insert statement? Insert Command works but I just see xml version 1 in the table!!! TIA cmd.Parameters.Add(new SqlParameter("@TEST XML", SqlDbType.Text, 16)); cmd.Parameters["@TEST XML"].Value strXML; cmd.ExecuteNonQuery(); *********************...
XmlDocument Class (3 replies)
microsoft.public.dotnet.xml
I'm trying to use the XmlDocument class to return some XML from a database. Code snippet: XmlDocument xmlDoc new XmlDocument(); xmlDoc.Load(sUrl); return xmlDoc; This all works fine except that a root node is generated that I don't want: ?xml version "1.0" encoding "utf 8" ? AnyNode xmlns "http://tempuri.org/" MyXml xmlns:sql "urn:schemas microsoft com:xml sql"xmlns "" MyXmlElement1 ... /MyXmlElem...
MSXML2.DOMDocument30 Vs System.Xml.XmlDocument (2 replies)
microsoft.public.dotnet.xml
Hi All, I have a C# app, which uses CDO to generate a MIME message. As part of this MIME message, a XML Document (A BTF SOAP Envelope)needs to be included. So, I used the following lines of code XmlDocument xmldoc new XmlDocument(); xmldoc.Load("C:\\PO.xml"); As a next step, I added the following code to check whether the XML contents are loaded properly. stream.WriteText (xmldoc.OuterXml,StreamWr...
XML As a Dataset? (7 replies)
microsoft.public.dotnet.xml
A few days ago, I was reading an article and they mentioned that you could manipulate an XML file as if it was a DataSet using ADO, however they did not go into detail on how this was done. Was just curious, does anyone know of an example or point me into the right direction of how to do this? C or C# would be preferable.
DataSets and Xml Schema (4 replies)
microsoft.public.dotnet.xml
Hi, When trying to define the tables columns of a DataSet using an Xml schema I get the following error message: The same table (name) cannot be the child table in two nested relations. Does anybody know how to solve this problem? What are the restrictions for using Xml Schema with DataSets? Best Regards, Christine The schema: ?xml version "1.0"? xs:schema xmlns:xs "http://www.w3.org/2001/XMLSchem...
get string back from XmlTextWriter (3 replies)
microsoft.public.dotnet.xml
I would like to receive a string back from XmlTextWriter. How can I do that?
How do I put data in new element using XML DOM? (2 replies)
microsoft.public.dotnet.xml
I am taking data from an ASP.NET form and putting it into an existing xml file (catalog.xml) I want to create three new elements using the code below. The attributes are added fine, but how do I create a new element and then put text in it? You can see the commented out "george" below. I would like it to read Title george /Title , but this code doesn't work. How can I do this? Thanks! Dim oRoot As...
Writing XML (2 replies)
microsoft.public.dotnet.xml
Hi Folks I am converting the contents of a form into XML , is ther anyway I can user XMLTextWriter to write to a string? I know how to write to a file right now TIA ********************* With Best Regards Vishal Sharan *********************
Howto:- Copy Elements from one XML Document to another (2 replies)
microsoft.public.dotnet.xml
Hi, I am new to XML so forgive my ignorance. I am using the XmlDocument class in .Net application. I am basically creating a new XmlDocument from one or more existing documents. The idea is that the root node in the existing documents becomes a child node in the new document. When I try to append the node from the existing XML file to the new XML document I get a runtime error "The node to be inse...
Advantage of using XmlDataDocument over XmlDocument (3 replies)
microsoft.public.dotnet.xml
Hello What's the advantage of using XmlDataDocument over XmlDocument given a DataSet. TIA Yaz
Smystem.Xml usage queation (2 replies)
microsoft.public.dotnet.xml
I would like to use the classes provided in System.Xml namespace to access the 'ID' attribute of the first 'Child' node (ID "11") in the sample xml below. Could anyone show how, I would greatly appreciate it. thanks ?xml version "1.0" encoding "utf 8" ? Parent ID "1" Child ID "11" /Child Child ID "12" /Child ... /Parent
Loading an XmlDocument with DataSet.WriteXml (4 replies)
microsoft.public.dotnet.xml
It is not obvioius to me how one uses the DataSet.WriteXml method to populate an XmlDocument I have a DataSet object with multiple tables that get populated via a DataAdapter.Fill() method. Once the DataSet is fully loaded, I want to return an Xml Document from a Web Service including the Xml data and Diffgram info. I can generate the correct Xml via the DataSet.WriteXml() method and write it to a...
XML DOM Manipulation! (6 replies)
microsoft.public.dotnet.xml
Hi Everyone. I have got an XML Document in a Web Form which I wanna display to the user in sections (fragments of the Document) with the help of next button. How to proceed with that? TIA ********************* With Best Regards Vishal Sharan *********************
XslTransformation (5 replies)
microsoft.public.dotnet.xml
Hi all, I want to transform an xml file to another xml file by an xsl file. I use the follow code, but when I try to load the xsl file the system return to me a system error (An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll) Dim myXslTransform as new XslTransform myXslTransform.Load(Xsl Name) myXslTransform.Transform(Xml Name, xml Name) Can someone help me? bye P...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification