microsoft.public.dotnet.xml Archive - July 2003
Post a message to this list
Messages
Page: 12345
generate XSD of a table in sql server (2 replies, VIP)
microsoft.public.dotnet.xml
hi group plz tell how to generate XSD of a table in sql server. thanks Rajesh Tiwari S/W Engineer Digital Offshore Solutions(www.dospl.com) Gurgaon,HR
the field name changes when use dataset..writeXML (3 replies)
microsoft.public.dotnet.xml
When using the dataset.writeXML(ds), the XML element name will be changed, if the datatable field name has space between letters, e.g. if database field name is "Last Name", then the XML schema will show it as "Last x0020 Name". Need to know is that the standard changes for XML schema? Since we need to publish the data in the Web services, and the users can correctly read the schema and data. Than...
Can a WriteEndElement value ever differ from WriteStartElement (3 replies)
microsoft.public.dotnet.xml
Previous post stated in concept form: Can a WriteEndElement value ever differ from the value that was placed in the WriteStartElement, for instance: submission:xyz data /submission Can this be done in VB.NET? Thanks in advance. Dean Slindee
XmlReader vs XMLTextReader (2 replies)
microsoft.public.dotnet.xml
All, I was wondering , if there is a specific reason to use instead of the other one here is the scenario I am executing the stored proc and getting the values pass ing ito to a reader then writing to xml. which one suits for the below code let me know Dim PARxmlTextRdr as xmltextreader ParCmd.ExecuteXmlReader Dim PARxmlRdr as xmltextreader ParCmd.ExecuteXmlReader I am getting errors at this line ...
ServerXMLHTTP in .NET ? (3 replies, VIP)
microsoft.public.dotnet.xml
Hi, is there something like the ServerXMLHTTP object from MSXML available in .NET ? I searched in the VS help, but just found documentation for the MSXML object.... Greetings, Raik
sending xml back to a server (2 replies, VIP)
microsoft.public.dotnet.xml
I need to send a xml document back to a server but Im nor sure how to do it with .NET. CLIENT performs: URL http://www.myserver.com/index.aspx?var1 123&var2 345 SERVER performs: at index.aspx get var1 and var2. do process and create a xml doc. How do i now send the xml doc back? I dont want to write to a browser. I want to return the xml doc so the user can process it on their end. Thanks.
Consume XML to pass as a string buffer to legacy (2 replies, VIP)
microsoft.public.dotnet.xml
Hi, I am working on a project and a portion of which involves receiving xml files on internet, extract values to build a string and pass that string to legacy system. I am planning on using XMLReader to read passed xml file and extract values that need to be mapped to string buffer. However, in this method I am not able to get the full path (ie., path information from root to this node) detail of ...
Loading multiple schemas doesn't clear XmlSchema.SchemaTypes.Values (2 replies)
microsoft.public.dotnet.xml
Has anyone else run into this? The problem is that I'm loading one schema at a time, to be displayed in a TreeView. Each node in the tree points to an item in the schema via the Tag property. When I load the second schema, the collection of SchemaTypes.Values still contains the first schema's types. This doesn't happen when I write schemas to the console. I'm explicitly clearing the Tag property o...
Read XML from a URL (2 replies)
microsoft.public.dotnet.xml
Hi, I have a classic ASP page, that uses Querystring parameters to return XML. I've created a user control with a URL property. The property has the URL passed through to it e.g. http://localhost/webapp1/class.asp?txtEmployeeID 20 But no data is returned in the xmlTextReader class. It looks like the Querystring parameters have been ignored. Is it possible to do what I'm trying to do? Regards Nick
How to add Data to an XML schema? (2 replies)
microsoft.public.dotnet.xml
Hi, I used the XML Designer to create a schema (a single table). I now want to add a few rows of data to the table. How do I do this? I don't think I can in the schema designer? I'm not using ADO.NET. I'm just using the Dataset to store some configuration data for my application. Thanks! John
How to add instance of XML schema to Form so I can attach it to a ComboBox (2 replies)
microsoft.public.dotnet.xml
Hi, I used the XML Designer to create an XML schema. How do I create an instance of the schema in my Form such that I can use the Form Designer to attach the DisplayMember and ValueMember of the schema to a ComboBox? If I first need to put data in the schema, how do I do this from the Designer? Thanks, John
Throw an Error in WebService (2 replies)
microsoft.public.dotnet.xml
Greetings I have the following webmethod WebMethod() Public Function TestConnection() As Boolean Try dim objAdminUsers as New AdminUsers objAdminUsers.LoadAdminUser() Return True Catch ex As Exception Throw ex End Try End Function When the system throws an exception I get a page not found. However, I have the same code on other pages and they work fine. If there is no error the page works fine. I ...
Parsing XmlNodeType.DocumentType using XmlTextReader (2 replies)
microsoft.public.dotnet.xml
XmlTextReader will return a XmlNodeType.DocumentType indication for a !DOCTYPE tag, but then there is no obvious way to fetch the name, publicId, systemId, and (optional) internalSubset sections of the DOCTYPE. This is either an oversight in the design of XmlTextReader, or a giant gap in the documentation. The problem is that these things aren't true attributes, since DOCTYPE is not XML but instea...
Removing redundant namespace from XML (2 replies)
microsoft.public.dotnet.xml
I have an XmlElement I build with CreateElement. The call looks like this: XmlElement tNode tDoc.CreateElement("abc","SampleData",@"http://www.sample.com/sample"); tNode.SetAttribute("xmlns",@"http://www.sample.com/sample"); The reason I want the default namespace set is to avoid the default being written in child nodes, in my case this is xml serialized from a structure. So this is what I see: ab...
Limitation of Web Service serialisation of XmlDocument? (2 replies)
microsoft.public.dotnet.xml
I am currently testing a new Web Service. My application internally generates a full XML document as a string (this document is actually an XHTML page) and contains a DOCTYPE. I then load this string into an "XmlDoc" object. The web service returns this object as an XmlNode type to the caller. I need this to be sent as the whole XML document, but it would appear that the DOCTYPE node is being omit...
xml file creation error ....UnauthorizedAccessException: (3 replies)
microsoft.public.dotnet.xml
i just want to create a new xml file through xmlwriter but when i tried to run the code i got an error Exception Details: System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\WebApplication5\personal.xml" is denied. The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which...
importing XML doc into SQL Server (2 replies)
microsoft.public.dotnet.xml
Hello, I am trying to import an XML document into SQL Server. I have tried DTS, bulk loading into SQL server and anything else I can think of... The only thing that has worked slightly is : Dim objSQLConn As New SqlConnection(Constants.ConnectionString) Dim objAdapter As SqlDataAdapter Dim objDataRow, objDBRow As DataRow Dim objDSXML As New DataSet() Dim child As Xml.XmlNode Dim objDSDBTable As Ne...
Importing nodes into a existing XMLDoc (2 replies)
microsoft.public.dotnet.xml
Hi, I'm trying to import via ImportNode some nodes into a XmlDocument. I use the following code for combining the documents: public int Add(string pstrUrl, string pstrQuery, XmlNamespaceManager pNsMgr) { XmlDocument doc new XmlDocument(); doc.Load(pstrUrl); //Without namespaces: XmlNodeList list doc.DocumentElement.SelectNodes("//item"); XmlNodeList list doc.SelectNodes(pstrQuery, pNsMgr); foreach...
ML with attributes NOT working with Datase (2 replies)
microsoft.public.dotnet.xml
I am trying to display the "DESCRIPTION" node in a DataGrid control from an xml file. It works fine, as long as the root node does NOT have any attributes, i.e. a count of the number of nodes returned. However almost all of our xml documents have attributes inside the root node, so reformatting the xml documents isn't an option. I've shown below my code, really simple, nothing fancy. This code wil...
READING AN XML document (2 replies)
microsoft.public.dotnet.xml
Hi I have serialized an object to XML using MemoryStream. I want to read the contents of the document and put them in a string. Here's my code: MemoryStream myMemoryStream new MemoryStream(); mySerializer.Serialize(myMemoryStream, this); myMemoryStream.Position 0; XmlDocument docx new XmlDocument(); docx.Load(myMemoryStream);
XslTransform object, Transform method (2 replies)
microsoft.public.dotnet.xml
Of all the eight overloaded Transform methods in XslTransform, none of them write to a string. (They write to streams, readers, files, etc.) Anyone know how to get this to a string? xmlDoc.LoadXml(xml string) xslDoc.Load(xsl path) xslDoc.Transform(xmlDoc, Nothing, ???) How can I get the transformed result into a string? Thanks, Jon
need help with basic XPath query (2 replies)
microsoft.public.dotnet.xml
I have an XML document structured as: ?xml version "1.0" encoding "utf 8" ? tailoredfeedback feedbackSection name "overall" HighActionHighPolicy Some text for this condition. /HighActionHighPolicy HighActionLowPolicy Text for this other condition. /HighActionLowPolicy /feedbackSection feedbackSection name "specific1" HighActionHighPolicy Some text for this specific1. /HighActionHighPolicy HighActi...
XMLSerializer problem (2 replies)
microsoft.public.dotnet.xml
I am getting a " An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll " message when I try to instatiate my xmlserializer class to desirialize an XML file to my serialization class. The deserialization code, and the deserialization class are part of the same assembly, and the missing DLL information is different every time I try to run the code, so I am not sur...
XmlSchema (7 replies)
microsoft.public.dotnet.xml
Is there any way that I can use this class (or any other .NET class) to load and expand all imported types in an XML Schema, and then examine them? My purpose is to be able to examine the structure and attributes of an element defined in a schema to generate program code, but many of my types are imported. I'm loading the schema in an XmlDocument now, but of course, the imported types just look li...
dummy VS.NET & .xml => .xsd question (2 replies)
microsoft.public.dotnet.xml
I have an XML data source, which I want to put in a DataSet I'm both new to this kind of manipulation and VS.NET. here is my problem. Gathering some ideas from some tutorials found on the web I saved a snapshot of the data and add it to a VS.NET project. I go the XML menu and choose create schema, VS.NET create for me a .xsd file for me. Now I believe I could somewhat use this file to generate the...
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