microsoft.public.dotnet.xml Archive - January 2003
Post a message to this list
Messages
Page: 1234
how to call functions in C# from xslt file (3 replies)
microsoft.public.dotnet.xml
how to call functions in C# module from xslt file thanks.
load request into xmldocument using dot net we service (4 replies)
microsoft.public.dotnet.xml
Hello, I wish to write a .net xml web service, using a webmethod that performs the equivalent of the following asp code: %@ language javascript % % Response.Expires 1000; // Load the posted XML document. var doc Server.CreateObject("Msxml2.DOMDocument"); doc.load(Request); var result Server.CreateObject("Msxml2.DOMDocument"); // Now process the order and build the result document. Response.Content...
using ExecuteScalar() to get XML from SQL2K truncates! (5 replies)
microsoft.public.dotnet.xml
Hi all, I have come accross an annoying little problem. I am pulling xml from a stored proc (set up using FOR XML) in SQL2K using the line (c#): string myXmlString " data " (string)sqlCM.ExecuteScalar() " /data "; myXmlDoc.LoadXML(myXmlString); Normally this works fine, but recently I had a very large xml file and found that it had truncated the end off! Has anyone else found this, or is there a m...
XML filtering and sorting (4 replies)
microsoft.public.dotnet.xml
I have a somewhat simple request. I want to take an XML file, filter out certain elements, sort it on an attribute, and return a navigatable structure (like a nodelist or xmldocument). There seems to be several different approaches and the more elegant methods I can think of became a huge mess trying to get all the correct parameters on streams (if I need to use XSL, I want to load it from a strin...
how to handle xsd and xml sintatic error with .Net (2 replies)
microsoft.public.dotnet.xml
Someone know how to get a more detailed information than using XmlException or ValidationEventArgs since there is no access to the HRESULT property and I want to provide more information to the users and perhaps do some basic clean up job. for example: ?xml version "1.0" encoding "UTF 8" ? xs:schema xmlns:xs "http://www.w3.org/2001/XMLSchema" xs:simpleType name "DAT" xs:restriction base "xs:date" ...
REQ: Help on XML/Dataset Designer (2 replies)
microsoft.public.dotnet.xml
I drag and drop a table from the server explorer to the to add to my XML Schema (lets use the Products table from the Northwind SQL Server database). The column "Discontinued" has a default value of 0 (zero). In the XML section of the .XSD file, there is not "default" in the element. Is the drag and drop supposed to function this way? Do we have to manually add default values by using the properti...
XmlTextReader fails to detect encoding errors (10 replies)
microsoft.public.dotnet.xml
Hi, Consider the following document: ?xml version '1.0' encoding 'us ascii'? x ö /x The "ö" is a fatal error for conforming XML processors, .NET 1.0 SP 2 however does not fail to read the document, but silently replaces the "ö" with a question mark, i.e. as if the document was x ? /x . regards.
COM object to xml (serialize) (2 replies)
microsoft.public.dotnet.xml
HI guys! I tryed the xml serializer and all worked well, except when I try to serialize a COM object, such as an "Outlook.Contactitem". I get the following error: THERE WAS AN ERROR REFLECTING 'SYSTEM. COMOBJECT' ...so how can I serialize COM Objects? Thaks for your help, Manuel
Serialization of a collection (2 replies)
microsoft.public.dotnet.xml
I try to serialize a collection of diverse objects (derived of the same class). It works properly with a collection of objects from the same class, but if i try to serialize a collection of objects wich are derived of the same class an exception is thrown. Thanks
Read XML into DataSet (4 replies)
microsoft.public.dotnet.xml
How do I read XML data that looks like this into a Dataset: ROOT Application DocNbr "10002" Address For "Company Owner Address" AdrLine1 "34221" AdrLine2 "342214" AdrCity "431324" AdrState "AK" AdrZip "43214 " AdrCountry "USA" AdrOwnRes "FALSE" AdrSince "01/01/02" / Address For "Company Owner Previous Address" AdrLine1 "3214214" AdrLine2 "324214" AdrCity "342214" AdrState "AK" AdrZip "4321421 " Ad...
illegal characters in path (2 replies)
microsoft.public.dotnet.xml
I get the above message when I attempt to send some xml from a client to a webservice as follows: xXMLHTTP.Open "POST", Module1.gs remote service url, False xXMLHTTP.setRequestHeader "Content Type", "application/x www form urlencoded" ls sent "ixml DOCUMENT ApptID " as visitid /ApptID /DOCUMENT " xXMLHTTP.send ls sent ls response xXMLHTTP.responseText The illegal character is probably the slashes....
Merging XML documents (2 replies)
microsoft.public.dotnet.xml
I'm trying to build a XML document by merging different elements from other XML documents. When I try to AppendChild a node from Document2 into Document1, I'm getting the error message "The node to be inserted is from a different document context." Does anyone have any suggestions on how to work around this complication? And yes, I could, if need be, write a routine that recursively walks through ...
XML in .net VS MSXML com objects (2 replies)
microsoft.public.dotnet.xml
which is better ? which is faster ? I've done a simple test, and found out the MSXML is about 5 times faster than XML in .net. could that be ?
Returning XML from an XSLT extension object (2 replies)
microsoft.public.dotnet.xml
Hi, I'm able to return XML from an extension object, but it looks like the .NET transformer treats the returned XML as a simple string. Example (in a class implementing the extension object) public XPathNodeIterator ToXml(string source) { // real code processes 'source' string XmlDocument doc new XmlDocument(); doc.LoadXml(" x keyword static /keyword /x "); XPathNavigator nav doc.CreateNavigator()...
Trouble using xslt with xml returned from SQL Server (5 replies)
microsoft.public.dotnet.xml
I am getting xml data from SQL Server using a dataset and loading it into an xmlDataDocument. This works fine, but when I try to transform it using a style sheet I cant get it to work unless I remove the xmlns attribute from the documentelement. How can I retrieve data from the dataset without this attribute? Or what do I need to do with my stylesheet so it is happy with this attribute? Here is th...
Urgent Help-Updating, Adding and Deleting Data in XML (2 replies)
microsoft.public.dotnet.xml
Hi, I am stephen and am working on Smart Device Extensions. I have written a small application that uses XML to read and write Data using DataSets and DataAdapters. I want to know how to Add, Delete or Update data into an XML document... Kindly advice, Stephen
Problem serializing class - cannot create sub-elements (2 replies)
microsoft.public.dotnet.xml
I am having a problem serializing a public class: Public Class test Public Name As String Public browserinfo As System.Web.HttpBrowserCapabilities End Class With the code: Dim s, appname As String Dim objtest As New test() objtest.Name "TestXML" objtest.browserinfo Page.Request.Browser Dim xs As New System.Xml.Serialization.XmlSerializer(GetType(test)) Dim sw As New System.IO.StringWriter() Dim te...
Namespace question, getting rid of xmlns="" (2 replies)
microsoft.public.dotnet.xml
When I'm building up XML with C#.Net I keep getting undesired xmlns "" added, like this: soap:Body Discover xmlns "urn:schemas microsoft com:xml analysis" RequestType MDSCHEMA DIMENSIONS /RequestType Restrictions RestrictionList CUBE NAME xmlns "" campaign /CUBE NAME /RestrictionList /Restrictions Properties PropertyList DataSourceInfo xmlns "" Provider yaddayadda /DataSourceInfo Catalog xmlns "" ...
Problem with xml-namespace handling in DTD (2 replies)
microsoft.public.dotnet.xml
Hi! I have a problem validating against a DTD Declaration of xmlns attributes in DTDs (like the one for SVG for example (comes from W3C so chances are good that this DTD is o.k. ....): !ATTLIST NameOfElement xmlns CDATA #FIXED "http://www.hirsch.de/public/URI" will cause an error in System.Xml.XmlNSAttributeTokenInfo.FixDefaultNSNames(): System.XML.XmlException: Das 'x' zeichen, hexadezimaler Wert...
UTF-8 characters display XML Unicode (4 replies)
microsoft.public.dotnet.xml
Subject: UTF 8 characters display XML Unicode in the oracle database we have a value ABCT if we do query in SQL Navigator: SELECT DUMP(c name, 1016) FROM C MASTER WHERE c no '1'; this is what displayed: Typ 1 Len 4 CharacterSet UTF8: 41,42,43,99 in a vb file we are executing stored procedure using Oracle Data Provider for .NET (ODP.NET) Dim dt As DataTable dt m oDataAccess.RunSPWithDataTable(SP SC...
XSLT Transformations (3 replies)
microsoft.public.dotnet.xml
I am having a problem getting one of my stylesheet tranformations to work correctly. I am making a call to c# code in my stylesheet. Here is the code: msxsl:script language "C#" implements prefix "local" ![CDATA[ public string getXML(XPathNodeIterator nodeList) { try { nodeList.MoveNext(); //Line with error XmlNode node ((System.Xml.IHasXmlNode)nodeList.Current).GetNode(); return node.OuterXml; } ...
XMLReader and XMLDocuments What is going on here? (2 replies)
microsoft.public.dotnet.xml
Hi All, This has gotta be easy, but I cannot see how to get XML from SQL Server into an XML Document. OK I've worked with getting XML from stored procedures into strongly typed datasets, No problem. I set up a stored procedure written to generate XML using FOR XML EXPLICIT and then use an XMLReader to retrieve the XML followed by the ReadXML method of my strongly typed dataset. The Dataset is popu...
How do I deserialize if I don't know what object the file contains? (3 replies)
microsoft.public.dotnet.xml
I'm an XML newbie so I may be missing something very basic. I can save my objects to a text file as XML by doing: XmlSerializer serializer new XmlSerializer(typeof(MyObject)); TextWriter writer new StreamWriter("test.xml"); serializer.Serialize(writer, myObj); and I can turn that XML back into an object with: XmlSerializer serializer new XmlSerializer(typeof(MyObject)); TextReader reader new Strea...
XML Data Encoding... (2 replies)
microsoft.public.dotnet.xml
Hello, I'm struck with a little problem. Using WebDAV I access exchange and receive a XML stream as response, then I read the stream using XmlDocument.... when I finally extract some data from the document XmlNode oSubject oNode.SelectSingleNode("descendant::x:subject", oNameSpaceManager); if(oSubject ! null) { Console.WriteLine(oSubject.InnerText); } I get e.g. this: ?us ascii?Q?The Future is 22b...
update XML document (2 replies)
microsoft.public.dotnet.xml
Whats the most efficent way to read all the dtDate value of the following xml document and then update the same xml file?? Table pkReportHourly 1 /pkReportHourly dtDate 2002 12 30T13:00:00.0000000 08:00 /dtDate iVisits 436 /iVisits iSignings 152 /iSignings iCheckouts 33 /iCheckouts iPurchases 7 /iPurchases /Table Table pkReportHourly 2 /pkReportHourly dtDate 2002 12 30T14:00:00.0000000 08:00 /dtDa...
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