| Code View (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi Im opening a page in VS.Net and it opens fine in the code view, however, when i make any changes or switch to design view it removes all my code formatting and puts the code into one huge paragraph. Anyone know why and how to stop this. |
|
| TransformNodeToObject Equivalent in XML.Net? (2 replies) |
| microsoft.public.dotnet.xml |
| Anyone know of the best .NET implementation to replace the XML3.0 "TransformNodeToObject" method for a XMLDocument? Currently, I am using the XSLTransform.Transform call and getting an XMLReader object back. I am then loading the XMLReader into a new XMLDocument. This works fine, except that I lose the formatting specified by the xsl:output element in my stylesheet. Specifically, I lose the CDATA ... |
|
| convert struct in c - to xml (2 replies) |
| microsoft.public.dotnet.xml |
| Hi Everyone, is there a way to convert structs in c language to xml ,by schema (for nested structs) ? |
|
| Xpath query (2 replies) |
| microsoft.public.dotnet.xml |
| what is the procedure in c# form find an attribute from an object MSXML2.IXMLDOMNode??? I have try by define an object MSXML2.IXMLDOMElement but i dont know how connect an IXMLDOMNode with IXMLDOMElement thanks |
|
| Simple xPath (5 replies) |
| microsoft.public.dotnet.xml |
| I am trying to get a single node from an xml file. I have code that works in VB6 using the MSXML 3.0 parser, but fails in VB.NET using the XMLDocument. Does anyone know what is wrong? VB 6.0 Set oDOM New MSXML2.FreeThreadedDOMDocument oDOM.async False oDOM.Load App.Path & "\Excel2.xml" Set oWorkbook oDOM.selectSingleNode("/Workbook/Worksheet") In VB.NET, the selectSingleNode method returns nothing... |
|
| XML & .NET (2 replies) |
| microsoft.public.dotnet.xml |
| Can someone explain to me the difference between the XML support in .NET and the XML 3.0 and 4.0 SDK located on the microsoft site? Is the support in .NET equivalent to the 3.0 SDK or the 4.0? Brian Patterson |
|
| Am I Crazy or did M$ change the DOM Element object? (2 replies) |
| microsoft.public.dotnet.xml |
| In vb6, I could create a DOM element, specify a DataType of Bin.Base64 and apply the binary data to the NodeTypedValue property. I could send this XML file anywhere and to read back the binary data, all I had to do was navigate to the correct node and get the value back from the NodeTypedValue property. Well, it seems in .Net, Microsoft has removed the NodeTypedValue property from the DOM Element ... |
|
| Using XML as a simple Database? (2 replies) |
| microsoft.public.dotnet.xml |
| I've been using Access to hold a number of small tables of data and it seems overkill. I also don't want my end users to have to install the DB runtime support (and I don't want to ship those huge dll's either!). I was doing some reading about XML and think it may just work for what I want. In a nutshell, I need to have a 'database' with about 6 tables in it with no more than about 30 50 records p... |
|
| XML:Sax (2 replies) |
| microsoft.public.dotnet.xml |
| Am I correct when I say there is not SAX support in .NET in relation to XML? I see that help says it supports both stream level and DOM I assume when they say Stream Level they mean SAX, but it doesn't actually say that. Can someone enlighten me? Brian Patterson |
|
| Access 2002, FOR XML Query and VS.net (beta2) (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Is it possible to retrievexml data from Access2002 (XP) database? Regards, George Bogatov rain@acer access.com |
|
| Problems using DocumentNavigator (3 replies) |
| microsoft.public.dotnet.xml |
| Hi all, I am trying to use DocumentNavigator class in C# and I always have problem when I try to compile ; Form1.cs(105): The type or namespace name 'DocumentNavigator' could not be found (are you missing a using directive or an assembly reference?) Does someone know what I must add to my project so that it will recognize this class. Should I add a namespace (I added only System.Xml). Thanks all, |
|
| What is the best way to move a node? (2 replies) |
| microsoft.public.dotnet.xml |
| Suppose I have read the following XML into an XmlDocument: root row id "1" Alpha /row row id "2" Beta /row row id "3" Delta /row /root What is the best way to move row 2 so that it is in front of row1? result: root row id "2" Beta /row row id "1" Alpha /row row id "3" Delta /row /root |
|
| xmldocument.load(filename as string) (2 replies) |
| microsoft.public.dotnet.xml |
| I can not load an xml file into my xmlDocument object. I am doing this Dim xmlDoc As New XmlDocument() xmlDoc.Load("test.xml") When I run this code I get an error saying that: There was an error accessing file:///C:/WINDOWS/system32/test.xml. test.xml is in the same folder as my asp file... How do I set my app to use relative path? How do I get path of the app e.g. like in VB app.path? Thanks. |
|
| XSD.exe: Serialization/Deserialization and XSL (2 replies) |
| microsoft.public.dotnet.xml |
| I'm having some difficulty sifting through the .NET classes to accomplish what I think is a relatively simple task. I have classes that were generated by XSD.exe. I use these classes to compose XML by setting properites of the objects etc. When it comes time to generate the XML that these objects represent, I would like to use the XmlSerializer.Serialize method but I would like to store the output... |
|
| XmlSchemaImport (3 replies) |
| microsoft.public.dotnet.xml |
| How to use it? Any idea? Can u give a sample? Thanks in advance! |
|
| Appending XMLNode to a document (2 replies) |
| microsoft.public.dotnet.xml |
| For the life of me I cannot get this to work..... Porting code into a webservice and using the new version of XML Error: System.ArgumentException: The node to be inserted is from a different document context please... any ideas? Old version worked: For Each objNewNode In objXMLDoc.documentElement.childNodes objActionNode.appendChild objNewNode Next Does Not Work: For Each objNewNode In objXMLDoc.D... |
|
| Improper Node List Behavior? (2 replies) |
| microsoft.public.dotnet.xml |
| Improper Node List Behavior? We are experiencing some very strange behavior (corruption?). We are foreaching an XmlNodeList and adding elements to the DOM it was created with. If the following code is run it will continue endlessly. If a break point is put in and nlsTest is inspected the code will end as expected. Our belief is that the XmlNode List while based on "Live" Nodes should not be affect... |
|
| Deleting a node (2 replies) |
| microsoft.public.dotnet.xml |
| Hi, How can I delete a node using the DOM? I'm able to delete it when the xml is loaded into an XmlDocument object with the RemoveAll() method, but when I want to save the modification back to the xml file with a XmlTextWriter object, it override every other node and give me a blank xml file. string filename "..\\file.xml"; doc.Load(filename); string srch "film/photo[titre '" listBox1.SelectedItem... |
|
| Add entry to XML file (3 replies) |
| microsoft.public.dotnet.xml |
| Hello, Could anyone give me quick example of how to open an XML file in C# or, preferebly VB.NET, add an entry to it and save it. The XML file could be: people person name John /name /person /people And I would like to add an entry like this: person name Michael /name /person Thanks a lot. Anders |
|
| XMLHTTP and WebServices (2 replies) |
| microsoft.public.dotnet.xml |
| We have a web application where the user works on a webform, that retrieves some of its data from a WebService. This works fine and there is full access to the ASP Session object etc. from the WebService code. However, when we then, from the very same page, try to retrieve further data from other methods in the WebService via client script and XMLHTTP, a problem arises: The WebService apparently h... |
|
| Loading a dataset with InferSchema? (3 replies) |
| microsoft.public.dotnet.xml |
| Hello all, I have a statement like the one below where I read an xml string to load a dataset, by infering the schema: MyDS.ReadXml(myXmlTextReader,XmlReadMode.InferSchema); And where the xml string is: invmst xmlns:inv "invmst" record inv:description Phoenix T Shirts /inv:description /record /invmst Apparently when the xml is read, it strips off any prefixes from the fields to name the columns in... |
|
| XSD.exe vs. Biztalk Framework Toolkit (5 replies) |
| microsoft.public.dotnet.xml |
| The BizTalk Framework Toolkit that is available for Visual Studio 6 allows you to generate a set of VB6 COM components which represent an XML schema. That way you can access an XML document or create an XML document without the low level DOM method calls. I really enjoy that functionality. Is there a similar tool for VB.NET and the .NET Studio? I have looked at XSD.exe, but it doesn't look like wh... |
|
| Error:Can't read from xml file (2 replies) |
| microsoft.public.dotnet.xml |
| I want to read data from a XML file and store it into a DataSet object. the path of the file is c:/Temp/guest.xml but I get the following error and I can't read the data: System.Web.HttpException: 'c:/Temp/guest.xml' is a physical path, which is not allowed here at System.Web.Util.UrlPath.FailIfPhysicalPath(String path) .... Anyone has an idea about this?Thanks. |
|
| Why would this generate an error? (3 replies) |
| microsoft.public.dotnet.xml |
| sXml " root hid:record xmlns:hid 'hid' hid:tsales 0 /hid:tsales hid:tquan 0 /hid:tquan /hid:reco rd ins:record xmlns:ins 'ins' ins:on hand 16 /ins:on hand /ins:record /root "; NameTable nt new NameTable(); XmlNamespaceManager nsmgr new XmlNamespaceManager(nt); nsmgr.AddNamespace("bk", "urn:sample"); XmlParserContext context new XmlParserContext(null, nsmgr, null, XmlSpace.None); //Create the reade... |
|
| Large XslTranform Transformations (Bug?) (2 replies) |
| microsoft.public.dotnet.xml |
| My WebService is getting bogged down when trying to transform a *recursive* XSLT document using the XslTransform class (when the XML data has 1000 nodes). If I do the same transformation, with the same data, using the DOM or IE Data Islands the transformation is instantanious. When I use XslTransform.Transform(XPathDocument, XsltArgumentList, StringWriter) each node takes expotentially longer to t... |
|