microsoft.public.dotnet.xml Archive - February 2002
Post a message to this list
Messages
Page: 123
Confused... (3 replies, VIP)
microsoft.public.dotnet.xml
Hi, Can anyone tell me if, using XML for data manipulations is a better option than using dataset. I'm completely confused as to the use of XML.From what I've heard it's better using relational datastructure for data manipulations, and XML data only for display of the data in different formats and ofcourse WebServices. Can someone enlighten me please. Thanx, Deepa
Whats the best .Net XML class to use for XML tree traversal (2 replies)
microsoft.public.dotnet.xml
I am new, very new to .net, so I don't now the framework very well at all which is why I am here ) Anyway, what is the best XML class in .net to load an XML file and traverse it hitting all the nodes and attributes. Also, are there any examples out there showing how to do this? Thanks in advance Rick
Display HTML in XML (2 replies, VIP)
microsoft.public.dotnet.xml
How to display standard HTML tags in a XML pages with a XSL style sheet defined?
validating a xml file (3 replies, VIP)
microsoft.public.dotnet.xml
I have a problem I wrote a xml file and i have a xsd file to but how can I validate my source
Request clue, displaying/editing xml data for database app (3 replies)
microsoft.public.dotnet.xml
I need to do a proof of concept application which reads an XML file, and displays it in a form for editing or updating. For now, I don't need to store the result, but eventually I will. I am new to ASP.Net, and C#, but I've read up on the language. I'm not sure how to hook the C# code into the ASP. In BCB, I would install a XML reader component, draw a form with data aware controls, and populate t...
Handling Ill-Formed XML (3 replies)
microsoft.public.dotnet.xml
Does anyone know of a way to handle ill formed XML, without triggering the exception handling facilities of XmlReader? If XmlTextReader.Read() encounters a problem, it throws an exception game over. I'd prefer to handle the exception at the point it's found, possibly ingoring the particulur ill formed element that causes the error, and continue processing. Alternatively, conditioning the XML befor...
Handling Missing Tag End Exceptions (2 replies)
microsoft.public.dotnet.xml
I need to be able to handle the exception of missing tag ends (e.g., /name ) when reading through an XML document. Currently, when using XmlTextReader.Read(), an exception is thrown when such a condition is encountered. Anyone have an idea of how do this? Thanks, Darryl
Does anyone know how many nodes a XMLNodeList can hold? (3 replies)
microsoft.public.dotnet.xml
Good afternoon all, I'm having trouble parsing a 1.8 meg XML file using .NET and the System.XML namespace.. The problem is that I think I'm overflowing the XMLNodeList class due to the size of the XML document. I'm not certain about this because the app does not throw an error, the app instead just doesn't return any nodes in the XMLNodeList. Does anyone know the limit as to how many nodes can be ...
Carriage returns (simple problem) (7 replies)
microsoft.public.dotnet.xml
Hello, I have a problem with carriage returns that XSLT generates inside my attributes. When I have : a href "hello.htm" xsl:attribute name "style" color: red; background color: blue; /xsl:attribute Hello world /a the following HTML is generated : a href "hello.htm" style "&xD;&xA; color: red;&xD;&xA; background color: blue;&xD;&xA" Hello world /a What am I doing wrong ? To keep my stylesheet read...
how to use C# to realize the SAX interface (3 replies)
microsoft.public.dotnet.xml
who can give me some samples. Thanks
System.Xml.DocumentNavigator ... Where did it go today? (2 replies)
microsoft.public.dotnet.xml
Does anyone know where the class DocumentNavigator that is referenced in some early .NET documentation as being part of the System.Xml namespace has gone? What should I be using instead of Document.Navigator? Regards Doug Holland
Namespace trouble (3 replies)
microsoft.public.dotnet.xml
Hi, I'm having some trouble with an xpath expression... This is a cropped version of the xml file... The xml file is originally created from a webservice (the .net part) and I'm trying to get the PAGE nodes using this XPath expression (on a non .net platform) Set nodes objXML.documentElement.selectNodes("/WEBDOC/diffgr:diffgram/WEBDOC/PAGE") Anyhow, using xpath I keep getting an "Reference to unde...
Saving an XML file to disk (2 replies, VIP)
microsoft.public.dotnet.xml
Hi I m using an Xsl file to transform an XML into another XML file. How do I then save the new XML to disk ? Thanks. Script Language "VB" Runat "server" Sub Page Load(Sender As Object, E As EventArgs) Dim xmlDoc As XmlDocument New XmlDocument() xmlDoc.Load(Server.MapPath("Customers.xml")) myXml.Document xmlDoc Dim xslTrans As XslTransform New XslTransform() xslTrans.Load(Server.MapPath("Treeview T...
XML Namespaces in a when viewed as an XmlDataDocument (2 replies, VIP)
microsoft.public.dotnet.xml
Hi all, I'm really hoping someone can shed some light on the behaviour I'm seeing, I've looked through countless examples and posts and can't find anything that covers this... Just a quick overview before I get onto the code. I have a xml document with a schema. I've done a 'Generate Dataset' on the schema and got a lovely typed class created. I do a ReadXml on a XmlValidatingReader object and can...
Loading xml via ADO .NET (5 replies)
microsoft.public.dotnet.xml
I'm trying to load a table into the XmlDataDocument class. I got it working but the first way I thought of didn't work. I get an exception "This document already has a DocumentElement node." Here is my code snipet. XmlTextReader reader (XmlTextReader) selectCommand.ExecuteXmlReader(); XmlDataDocument myXmlDocument new XmlDataDocument(); myXmlDocument.Load(reader); The exception happens at Load. An...
SAXXMLReader not validating in C++ (6 replies)
microsoft.public.dotnet.xml
Hello, I have written a C application that uses a SAXXMLReader40 (MSXML4.DLL) to parse an XML document. My problem is that the reader is not validating the xml file, even though I have set the "schema validation" feature to true (as per the documentation). I am relying on an XML Schema (XSD) reference in the XML file xsi:schemaLocation "...." itself to actually invoke the validation. Does the Micr...
Probable Transformation Bug, any help appreciated! (2 replies)
microsoft.public.dotnet.xml
Hi I have a sample xml and xsl which i am trying to transform and it seems to work with MSXML but doesnot get a valid output from .NET xml. Expected output urls url ![CDATA[http://localhost/stocks/quotes.csv?s MSFT&f acd]] /url url ![CDATA[http://localhost/stocks/quotes.csv?s MSFT&f abcdef]] /url /urls Output got: urls url ![CDATA[http://localhost/stocks/quotes.csv?s &f ]] /url url ![CDATA[http://...
Data in recordset -> XML (6 replies, VIP)
microsoft.public.dotnet.xml
I want to take the data returned in an ADO Recordset and create an XML document from it. I have been able to do this but, what I get is an XML doc that includes a schema and represents information about the recordset itself like this: s:AttributeType name "Add1" rs:number "4" rs:nullable "true" rs:maydefer "true" rs:write "true" rs:basetable "tblCustomers" rs:basecolumn "Add1" s:datatype dt:type "...
Updating XSL on the fly (3 replies)
microsoft.public.dotnet.xml
I wish to load the XSL stylesheet, add a node to the same XSL stylesheet depending on what argument has been passed. and then use the XSL to transform my XML file. Can you suggest a manner in which I could do this. Note, I don't want to to maniplate the stylesheet on the disk, just update it in memory, depending on the argument(s) passed by the user, transform the xml file and discard the changes ...
Can XML message body be assigned to DataSet in C# (2 replies, VIP)
microsoft.public.dotnet.xml
After I read a XML formatted message from the message queue, i wanna assign the message body to a dataset. Can i do it in anyway??? Thankx in Advance DO
SQLXML: How does XPath impact result set size? (2 replies, VIP)
microsoft.public.dotnet.xml
Does anyone know how the XPath associated with an SQLXML 3.0 .schema impacts the size of the result set? Specifically, is it implemented at the DB level in a WHERE clause so the rows are never retrieved or are all the rows retrieved and then the XPath applied? I want to extract narrow subsets from very large tables and would like to have a perspective on how the execution might function. Thanks, C...
Problems With XSLT (2 replies)
microsoft.public.dotnet.xml
Hi All, I have an XML string that I get from: sXml DataSet11.GetXml I then pass it to an XML Web Form control with this code: XmlBody.DocumentContent sXml The code for the XML Web Form Control is: asp:Xml id "XmlBody" runat "server" TransformSource "mainpage.xslt" /asp:Xml Whatever I try to do in my xslt file results in either no output at all or all text values getting dumped out onto the web pag...
ExecuteXMLReader - root element missing (8 replies, VIP)
microsoft.public.dotnet.xml
I use this code to create client side XML data island .... mySqlConnection.Open(); XmlTextReader myXmlReader (XmlTextReader) mySqlCommand.ExecuteXmlReader(); myXmlReader.MoveToContent(); LiteralXML.Text myXmlReader.ReadOuterXml(); mySqlConnection.Close(); myXmlReader.Close(); .... PROBLEM: It doesn't work properly cause I don't have root element. I don't want to use DataSet (performance sucks), no...
Problems with SqlCommand.ExecuteXmlReader() -> XmlDocument.Load(XmlReader) (7 replies, VIP)
microsoft.public.dotnet.xml
I have a SqlCommand that executes a stored procedure that returns a result set as xml Select * From Authors For Xml Auto, Elements The Xml result set is returned as: Author Smith /Author Author Jones /Author .... I then want to load the Xml from the SqlCommand into an XmlDocument using: XmlReader SqlCommand.ExecuteXmlReader(); XmlDocument.Load(XmlReader); The problem is the XmlDocument expects a r...
XSL transformer in .NET release 1 (2 replies)
microsoft.public.dotnet.xml
Hi, I have recently upgraded from .NET Framework BETA2 to Release (version 1). Now the XSL transformer (System.Xml.Xsl.XslTransformer) behaves differently (and according to my understanding, wrongly). Has someone met the same problem ? In xsl:template match attribute. The following two used to be equal: xsl:template match "a[ancestor::b]"/ xsl:template match "b//a"/ Now, in new version, the second...
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