microsoft.public.dotnet.xml Archive - February 2003
Post a message to this list
Messages
Page: 123
XSD.exe not generating schema matching code? (2 replies)
microsoft.public.dotnet.xml
I may be missing something, but it seems like the classes generated by XSD.exe aren't fully compliant with the schema. As an example, I've whipped up a simple schema that might be used to return city information from a query. The XSD uses SimpleTypes with pattern restrictions to ensure that state's only have 2 letters and that zip codes are correct. The problem is that the types generated xsd.exe ...
XML stream to Dataset? (2 replies)
microsoft.public.dotnet.xml
Hi All I have an XML stream, and i would like to put it into a dataset.... using c# is this possible? thanks tony
Getting SigningKey from .cer file (2 replies, VIP)
microsoft.public.dotnet.xml
Does anyone know if I can derive a signingkey (System.Security.Cryptography.XML.SignedXML) from a .cer file containing the Digital Certificate. I need to sign an XML payload using a particular DC. I have use dthe MSDN example for SignedXML and it produces a great signedXML output however it uses a genereic key crearted by RAS.Crrate(). The MSDN notes on the property SigningKey does not have good e...
Help Using XMLDocument.load to access a remote XML db source with a query string (4 replies)
microsoft.public.dotnet.xml
I need to be able to access a remote xml data source ( db program that provides an XML web interface) from within a web service I'm building (mainly to provide protection for the db source). In VB6 or VBscript, life was simple. I just used (in vbscript) something like set myxml createobject(msxml2.domdocument) myxml.load(URL/DB?operationstring) Of course, when I try to do the same thing in VB.net ...
subtle problems in XSLT parser (7 replies)
microsoft.public.dotnet.xml
In case someone from Microsoft reads this, I've found a few behaviors in the .Net XSLT parser which may be bugs: 1) An xsl:variable or xsl:param causes an error if it is not "declared" before it is used. This works: xsl:variable name "test" This is a test /xsl:variable xsl:value of select "$test"/ The following does not work. It works with MSXML4, and I believe that XSLT says it should work. The v...
xml serialization questions (2 replies)
microsoft.public.dotnet.xml
hi all is there a way to control (eg. turn off) the schema and schema instance (xsd/xsi) root attributes written during xml serialization? for example, when i serialize a class, the serializer adds as attributes: xmlns:xsd http://www.w3.org/2001/XMLSchema and xmlns:xsi http://www.w3.org/2001/XMLSchema instance to the root element (a side question is, what are these?). i looked at overriding xml at...
The expression passed to this method should result in a NodeSet. (2 replies)
microsoft.public.dotnet.xml
Can someone help with this please? I eventually want to say if a node with attrib categoryid 1 exists then add a node to it? what is wrong with this xpath expr/code? i have tried variations.... :( The expression passed to this method should result in a NodeSet. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more infor...
Paging results within XSLT (4 replies, VIP)
microsoft.public.dotnet.xml
Hi Everyone, I am in dire need of finding a solution to my problem. My problem is that I need to establish a counter within my XSLT that will allow me to show my search results in sets of 10 (or whatever I set that variable to). I cannot use the position() function because i am not returning consecutive rows. Below is the basic template which I will be implementing the counter in. Any advice, code...
no assembly associated with Xml key (2 replies)
microsoft.public.dotnet.xml
With a program I can serialize and deserialize an object using the Soapformatter to a file. When I try to deserialize the file back to the object in a different program I get the Error: Parse error, no assembly associated with Xml key .... I've tried setting the FormatterAssemblyStyle to 'Simple'. This did not help. How can I get around this error?
problen in using Msxml2.ServerXMLHTTP in .net (2 replies)
microsoft.public.dotnet.xml
While I tried to use Msxml2.ServerXMLHTTP in .net it give error on objServerXMLHTTP.responseText methid as "The data necessary to complete this operation is not yet available" Same code is working fine with classic ASP. could some one tell the reason and tell the soluation
Loading 20MB XML file near locks the machine! (3 replies)
microsoft.public.dotnet.xml
I have a PowerMac and iTunes. My song library is now at 13k songs. iTunes has an option to export the library as a .xml file. I did this and the resulting .xml file is 20MB in size. I tried to load the .xml file in the Mac's IE browser, but it kept loading and loading and loading... I canceled and just dropped the file on my PC over my network to try to view it there. IE on the PC started loading ...
XSD parsing for elements (2 replies)
microsoft.public.dotnet.xml
How do I parse an XML Schema (XSD) and get the child elements along with it's types without going through the complexity of using XmlSchema object and interpreting each line of information that it provides back. Currently we are trying to use XmlSchema class. But using this method, once you get an element, you need to see if it's complex type. If so, check whether there is a sequence. If so, get t...
msxsl:script and assembly references (2 replies)
microsoft.public.dotnet.xml
I'm using a msxsl:script element in a XSLT Stylesheet for embedded scripting. In the script I define a function which looks up some values, missing in the input XML, in a database. In order for the script to access the database I need to use classes in the System.Data.SqlClient namespace. This is what the start of the script element lookes like: msxsl:script language "C#" implements prefix "user" ...
Extracting values using XpathNavigator (4 replies)
microsoft.public.dotnet.xml
I'm looking for a way of extracting values (attributes or elements): The usual way seems to be this: myXPathIterator myXPathNav.Select(" my xpath expression ") if (myXPathIterator .MoveNext()) then myVar myXPathIterator .current.value end if That works out to 4 lines of code per value. What I want is something like: myVar myXPathsomethingOrOther.Select(" my xpath expression ") Performance is not a...
Fastest XML Reading? (2 replies)
microsoft.public.dotnet.xml
Is there a faster way to read through an XML document received as a string? Code: byte[] sourceBytes System.Text.Encoding.Unicode.GetBytes(xmlSource); MemoryStream memStream new MemoryStream(sourceBytes); XmlTextReader xReader new XmlTextReader(memStream); int elementCounter 1; while ( xReader.Read() ) { ....... Sample data: ?xml version "1.0" encoding "utf 16"? data file name "1001.txt" Size "131...
xmlelement & serialization (3 replies)
microsoft.public.dotnet.xml
Hi, I have this class that I need to serialize: public class RPRTPerson { public string fname; public string lname; [XmlElement] private Itemobj[] item; public RPRTPerson() { } public RPRTPerson(string fname, string lname, Itemobj [] items) { this.fname fname; this.lname lname; this.item items; } public class Itemobj { public string subitem1; public string subitem2; public Itemobj() { } public Ite...
Dataset, XML & CDATA sections (2 replies)
microsoft.public.dotnet.xml
How can we force a particular field in a dataset to output a CDATA section for its value? I tried this: XmlDataDocument doc new XmlDataDocument(dataset); XmlNodeList list doc.SelectNodes("Description"); int nbNode list.Count; for(int i 0; i nbNode; i) { XmlNode node list[i]; string text node.InnerText; node.InnerText ""; XmlCDataSection cdata doc.CreateCDataSection(text); node.AppendChild(cdata); ...
GC.Collect() and XML file IO (2 replies)
microsoft.public.dotnet.xml
I'm working with XML files using the XMLDocument object and it's 'Load' and 'Save' methods for reading and writing to the file system. I've observed a problem where if an exception occurs while a reference to the XML file exists, the object seems to stay in memory because the code that explicity sets this object to Null is never called. As a result that XML file is locked, and code that attempts t...
Returning large amounts of data from a web service (3 replies)
microsoft.public.dotnet.xml
Hi, I need to return a very large XmlDocument from my web service. Is it possible to split the return, perhaps by chunking or buffering it??? Thanks, Sharon
How-to remove link between a node and it's ownerdocument ? (3 replies)
microsoft.public.dotnet.xml
Hi, Can anyone tell how I can remove the link between an xmlnode and it's ownerdocument, without using ImportNode on the target XmlDocument ? I want to write a method that returns an XmlNode object and allow callers of the method to be able to add it to a(nother) xmldocument without having to call ImportNode on the destination XmlDocument. Any ideas ? Thanks, Gert
decimal or hex entitiy in XML attribute (2 replies)
microsoft.public.dotnet.xml
Hi, I am trying to use XmlTextReader.GetAttribute to read some misc string flags for my C# program. How do I encode escape characters or other decimal or hex entities? miscFlags flag1 'WantEscapeAsLastChar' /miscFlags // the  is ignored miscFlags flag1 'WantEscapeAsLastChar&#x1B' /miscFlags // the &#x1B causes an invalid hex numeric entity exception miscFlags flag1 'WantEscapeAsLastCha...
Edit XML file without creating the whole XmlDocument (DOM-Tree) (2 replies)
microsoft.public.dotnet.xml
Hello I have Xml Files that reach the size of about 100'000 bytes. Is there a possibility to append an element to an Xml File without creating the whole DOM tree, adding the XmlNode and saving it again? Thanks
start mode in XslTransform (3 replies)
microsoft.public.dotnet.xml
Hello! Am I right that XslTransform doesn't support start mode like msxml does or I missed something? Oleg Tkachenko Multiconn Technologies, Israel
XmlNamespaceManager, NameTable and LookupPrefix (4 replies)
microsoft.public.dotnet.xml
Hi All, What am doing wrong here? I have a document thus.... ?xml version "1.0" encoding "utf 8" ? ic:traffic data xmlns:ic "http://zygonia.net/data loader uri/ic" xmlns:hd "http://zygonia.net/data loader uri/hdr" hdr:header ...[snip]... /hdr:header ic:body ...[snip]... /ic:body /ic:traffic data The xml documents aren't generated by us but they must conform to the schema's we produce. Now, the ext...
Need More during XML Validation (3 replies)
microsoft.public.dotnet.xml
I'm using XmlValidatingReader everything works fine. The Schema defines a few possible strings for some nodes in my xml documents using restriction of the simple type xs:string and enumeration. If there is an invalid value and it's catched in the validation event handler i would like to display the wrong value to the user and give him a list of the possible (from the schema enumeration) values so ...
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