Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
all groups > dotnet xml > may 2005

Filter by week: 1 2 3 4 5

You should pass XmlResolver to Transform() method
Posted by Rouven Hertenstein at 5/31/2005 3:41:18 PM
Hi, I'm trying to test the vb.net-exercise "How to use a DataSet with the Office XP Chart Component and ASP.NET" on http://support.microsoft.com/kb/303016/en-us Visual Studio rails against the expression: "xslTran.Transform(xmlDoc_ds, Nothing, context.Response.Output)" and comments: "Pu...more >>


XmlDocument.SelectNodes returning zero nodes
Posted by George at 5/30/2005 3:14:19 AM
XML Sample 1 : - <?xml version="1.0" encoding="UTF-8"?> <!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by PHS Group plc (PHS Group plc) --> <EntityConfiguration xmlns="x-schema:C:/QuantivProjects/QuantivT/Scheme/QuantivBase/QTVConfiguration/EntityConfiguration.xdr" xmlns:dt="urn:schema...more >>

How to add namespace to msxml2.DOMDocument40Class ... Help needed
Posted by Sankaran K via .NET 247 at 5/30/2005 1:54:17 AM
Could anyone tell me how to add a namespace to msxml2.domdocument40class object. I tried String nameSpace = "http://www.w3.org/2002/xforms"; msxml2.domdocument40class xformsdoc; xformsdoc.namespaces.add("xforms",nameSpace); But it doesn't work. Could anyone tel me how it works? Thanks in ...more >>

using namespace in xpath for SelectSingleNode
Posted by Angela at 5/27/2005 10:28:32 AM
I am getting an error when I attempt to access a node with SelectSingleNode(): "The expression passed to this method should result in a NodeSet." I understand there is some confusion when you have to state a namespace in the xpath. Can the node be accessible by the xpath specified? Thanks. ...more >>

Inserting Processing Instruction
Posted by ledder77 NO[at]SPAM hotmail.com at 5/27/2005 8:14:21 AM
Hi, I need to find a way to insert a processing instruction to an xml document after all the other nodes have been correctly added. That's because I get an xml from a method that I can't modify and I need to add a processing instruction in order to render the xml using a custom xsl stylesheet. ...more >>

xpath for children
Posted by helpful sql at 5/26/2005 3:01:46 PM
Hi all, Following is a part of an Xml document I am having problems with. I have a XmlNode variable in my C# application that referes to the mytable node of the following Xml. Now I need to get all children of mytable node from the ns0 namespace(myfield1 and myfield2 in this case) using th...more >>

Export the Data to .txt file using XML in vb.net?
Posted by hari patel via .NET 247 at 5/26/2005 9:32:45 AM
hieee there, I am in big trouble. I want to export data from Dataset or Datagrid to .txt file using XML in VB.NET and I want to do it Manually but I don't have any ideas because I am new To XML. Please help me and Reply me Soon. Thank you in Advance. -------------------------------- From: Har...more >>

how to send an xml dataset to a Stored Procedure in mssql
Posted by a at 5/26/2005 7:30:05 AM
how to send an xml dataset to a Stored Procedure in mssql I have an xml file that I read into a dataset. and I'm trying to use a stored procedure (see SPROC #1 below) that inserts this xml dataset into an sql table via OpenXML. Nothing gets inserted into the sql table except nulls, so I t...more >>



Access to DTD
Posted by Jinsong Liu at 5/26/2005 12:00:00 AM
Hello Group: Sorry for double post. I posted this question on the XML group. Then realized this is the group where the question should be posted, since I am using .NET. I have an object model representing a XML document. At the end of the process, a XML document will be generated based on ...more >>

XPath exclusion expression
Posted by Marc Jennings at 5/26/2005 12:00:00 AM
Hi there, I have an XML document that I am trying to pull some information from. The structure is similar to the following. > <pricelist> > <date>xxxxx</date> > <vendor>bcbcbc</vendor> > <currency>GBP</currency> > <subcategoryLevel1> > <name>Security Products</name> > <...more >>

XML Serialization and CDATA
Posted by John Pouliezos at 5/26/2005 12:00:00 AM
Hi... I am trying to Serialize a class using XmlSerializer. The problem is, I have a property in which I store HTML data, and I want to include id in the XML as a CDATA node. Any suggestions? Thanx in advance...more >>

Make a direct copy of an XMLDocument
Posted by Marc Jennings at 5/26/2005 12:00:00 AM
Hi there. Can anyone tell me an easy way to copy an in-memory XmlDocument into a new XmlDocument to be used for destructive processing without affecting the original, please? Thanks Marc....more >>

dataset to xml
Posted by helpful sql at 5/25/2005 3:18:58 PM
Hi all, I have a DataSet with one table that has more than one row. I need to programmatically generate simple xml file from it. I need to include data from only one row. Example: <datasetname> <tablename> <column1name>value</column1name> <column2name>value</colu...more >>

SelectNodes and Two XMLNS's in XML Root
Posted by Linda Boumarafi at 5/25/2005 12:28:10 PM
Hi, This is a newbie question to XMLNS. I just finished the article on "XML Namespaces and How They Affect XPath and XSLT" by Dare Obasanjo and I'm pretty sure I understand the problem. I just don't know how to achieve the desired XPath result. I'm dealing with an XML document that has two ...more >>

get list of used namespaces
Posted by helpful sql at 5/25/2005 12:12:54 PM
Hi all, I load an xml file into XmlDocument object and would like to get a list of namespaces used in the file. How can I get a list of namespaces used in xml file? Thanks. ...more >>

xs:anyAttribute XmlSerializer Bug
Posted by Jeff T. at 5/25/2005 11:00:35 AM
I am noticing some VERY odd behavior when serializing and deserializing classes that were generate using the XSD.exe utility. Can anyone confirm if this is a bug (or it I am just doing something I shouldn't!) Basically what is happening is that if the schema contains a collection of base types...more >>

generate html from dataset
Posted by helpful sql at 5/25/2005 9:11:47 AM
Hi all, How can I generate HTML from data stored in the dataset usingxml and xslt? Does anyone have any sample or pointers to any articles on this subject? Thanks in advance... ...more >>

Merging XML Documents (with ADO.NET?)
Posted by Patrick at 5/25/2005 6:49:22 AM
I have got 2 XML documents, both of which conform to the same XSD Schema, which define possible optional elements. The 2 XML documents contain 2 disjoint set of XML elements. What is the best, easiest, most efficient way of merging the 2 XML Documents? Can I use DataSet.Merge() facility i...more >>

?Best way to escape for xml?
Posted by beanweed at 5/24/2005 7:43:46 AM
I have an Oracle Procedure that returns xml. There was an exception thrown when I tried to load an XmlDocument (using LoadXml(String)) because the value returned from Oracle had an exclamation mark in a text node. So I wrote an escape method to encode the text coming into the .Net class. But n...more >>

XML object serialization to MemoryStream and then XSD validation
Posted by dickster at 5/24/2005 3:08:33 AM
Ok I have a class called Product ============================================== Code: Product.vb ============================================== Imports System.Xml.Serialization <XmlRootAttribute(ElementName:="product", [Namespace]:="x")> _ Public Class product Public _product_name As Stri...more >>

Rendering questions
Posted by me at 5/23/2005 11:05:11 AM
I have an xml file: <bio> <title>zzzzz</title> <body>blah blah blah</body> <source>Abe Lincoln</source> <site>www.yahoo.com</site> <timedate>1/1/2005</timedate> </bio> I want to add say the last blah would be really <b>blah</b>; how would I render the html tags thru my xslt file so that the...more >>

Reset XmlValidatingReader
Posted by oskar at 5/23/2005 2:12:01 AM
Hello, How do I reset an XmlValidatingReader or move it back to it's starting position? // First time, works fine while( vr.Read() ) { //... }; // Second time, doesn't read anything since it's at the end of the stream while( vr.Read() ) { //... };...more >>

Bug or By Design?
Posted by Pollux at 5/23/2005 12:00:00 AM
Hi, I recently had a problem with one of my XPath expressions which led me to believe there might be a bug in XmlNode, although it could be by design since I didn't find anything in the KB. Consider the the code appended below. The function CleanEmptyElements removes all empty elements f...more >>

xsd challenge?
Posted by Claus Konrad at 5/23/2005 12:00:00 AM
Hi I've got an xml-document (instance document) that contains = configurationsettings for my system. Now - I would like to create an = xsd-schema to validate this document before I use it in my system. The strucure of the xmldoc is this: <?xml version=3D"1.0" encoding=3D"utf-8" ?> <confi...more >>

What is the perfered method in .NET over MSXML using XMLHTTPRequest?
Posted by Michael McCarthy at 5/22/2005 11:19:53 PM
using MSXML.dll, I have the following code: XMLHTTPRequest tempXML = new XMLHTTPRequest(); string strURL = "http://someURIgoeshere.com/"; try { tempXML.open("GET", strURL, false, "", ""); tempXML.send(null); e.Result = tempXML; } ....no problem. Now...more >>

Accessing multiple xml files and transforming them in to a master listing
Posted by me at 5/21/2005 11:57:39 AM
Hello, I have serveral xml files that will have the same formatting, like this: <bio> <title>xxxxx</title> <info>yadayadayada</info> <source>Bill Gates</source> <site>www.msn.com</site> <timedate>5/1/2005</timedate> </bio> I have a master xml file listing the xml files: <...more >>

How to disable automatic dtd validation in XmlDocument?
Posted by Fahad Ashfaque at 5/21/2005 9:13:22 AM
Hello, I am getting an xml response from some server which I need to parse. Problem is the xml data contains DTD declaration and the XmlDocument.LoadXml() tries to find the dtd under C:\WINNT\System32 and throws an error. How could i disable this automatic validation? Thanks, Fahad A...more >>

Creating hyperlinks
Posted by me at 5/20/2005 5:39:16 PM
Hi, I am wondering if you can transform 2 xml nodes that is a web address in to a <a href> tag in a transformed xml/xslt. Using below as the reference: <bios> <bio> <title>zzzzz</title> <info>blah blah blah</info> <source>Abe Lincoln</source> <site>www.yahoo.com</site> <bio> ..... ....more >>

Using XPath with namespaces
Posted by orange at 5/20/2005 11:56:55 AM
Hello, I have been trying to get data from an xml file with a namespace. I have followed the example in the MSDN, but I get no data in t he XPathNodeIterator, but the file has the data I am trying to extract. ... XPathNavigator navigator = xmlDoc.CreateNavigator(); // xpathQuery = "/Produ...more >>

Appending Node to Large XML File
Posted by Jonathan Taylor at 5/20/2005 12:00:00 AM
I have a large XML file, that is too large to read in to XmlDocument. I need to append data to this XML file without creating a new file, since I don't want to have two copies of the large file on the server. I've not seen any example that works so far, even with google. Can anyone help ?...more >>

XML TreeNode.Parent property when using 2.0 TreeView?
Posted by clintonG at 5/19/2005 9:43:36 PM
How do I get a TreeNode.Parent property when using the 2.0 TreeView control? When the data source is an XML file there may be redundant names in the tree. For example, when a child node with the value of 'name' is selected I don't have a clue how to get the name of its parent which may be 'pers...more >>

Problem with .NET Beta2 upgrade, with XSD traversal (LocalElements issue!!) :-(
Posted by Uma Abhyankar at 5/19/2005 6:35:25 PM
Hello, I had a program in .NET Beta1, where in I was programmatically traversing the Xml Schema using the given code snippet. However today with migration to Beta2, I am facing a compilation issue that LocalElements property on XmlSchemaComplexType not found. I now dont know how to trave...more >>

Converting escape characters for xml (C++)
Posted by anat at 5/19/2005 1:52:55 PM
Hi, How do I convert escape characters (">", "&" etc.) in a string that I would like to save in an xml (in C++)? How do I convert the string back, to include the special characters? I prefer using a function that converts all relevant characters rather than replacing specific characters. ...more >>

XML Document
Posted by Jonathan Taylor at 5/19/2005 11:59:09 AM
I have a list of products in an xml file I want to modify the document by adding, removing and editing items. I'm developing on the Compact Framework and as a result memory is an issue. I don't really want to build a DOM of the XML using XML Document, since it is not really needed and it w...more >>

Reading the value of an "xsi:type" attribute [unfortunate, but necessary cross-posting]
Posted by Carl Lindmark at 5/19/2005 11:36:47 AM
*Cross-posting from microsoft.public.dotnet.languages.csharp, since I believe the question is better suited in this XML group* Hello all, I'm having some problems understanding all the ins and outs with datasets and datatables (and navigating through the filled datatable)... Just when I ...more >>

[XmlInclude(typeof(System.Drawing.Font))]
Posted by DapperDanH NO[at]SPAM nospam.nospam at 5/19/2005 11:24:13 AM
Hello, I am learning how to use the XmlSerializer. I have a class that has a member of type System.Drawing.Font such as: [XmlInclude(typeof(System.Drawing.Font))] [XmlRoot("ProModelChartFX")] public class MyClass { Font font; public Font Font { get{return font;} ...more >>

(Beginner) XsdObjectGen and null dates
Posted by SteveC at 5/19/2005 10:07:21 AM
I've used XsdObjectGen (1.36) to create some C# classes, all seemed fine Deserialized some test XML into the class, again seemed to work Ok, but then I noticed that any of the DateTime properties of the class which didn't have a value in the XML were returning a value of "now" I tried the d...more >>

Help with reading from XML file...
Posted by Terry Olsen at 5/18/2005 6:21:32 PM
I'm using the following to pull a string from an XML Log file: Public Sub ReadXMLFile() Dim xmlDoc As New XmlDocument xmlDoc.Load("d:\test.xml") Dim DriveError As String =xmlDoc.SelectSingleNode("/joblog/backup/set/directory/directory/directory/drive_error").InnerText MsgBox...more >>

xsd.exe generated classnames?
Posted by Bill Cohagan at 5/18/2005 5:09:40 PM
Is there a way to control generated classnames when generating classes from an XSD using xsd.exe? When generating typed datasets it's possible to provide some direction via the "codegen" namespace by adding attributes to the XSD itself. These same attributes don't seem to work for class generat...more >>

in .NET, how to manipulate xml like this? thanks!
Posted by davidw at 5/18/2005 2:13:14 PM
<?xml version="1.0"?> <a:multistatus xmlns:b="urn:uuid:c2f4010-65b3-11d1-a29f-00aa00c14882/" xmlns:c="xml:" xmlns:a="DAV:"> <a:response> <a:href>http://????/log.doc</a:href> <a:propstat> ...... they all have prefix, What I had tried is this: xdRequestBody=new XmlDocument(); xdRequestBod...more >>

searching for xml nodes
Posted by helpful sql at 5/18/2005 2:07:57 PM
Hi all, Following is a sample code from my xml file. <w:body> <ns0:Mpi> <ns0:User> <ns0:Address1> </ns0:Address1> </ns0:User> </ns0:Mpi> </w:body> I first need to reference the User node and I am able to achieve it using the following line. When this line executes, I do ...more >>

SQL to well formatted XML file via .NET
Posted by Benjatado at 5/18/2005 10:11:06 AM
I am trying to create several .xml files, mirrored from my SQL database that are shaped according to an XSD schema. However, I have hit a brick wall! Droving through several materials on how to perform this function has resulted in some slightly jarring results! Basically, I would like to cr...more >>

newbie needs help
Posted by Jarod at 5/18/2005 9:49:05 AM
Hey my child elements look like this: <MessageElement> <User value="Tadek" /> <Message value="hello helo" /> </MessageElement><MessageElement> <User value="Tadek" /> <Message value="ryby byby " /> </MessageElement> My problem is I don't know how to write another elements ( nodes ...more >>

XmlSchemaImport, XmlSchema's and derived type
Posted by Rumen Traykov via .NET 247 at 5/18/2005 6:23:10 AM
Have somebody had already the problem of having to write more than one XmlSchema, where some of these schemas have imports to others and respectively derived types? The imports cannot be resolved until I dont save all schemas to disk, but I cannot do this because I get an error for the derived ty...more >>

XML The data at the root level is invalid. Line 1, position 1.
Posted by Korivo at 5/17/2005 12:51:07 PM
Im getting this error while trying to read a xml file that i receive from a POST heres the code: Dim MyXmlReader As XmlTextReader Dim strNodeResult As String Dim NodeType As XmlNodeType Dim objwriter As StreamWriter Try MyXmlReader = New Xm...more >>

Serializing of inherited Classes
Posted by iucon at 5/17/2005 10:18:08 AM
Hello. I'm trying to serialize an inherited Class by a Webservice. Here ist a Code-Snippet of the Classes I try to serialize: // Base-Class public class Test { private string _Argument1; public string Argument1 { get { return _Argument1; } set { _Argument1 = value; } } } ...more >>

XSLT question
Posted by RJN at 5/17/2005 8:02:03 AM
Hi Can XSLT be applied for transforming .txt files or are they applicable only for xml to xml transformation. Currently all the clients send file to a server in one particular format. The format of the file which the server accepts is going to change. So we need to build an intermediate ...more >>

Convert XmlDocument to XpathDocument
Posted by Fahad Ashfaque at 5/17/2005 2:49:30 AM
Hi, I've an object of XmlDocument, I need to pass it to some function which takes XpathDocument object, How could I convert? There is not Conversion Operator overload like that. Your reply might help me a lot. Thanks, Fahad...more >>

Finding out the default namespace of an XML document
Posted by Steve Terepin at 5/17/2005 12:00:00 AM
I'm reading in an XML file with might be in either a 'new' format which defines a default namespace, like this : <rootElement xmlns:some-url> <otherstuff/> </rootElement> .... or might be in an older format without a default namespace : <rootElement> <differentstuff> </rootElement...more >>

Transforming part of the XML
Posted by fix at 5/16/2005 10:44:14 PM
Hi all, I am trying to transform part of the XML in a file using XSLT. I select my node by a XPathNavigator and pass it to an XslTranform to Transform that. But unfortunately it transforms the whole XML document instead of part of it. Is there any way that I can transform only the part sele...more >>


DevelopmentNow Blog