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 > february 2006

Filter by week: 1 2 3 4

Problem with XmlDocument
Posted by NN at 2/28/2006 11:47:24 AM
Before that nothing I want to ask for excuses for my english level. The problem that I have is the following one: I have a file xml with "encoding=3DISO-8859-1" and accents. When in VB.NET, in a Form I write: Dim objxml as new XmlDocument and then when de Forms load: objxml.Load("C...more >>

Using schema
Posted by Mario Vázquez at 2/28/2006 12:00:00 AM
I'm having much trouble in relating a xml file with a shema definition in order to validate the xml document and get advantage of the intellisense features of the .net ide. What steps I have to follow? Thanks ...more >>

Is it possible to define a schema that a xml tag can contains xml or text?
Posted by davidw at 2/27/2006 4:31:35 PM
so xml could look like <field>test</field> or <field><test>this is a test</test></field> thanks! ...more >>

Transform method of XslCompiledTransform hangs
Posted by Steve at 2/27/2006 12:15:52 PM
Using VB.NET 2.0 I have a simple routine that attempts transforms an XmlDocument with an XSLT stylesheet into HTML. Under the old 1.1 framework with XslTransform, everything worked fine. Now using XslCompiledTransform, the Transform method hangs. My code: Function TransformXML(ByRef FacXML ...more >>

Xml space and ms-data interpretation different in VS2005
Posted by adgnews NO[at]SPAM gmail.com at 2/27/2006 5:11:06 AM
I have a problem converting a program from Vb.net VS2003 to VS2005. I process a xml-file with an inline schema. In 2003 no problem. In 2005 I have 2 problems: 1) BIG space="preserve" problem. Suddenly the spaces are a problem during processing (The following text is not allowed in this contex...more >>

.NET 2.0 XML Validation - Exception sets LineNumber=0 and LinePosition=0
Posted by Eric M L at 2/26/2006 7:04:29 PM
I am wondering if I am alone with this problem. Using VS 2005, I must validate an XML file via a Schema and it works well. When I get the schema exception and check the LineNumber and LinePosition properties, they are always set to 0 <=== Here are 2 ways I used to validate the XML always get...more >>

Why does this xpath fail - starting over
Posted by David Thielen at 2/25/2006 3:15:27 PM
Hi; I am sure I am missing something here but I cannot figure it out. Below I have a program and I cannot figure out why the xpath selects that throw an exception fail. From what I know they should work. Also the second nav.OuterXml appears to also be wrong to me. Can someone explain to...more >>

Binary Formatter not suitable accross firewalls
Posted by Sathyaish at 2/24/2006 10:46:09 PM
[QUOTE src="http://www.codeguru.com/Csharp/Csharp/cs_syntax/serialization/article.php/c7201/"] The BinaryFormatter class is generally not appropriate when data is meant to be passed through a firewall. [/QUOTE] Why? ...more >>



XmlTextWriter cannot be serialized because it does not have a default public constructor
Posted by jdhavo NO[at]SPAM yahoo.com at 2/24/2006 6:37:39 AM
Just a quick question. Does this mean that an XmlTextWriter cannot be used in a webservice? Is there some special coding required to use this class? ...more >>

DateTime format from XML in ADO.NET
Posted by Paul Boon at 2/24/2006 2:01:26 AM
Hi Group, I would like to have "dd-MM-yyyy" in my XML datatime fields, but I am getting 2005-02-25T00:00:00. Is there an trick to DataSet.WriteXMl that creates the wanted format? Greetings, Paul...more >>

newbie: How to use WriteXmlSchema?
Posted by deko at 2/23/2006 5:32:23 PM
I must be missing something simple. I want to serialize a DataSet to local disk when my .NET 2.0 WinForms app closes, and deserialize the DataSet when the app reopens. I use this code to serialize my DataSet: XmlSerializer ser = new XmlSerializer(typeof(DataSet)); TextWriter writer = new...more >>

XML formatting to HTML...beginner question
Posted by acs974 NO[at]SPAM hotmail.com at 2/23/2006 10:12:09 AM
Hi, I apologize if I am posting this in the wrong forum. I am creating a .net 2.0 website using vb.net. I have an XML file with the following general format: <LearningObjectives> <lo number = '1'> <Title>First Learning Objective. Click for more details</Title> <details>These are the details ...more >>

Parsing XHTML
Posted by gizap NO[at]SPAM poczta.onet.pl at 2/23/2006 3:45:21 AM
I'm trying to parse an XHTML document like this: file.html: <?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Some title</title> </...more >>

How to do a distinct in XSLT as you loop through Nodes
Posted by Patrick.O.Ige at 2/23/2006 12:00:00 AM
I have a xml file and i want to format it using XSL My XSL file and XML below I needed to do a distinct which is ok on the first node "Code" For the "programDescription" i did below which gets the Count of the nodes and i get the programDescription node but it duplicates for the selected "Code...more >>

how to parse xsl:output ... with xpath? "./xsl:output" does not work. is there other notation for this?
Posted by Daniel at 2/22/2006 9:10:03 PM
how to parse xsl:output ... with xpath? "./xsl:output" does not work. is there other notation for this? ...more >>

how to parse <?xml version="1.0" encoding="UTF-8"?> with xpath? is it possible?
Posted by Daniel at 2/22/2006 9:08:18 PM
how to parse <?xml version="1.0" encoding="UTF-8"?> with xpath? is it possible? ...more >>

XmlTextReader and NetworkStream blocking
Posted by g66g08d14 NO[at]SPAM hotmail.com at 2/22/2006 2:06:17 PM
Hi. We have a Jabber-esque client server package that uses XMPP for communication over network sockets. Using .NET 2.0, I need to read a full stanza (i.e. balanced xml) as soon as available and return it as a string. So, I've taken my NetworkStream and wrapped an XmlTextReader around it. ...more >>

Error: The specified module could not be found
Posted by jimmyfishbean NO[at]SPAM yahoo.co.uk at 2/22/2006 7:12:36 AM
Hi, I have created a VB.Net windows service. Everything was working fine until I attempted to add a setup project. Now, for some strange, when I try and run the application (using INSTALLUTIL to install/uninstall it) I get the error: (53) The specified module could not be found When I ...more >>

Returning only X number of items...
Posted by blackstaronline.net at 2/21/2006 4:24:06 PM
Here is my working code to pull Yahoo business news RSS feed. Can anyone show me how to only return the top 3 or 4 news articles? <%@ Import Namespace="System.Xml" %> <script language="VB" runat="server"> Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) If...more >>

XML -> PDF
Posted by Zika Mustikla at 2/21/2006 2:16:07 PM
Which is the easiest way to transform XML into PDF? Which tool/.Net library I should use? ...more >>

VB.Net: how to carry SessionID(its value ) from 1 function to othe
Posted by XML newbie: Urgent pls help! at 2/21/2006 7:19:27 AM
If I get SessionID in 1 function how do I carry that SessionID(value of this SessionID) to another function or another form within the same project...more >>

Error:Value of type 'String' cant be converted to 1-dim array of L
Posted by XML newbie: Urgent pls help! at 2/21/2006 6:51:27 AM
Hi, I am getting the error: Value of type 'String' cannot be converted to '1-dimensional array of Long'. in the following line for TextBox2.Text field : doc.LoadXml(EDP.ExportPositions(TextBox1.Text, cmbStartDateandTime.SelectedText, cmbEndDateandTime.SelectedText, TextBox2.Text))) ...more >>

ignoring tags in xml, using just the text
Posted by MR at 2/20/2006 10:28:15 PM
I would like to create an htm file (using Word) that will have some free form text. However, in the free form text I would like to be able to embed some fields like Name, Address, etc. I have tried to embed the fields surrounded by different characters such as __Name__, @@Name@@, $$Name$$. the...more >>

Xpath question
Posted by Aaron at 2/20/2006 10:04:09 PM
Hello, I am using Xpath to group 20 <name> tags together, how would I do that? Donors/Name??? <Donors> <Name > Abigail Sears </Name> <Name > Alicia &amp; Joe Swindel </Name> <Name > Alissa &amp; Neal Keny-Guyer </Name> <Name > Ann Bremer &amp; Earl Molander ...more >>

How can I parse this XML file,
Posted by Sam at 2/20/2006 7:34:27 PM
Hi Everybody, I'm using C# and System.XML and can parse XML files like this: <LogIn>Yes</LogIn> <Name>DB_MAGUser</Name> but I've been asked to parse and work with a XML file that looks like this: <entry Active="NO"/> <entry LogIn="Yes"/> and I can not parse this one, First of ...more >>

"In Use" exception on XMLDocument.Save
Posted by Terry at 2/20/2006 1:24:27 PM
When using XMLDocument.Save(strFileName) in .NET 2005, is there a way to check (or trap) and see if the file is in use by another. I am using VB.NET. Currently it just bombs and says the filename is in use by another. I want to check or trap for this rather than blow-up. I tried using a Tr...more >>

Interview Questions Feb 20, 2006
Posted by Jobs at 2/20/2006 10:04:34 AM
How to prevent my .NET DLL to be decompiled? By design .NET embeds rich Meta data inside the executable code using MSIL.Any one can easily decompile your DLL back using tools like ILDASM ( owned by Microsoft) or Reflector for .NET which is a third party. Secondly there are many third party...more >>

Datalist with an xml file
Posted by Aaron at 2/19/2006 9:55:13 PM
How do I get all the name(s) listed in the datalist? <asp:DataList ID=3D"DataList1" runat=3D"server" = DataSourceID=3D"XmlDataSource1"> <ItemTemplate> <table> <tr> <td><%# XPath("Name")%></td> </tr> </table> </ItemTemplate> </asp:DataList> <asp:XmlDataSource ID=3D"XmlD...more >>

How to select a boolean from a XpathNavigator
Posted by Steve at 2/18/2006 9:03:26 PM
Hi. I have ax xpath expression which returns a true or false. I don't know which method to use from the XPathNavigator object to get the result. There's not a ".SelectValue("xpath expression") method. Typically, I may use ..Select or .SelectSingleNode but I'm not returning a node or set of ...more >>

xpath expression to find which element
Posted by Steve at 2/18/2006 12:10:27 PM
Hello.. I have been trying to figure this out for the last hour, but I am baffled... I'm hoping someone can help! I'm trying to write an xpath expression to find the position of the node with value "c" in the following xml. The result I'm looking for in this case should be 3. Does anyone ha...more >>

How to connect to remote server and access the tables
Posted by XML newbie: Urgent pls help! at 2/17/2006 2:43:19 PM
I am working on Vb.Net application. I have to connect to remote server(it's IP address)(this server is not on my network). This company has provide me username, companyname and password. Once, I get connected, I get the SessionID. Now, I need to download some of the tables from here. How do I ...more >>

Problems with XmlSerializer and namespaces
Posted by Keith Patrick at 2/17/2006 1:03:09 PM
I have an object, Teacher, that has a namespace. Let's call it http://foo. Teacher has a child object called Name, composed of String first, middle, last, etc. Problem I have is when I try to deserialize it. When I deserialize a single Teacher, it works when I put the namespace on the Tea...more >>

[Help] XPath Navigator And Select Method
Posted by Zip at 2/17/2006 3:30:09 AM
Hi, if my XML document has a root node <envelope> when i rune the following code i always get Found XPathNodeIterator it = nav.Select("envelope"); if(it.MoveNext()){ Console.WriteLine "Found"; } else { Console.WriteLine "Not Found"; } If, however the root node is <envelope x...more >>

How to populate a dataset from an XML formated String
Posted by paumierj NO[at]SPAM hotmail.com at 2/17/2006 1:56:56 AM
Hi there Here's my question : I'd like to populate a dataset from an XML string, ie: Dim sXmlString As String sXmlString = "<root type='E-Form'><question label='This is my first question'></question><question label='This is my second question'></question></root> Any idea to achieve this...more >>

Off topic: VB6 question - adding nodes to msxml
Posted by bg at 2/17/2006 12:00:00 AM
sorry this is way off topic. using _vb6_: i'm trying to add/replace nodes to an xml document via CreateTextNode: xml = "<item>floogle</item>" set newNode = oDom.createTextNode(xml) call dDom.replaceChild( newNode, bloogleNode) It works ok. But I can no longer find the new node in the do...more >>

.Net statement efficiency
Posted by cd~ at 2/16/2006 1:51:20 PM
How is the efficiency of this statement compared to the efficiency of writing this out in long form? (xml = new XmlDocument()).LoadXml("<dom />") Is there a perfomance gain to single line statements like this? ...more >>

Why does this xpath fail?
Posted by David Thielen at 2/16/2006 10:47:29 AM
XPathNavigator nav = MyCreateNav(); // InnerXml == "software" nav.SelectSingleNode".[.='software']"); The select returns an exception: + $exception {"'.[.='software']' has an invalid token."} System.Exception {System.Xml.XPath.XPathException} Any idea why? -- thanks - dave david_at_...more >>

Newbie Question
Posted by Ben Kim at 2/16/2006 10:14:24 AM
Hello all, I have used XML documents in the past without schemas or validation. Now I am venturing into the realm of validating, transforming, etc. Can anyone point me to a good book or informative website (not w3.com) that will help me along? For example some questions have come up wh...more >>

Xml error: Namespace Manager or Xslt context needed
Posted by XML newbie: Urgent pls help! at 2/16/2006 7:43:30 AM
I am using VB.Net. My program is to connect to a remote IPAddress. Once, it verifies the login information it should display the SessionID and enable some button . I appreciate your help and thanku in advance When I run the pgm , I get the error: Can't parse login information. Namespace Man...more >>

Embedded CSS in XML
Posted by Mario Vázquez at 2/16/2006 12:00:00 AM
Hi everybody, I've just learned how to attach a CSS file to a simple XML document with: <?xml-stylesheet href="css_file.css" type="text/css" ?> It is possible to incrust the CSS definitions in the same XML? Regards, MVR ...more >>

ADO.NET Failed to load msxmlsql.dll
Posted by Daniel at 2/15/2006 6:02:53 PM
ADO.NET Failed to load msxmlsql.dll How to fix this error? System.Data.SqlClient.SqlException: Failed to load msxmlsql.dll. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlComm...more >>

User-defined attributes in XMLSchema
Posted by Geir Aamodt at 2/15/2006 12:59:58 AM
I have an xml schema and an xml file. When parsing the xml file I would like to perform operations on elements marked in the schema with the "search:able" attribute. See sample files below. Any tips/tricks on how to achieve this? ----------------------XML Schema sample--------------------...more >>

removing a container in XML serialization
Posted by Iain at 2/14/2006 3:18:20 PM
What I want is to take a class like public class Fred { [XmlaAttributeAttribute]; public string Name; [SomeAttributeHere] public string[] Items; } and have it sereialize like <Fred Name="MyName"> <Item>Item1</Item> <Item>Item2</Item> </Fred> But I cannot see how to avoid i...more >>

XmlResourceResolver
Posted by Peter Morris [Droopy eyes software] at 2/13/2006 1:36:15 PM
Hi all I am using XmlValidatingReader to read XML one line at a time and also validate it as I go along. I cannot rely on the XML to have the required xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="DataImport.xsd" attributes in the root node, and...more >>

Can't understand schema validation error
Posted by Brad Wood
I'm using a 2.0 XmlReaderSettings object with setting.ValidationType set to ValdationType.Schema to validate a document against a schema. Following is a schema fragment (names altered): <xsd:element name="Stuff"> <xsd:complexType> <xsd:sequence> <xsd:element ref="RequiredSimp...more >>

validating XML with XmlValidatingReader
Posted by prefersgolfing at 2/12/2006 8:01:38 PM
I have a doc that that I am entering an incorrect value in a node that expects an restricted enumeration yet I can't get the ValidationEventHandler to fire. Shouldn't it fire if it finds an enumeration that's not listed in the schema? I've also misspelled node tags and it still won't fire. Am ...more >>

reading only the first 30 bytes of an HTML file with xml object
Posted by ergun at 2/12/2006 10:45:10 AM
Hi, I wonder if there is a way to read only the first x bytes of a xml responsetext. In my project I need only first 20-30 bytes of very large HTML files and i don't want to wait for the rest to be read. Here is a piece of code i use ; Dim xml As New MSXML2.XMLHTTP xml.Open...more >>

XSD help please
Posted by Peter Morris [Droopy eyes software] at 2/11/2006 1:33:03 PM
Hi all I need a little help with XSD, here is my XML <data> <brandData> <brandGroups> <brandGroup> <name>Group1</name> </brandGroup> <brandGroup> <name>Group2</name> </brandGroup> <...more >>

Issues Serializing A Derived Class and its Base using IXmlSerializable, Can't See Base
Posted by Peter Nofelt at 2/10/2006 1:19:47 PM
Hey All, I am having issue with serializing a class and its base class using ..net 2.0. I am using IXmlSerializable I've provided code displaying my at the bottom of this post. Thanks ahead of time for any help or feedback. Cheers, Peter www.nofelt.com Situation =========== I am us...more >>

Searching through DB Table containing Records in XML format
Posted by ANDY AIYER at 2/10/2006 12:31:11 PM
Guru's! Your time and guidance is much appreciated in this task that i am trying to get done. Background I have a SQL Server 2000 database table which contains 2 Fields (RecordID, XMLData (datatype=TEXT). There are about 10,000 records in this table. The Data in the field (XMLData) is a ...more >>


DevelopmentNow Blog