microsoft.public.dotnet.xml Archive - March 2002
Post a message to this list
Messages
Page: 1234
Finding & updating a specific node... (4 replies)
microsoft.public.dotnet.xml
I have an XML structure. I need to find a specific node (by an attribute value) and update an attribute within that node. I am able to successfully get the value out of the target attribute in the target node, but I can't update it... because I find the node with the XPathNavigator (providing only a read only view of the XML doc). I access those nodes using the XPathNodeIterator and then, using th...
XmlDocument and namespace info - don't do it (2 replies)
microsoft.public.dotnet.xml
Can someone please explain why I can't have namespace info in an XML file that I then load into an XmlDocument object using the load method? When I do this the Load doesn't throw an exception, InnerXML contains all the file text but you cannot do anything with child nodes. I would love to hear why MS did this. Seems to me that they should either throw an exception and not allow it or ignore it. I ...
XPath Query (2 replies)
microsoft.public.dotnet.xml
Hello ! I have XML, that contains customers information. I need select from my application nodes from XML file, that customer name contains specified string. I using XML2.DOMDocument and selectNodes method. How can i select nodes ?
CloneNode (5 replies, VIP)
microsoft.public.dotnet.xml
Hi, how can I append to a XmlDocument a XmlNode from another Dom? I tried XmlTmp new XmlDocument(); XmlTmp.Load(mypath); XmlNode tmp; tmp XmlTmp.DocumentElement.CloneNode(true); XmlMap.DocumentElement.AppendChild(tmp); // ERROR But I get the following error: Exception Details: System.ArgumentException: The node to be inserted is from a different document context. How can I do? Thanks in advance. F...
Getting Mad with XML in .Net (4 replies, VIP)
microsoft.public.dotnet.xml
Hi, I'm trying to perfor a simple XPath query (it's running in VB6) but it seems to be more stuff to deal with than the XmlDocument. Well, first I populate de DOM and then I try to find a specific criteria nodeList. Well, first of all, to run the XPath as a .selectNodes(XPath) I had to create a XmlNamespaceManager and put it as the second parameter of the selectNodes function otherwise the compile...
Schema reference breaks XmlDocument.Load without thrown exception (2 replies, VIP)
microsoft.public.dotnet.xml
I have an XML document that I added a schema reference to so I can eventually validate it. The XML document and the XSD schema document are both valid according the the vs.net validators. I am loading the XML document by doing an (XmlDocument).Load(path to file) which doesn't validate the document, is not supposed to validate the document and I don't want to validate the document. The load runs fi...
XML Webcontrol does not transform if xsl or xml set in (2 replies, VIP)
microsoft.public.dotnet.xml
XML Webcontrol does not transform if xsl or xml set in code, It straight shows the xml with out any transformation. My XML and XSL is working, it works if i set the source document and transform dource in property window. here is the code myDataAdapter.Fill(ds ,"Appications"); //Load the document with the DataSet. XmlDataDocument xDoc new XmlDataDocument(ds); XslTransform xslt new XslTransform(); ...
XML Nodes Disappear when Moved (Code Attached) (3 replies)
microsoft.public.dotnet.xml
Hello! I have this problem. I've attached code of where I move a child element in an XMLDataDocument from one parent to the other. Ths issue is the attributes against which I match my XPath locations in finding the source and destination nodes. They disappear when I re insert the node ... I have no idea what's going on here. The code used for moving nodes are as follows: MoveNode("//xyz:Parent[xyz...
how do you set the value of an xsl:variable from .net transform? (4 replies)
microsoft.public.dotnet.xml
Hello, I have an xsl stylesheet with a variable...we'll call it xsl:variable name "myVar" / How do I set the value of this variable from within .net (c#) code at the point of the transformation? In "old" xml, it worked like this, but I can't seem to find the .NET equivalent. Any help would be much appreciated! MSXML2.IXMLDOMNode oVariableNode; oVariableNode objXSL.selectSingleNode("//xsl:variable[...
Application settings in XML (2 replies)
microsoft.public.dotnet.xml
The following XML is for getting some startup values when showing some forms frmMain StartupLocation x "10" y "20" width "80" height "100" /StartupLocation /frmMain frmPerson StartupLocation x "10" y "20" width "100" height "130" /StartupLocation /frmPerson I get the value of attribute x for example, with this code XMLDoc.Load(strFileName) XMLDoc.SelectSingleNode("frmMain/StartupLocation").Attribu...
Create an XML file from a diffgram that contains the tags from null values (2 replies)
microsoft.public.dotnet.xml
Hi, I have a select statement to fill a dataset SELECT * FROM HourEntries WHERE ((Resource 'steve1') AND ((Status 0) OR (Status 1))) This returns some columns that have null values. I then create an XML schema using this dataset and then I try to use this schema to fill an XML file. (da data adapter) (ds dataset) da.Fill(ds); ds.WriteXmlSchema("..\\..\\..\\diffgram.xsd"); ds.WriteXml("..\\..\\..\\...
Properties on XMLDocument object (3 replies)
microsoft.public.dotnet.xml
Using MSXML4, I set the following properties, oXML.setProperty "SelectionLanguage", "XPath" oXML.async False oXML.validateOnParse False Does anyone know how to duplicate this in .NET or is it even necessary and is there any more documentation for someone migrating from the MSXML 4 to the System.XML lib? Thanks.
which classes for reading XML files? (2 replies)
microsoft.public.dotnet.xml
Hi All, some month ago I used the MSXML 4 components for working with XML files... the first question is: which differences are there between the XML classes in the .NET Framework and the small set of components of the MSXML 4 ? I mean, are they two different technologies or the .NET Framework implements/uses the MSXML 4 inside? I think the .NET Framework doesn't use those components, so the secon...
Transform with Default Namespace (3 replies)
microsoft.public.dotnet.xml
I have an XSLT that includes the fragment: BODY xslt:apply templates select "DOC/METADATA" / /BODY /HTML and the template reads: xslt:template match "METADATA" div class "METADATA" xslt:value of select "." / /div /xslt:template and the source file reads: ?xml version "1.0" encoding "utf 8" ? DOC xsi:schemaLocation "http://www.logicon.com/BRB dtd/brb.xsd" xmlns:xsi 'http://www.w3.org/2001/XMLSchema...
xsl transform to stream adds extra characters (4 replies)
microsoft.public.dotnet.xml
I have a single xslt file which I use to do two kinds of transformations: one to a FileStream object, the other to a MemoryStream. When I transform to file, everything looks fine. But when I transform to a MemoryStream, then get the string out of the stream, the beginning of the string is "o;?", followed by the "real" html. The html is also missing a block of html comments (wrapped in " ! " and " ...
Include .xsd in class (2 replies)
microsoft.public.dotnet.xml
Is there a way to include a XML schema document in an assembly (.dll)? We want to have the XML validation done in machine code as opposed to constantly opening/closing the schema document. How can this be done?
xsd.exe errors with valid xml (2 replies)
microsoft.public.dotnet.xml
I have a simple xml representing the file system on my computer. When I run this through XSD I get an error: This seems to be perfectly legal xml and I have several xslt files that handle it very nicely. Is this a bug in XSD, or does XSD impose limitations on normal XML? Michael error message Error: There was an error processing 'filesystem.xml'. The same table (folder) cannot be the child table i...
xmlValidatingReader (3 replies)
microsoft.public.dotnet.xml
Has anyone ever used the xmlValidatingReader object? I'm trying to use it to validate an XML document against an XSD for that document. I found code that should do what I need in .NET's help index, but it's not quite doing what it I think it should. I don't know a lot about this kind of thing so I'd just like to see some more information or if anyone has used this object, what did you find worked ...
date datatype in XSD (2 replies)
microsoft.public.dotnet.xml
I'm having a problem with datatypes. As you can see from the schema below, the types are correct and the format of the date in the XML is correct too, but it's not being recognized. The error I get is: The 'http://tempuri.org/longer than 8k.xsd:Date' element has an invalid value according to its data type. An error occurred at file:///c:/myDirectory/IndexSystem/longer than 8k.xml(7, 19). Another i...
UserControl serialization problem- TargetInvokationException (2 replies)
microsoft.public.dotnet.xml
I have a user control which I am attempting to serialize / deserialize and get the following exception: "System.Reflection.TargetInvocationException" occurred in mscorlib.dll. Exception has been thrown by the target of an invocation. If I look at the InnerException, it says that there is an "invalid cast". I have marked my control with the [Serializable()] attribute and implement the ISerializable...
reading binary array with XMLReader (2 replies)
microsoft.public.dotnet.xml
I'm using an API that returns to me an XML document as an array of bytes rather than a string. I'd like to read it with an XMLReader object. I'm not sure how to do this. I suspect I can somehow use a Stream object to as an intermediary, but I can't make sense of out how to pass the binary array to the stream. Any advice? Tanks.
Having problems displaying selected XML data using datarow (2 replies, VIP)
microsoft.public.dotnet.xml
I'm working on what I though would be a simple display page to learn how to display XML on a page but I am having a lot of problems with it. The XML file that I'm working with is hosted on another site and can be viewed here: http://www.camelotherald.com/guilds/Iseult/403.xml I have been able to bring this data into a data grid without any problems. Now I'm working on individual detail pages and I...
Passing custom objects into a WebMethod (7 replies)
microsoft.public.dotnet.xml
I read another thread regarding passing custom objects into and out of a web service WebMethod, but it didn't work for me maybe because I'm trying to use C#. I have a web service running at http://localhost/WebServices/TestService.asmx. Here is the WebMethod in my TestService class: [WebMethod] public CustomObj DoSomething(CustomObj o) { o.field "new value"; return o; } In my client code, I added ...
create a tree like explorer from an xml file (4 replies)
microsoft.public.dotnet.xml
How I can convert this structure to an html tree using stylesheet ? ?xml version "1.0"? manifest organization item identifier "a" title aaa /title item identifier "b" title bbb /title /item /item item identifier "c" title ccc /title /item /organization /manifest The result tree collapsed: aaa ccc when I click on "aaa" the tree will expand : aaa bbb ccc Is it possibile create a stylesheet like this...
Transferring binary data, GIFs via soap (2 replies)
microsoft.public.dotnet.xml
I'd like any guidance, suggestions, examples... on transferring binary data, in particular GIFs, via SOAP. I'm using C# in VS. Thans
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