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

Filter by week: 1 2 3 4 5

Confused with XSLT
Posted by David at 11/30/2006 4:32:22 PM
I am new to XSLT and am confused by this example. If the {href} is part of the img tag, then the value will appear, however, when I specify "<span>{href}</span>", then the value of <href> will not appear. Is there a reason that one way works and the other does not? Or do I need to use some ...more >>

Advise, Guidance and Pointers with XML
Posted by Caspian at 11/30/2006 9:47:39 AM
Dear Ethernet of Unquestionable Knowledge, Re: Advise, Guidance and Pointers with XML Oh omnipotent one(s) please help me ... I'm reasonably new to all the XML stuff and although clear on the basic concepts of XML, however I'm experiencing some difficulties in understanding how to im...more >>

Indenting XML in a string
Posted by akashkurdekar NO[at]SPAM gmail.com at 11/30/2006 9:16:01 AM
Sorry if this seems like a newbie question, because I *am* rather new to XML I have a string with XML content string s = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><Service xmlns=\"uri://sumthing\">.........</Service>"; where '.....' is some more xml content When printing this str...more >>

Very strange error: CLR has been unable to transition from COM context
Posted by Don Rixtown at 11/29/2006 11:06:11 PM
I ran into a very strange error tonight. I was working with web services and typed datasets. The web server I was using happens to be on the other end of a virtual network (Hamachi). Everything was working fine. I added one more row of data to the table and all of a sudden one web method st...more >>

XPath, sum and number conversion
Posted by PAF at 11/29/2006 12:04:02 AM
Hi, I'm trying to evaluate a sum expression trougth .NET 2 System.Xml.XPath.XPathNavigator object. My code is : Dim document As New System.Xml.XmlDocument() document.LoadXml("<?xml version=""1.0""?><root><a>28.7</a><a>9.18</a><a>4.32</a></root>") Dim navigator As System.Xml.XPath.XPathN...more >>

XML validation of single value without entire XML document
Posted by Bardo at 11/29/2006 12:00:00 AM
Hi all, Does anyone know if it is possible, and if so how, to perform validation of a simple non XML string against certain XSD restrictions, without having the entire XML document to validate against the schema. To elaborate - - Within XSD certain restrictions are defined for a particular e...more >>

XPath 2.0
Posted by Derek Hart at 11/28/2006 5:27:56 PM
Is xpath 2.0 in Visual Studio.Net 2005? If not, how would I integrate it into an application? Is there a COM component or dotnet component available to do this? Derek ...more >>

MI5 Persecution: harassment at work
Posted by MI5-Victim NO[at]SPAM mi5.gov.uk at 11/28/2006 4:10:10 PM
-=-=-=-=-=-=-=-=-=-=-=-= -= harassment at work -= -=-=-=-=-=-=-=-=-=-=-=-= Once I stopped watching television and listening to the radio at the end of 1990, "they" had to find other ways of committing abuses. So they took what must be for them a tried and tested route; they get at you by subv...more >>



macro embedded in an xml file
Posted by Paul at 11/28/2006 10:54:18 AM
Hi, just wondering if anyone knows if you can embedd a macro in an xml file? I have an xml file that I create with a .net web application and it opens with Excel, but would be nice to attatch a macro to it as well. Thanks. -- Paul G Software engineer....more >>

Does xsd.exe support spaces in file paths?
Posted by Ken Brubaker at 11/28/2006 9:22:02 AM
Does the xsd.exe command line support paths with spaces? For example the xsd.exe /o: option specifies the output file name. How can I specify an output file path that has a space? I'v tried googling up and down and cannot find an answer. ...more >>

How to access the total number of child nodes from a parent node
Posted by MA at 11/27/2006 9:21:51 PM
Hi, How to access the total number of child nodes from a parent node. For example, I would like to get the total number of child nodes from <parent1> and <parent2> node. The SelectNodes method return the total number of <folder> nodes (9) regardless of calling from the <parent1> and <parent2>...more >>

Converting mysql query result to xml
Posted by carlo.gherarducci NO[at]SPAM gmail.com at 11/27/2006 8:09:35 AM
Hi all, I'm a newbie in .net xml programming, so please be patient. And sorry for my uncorrect english, too. I'm going to explain my problem: I've built a web service which responds to ferries timetable requests. It receives an xml document with this format: <TimeTableRequest> <Routes> ...more >>

saving XML file usinf XMLDoc
Posted by Patrick.O.Ige at 11/27/2006 12:00:00 AM
I have this small snippet below and i want to save some data back to the xml file. So i looked for a node and checked if the node value is the same as a textbox value and if yes i pass in the new value entered from a textbox back t the xml datasource. I'm populating values of the textboxes fr...more >>

Xml and unicode values with &#x...
Posted by Tom Fields at 11/25/2006 1:07:04 PM
Hello! I like to use the XmlTextWriter to write some SVG files. But in some cases, I need the '&' as '&' and not as &amp;. Example: <glyph unicode=3D"&#x4c;"/> Some code-snippet: XmlDocument ^ doc =3D gcnew XmlDocument(); .... XmlAttribute ^ a =3D doc->CreateAttribute("u...more >>

XML Nodes conversion to Hashtable
Posted by Manish at 11/25/2006 4:59:01 AM
Hi m not able to convert the node values of a XML file to Hashtable Actaully i need to traverse the XML Nodes again and again and want to pick values on filters what i want is to stroe the XML values in the Hashtable and return then from Hashtable (the hashtable will be filled only onc...more >>

Serialization of jagged Arrays Issue
Posted by Sahar at 11/23/2006 10:57:09 PM
Hi there, I m trying to return an object (of my own written class) from a web service that contains jagged Arrays as public variables. Asp.Net is showing me the its serialized version on the browser when i invoke the service during test. Code: public class returnType { [System.Xm...more >>

XPath selecting on subnodes
Posted by Hapsdog at 11/23/2006 7:55:23 AM
Hi, I have the following XML: <a> <b> <c name="bob"/> <c name="billy"/> </b> <b> <c name="george"/> <c name="nick"/> </b> </a> I'm trying to write an XPath-expression to get this XML: <b> <c name="billy"/> </b> <b> <c name="george"/> ...more >>

Most efficient to Break this up
Posted by cwertman NO[at]SPAM gmail.com at 11/22/2006 11:43:40 AM
I have a document like so (Its actually a serilization of an Object) <Person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <BirthDate>8/31/1971</BirthDate> <CurrentEmployer>NSA</CurrentEmployer> <Kids> <Person> <BirthDate>8/31/19...more >>

Writing XPath Help
Posted by Candle at 11/22/2006 9:00:38 AM
I am an XPath newbie and I trying to query. I have the below xml <P C="24709" O="2019307"> <E C="1" O="1" W="True"> <A C="11" V="11" /> <A C="12" V="12" /> <A C="13" V="13" /> </E> <E C="1" O="2" W="True"> <A C="11" V="21" /> <A C="12" V="22" /> <A C="13" V="23" /> </...more >>

Cannot read the XML file if there is schema
Posted by LWU at 11/22/2006 6:22:51 AM
Here is the XML file: <?xml version="1.0" encoding="UTF-8" ?> - <CTMS xmlns="ctms-20.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ctms-20.xsd http://www.clinphone.com/schema/CTMS-20.xsd" transferType="Incremental" transferId="-1" previousTransferId="-1" cre...more >>

high-performance alternative to xsl:number
Posted by ajfish NO[at]SPAM blueyonder.co.uk at 11/22/2006 4:42:13 AM
Hi, I am trying to allocate a unique ID to every instance of tag 'foo' in a large XML document. currently I'm doing this: <xsl:variable name="UniqueId"> <xsl:number count="foo" level="any"/> </xsl:variable> but with .Net framework 1.1 (using XPathDocument) it is very slow for large docu...more >>

How do I ignore DTD validation in .net 1.1
Posted by Martin at 11/21/2006 9:28:41 AM
Hi our server does not have access to the internet, and is failing to load cXml documents posted to it due to trying to validate the DTD. I found an example for .net 2.0 using XmlReaderSettings to turn off the validation, but I'm using .net 1.1. Here's the current code: Stream xmlInString...more >>

XSD validation gives closed stream.
Posted by sham at 11/21/2006 12:00:00 AM
Hi to all, I have a memory Stream that is validated using the XmlValidatingReader object. My stream is passed to the XmlValidatingReader object together with the xsd file. This works fine. Once validated (and there are no errors), I want to use the same stream in other piece of functiona...more >>

Updating an existing dataset using a diffgram
Posted by GoogleGroups NO[at]SPAM Peth.us at 11/20/2006 3:01:11 PM
It seems like this should be easy, but it has proven to be quite painful. I have an existing dataset, which I used the GetChanges and WriteXML functions upon to write out a DiffGram to a local XML file. I want to use this same dataset (in another instance of the application) and the DiffGram...more >>

XMLDocument - Appending Attributes to Various Element Tags
Posted by Phil Galey at 11/20/2006 2:50:53 PM
I'm using the followg code to add the attribute overwrite=3D'true" to a = select list of XML tags in an XML document. The document is loaded from = a file and just the tags with names matching what's in the ArrayList are = updated to contain the new attribute. However, after it saves back to = ...more >>

How to get the XML path of an XmlNode?
Posted by Sharon at 11/20/2006 1:03:01 AM
How can I get the full XML path (as string) of a specific XmlNode ? -- Thanks Sharon...more >>

XmlException "Root element is missing" on XslCompiledTransform.Load method
Posted by Tomas at 11/20/2006 12:00:00 AM
When I try to load my xslt i get an xml exception with the message "Root element is missing". The stylesheet works when I preview it in stylus studio, but apparently not in my application. Any ideas what may be wrong? The stylesheet: <?xml version="1.0" encoding="utf-8"?> <xsl:transform v...more >>

what can i do if i want to include "<" or ">" in xml document.
Posted by Steven.Xu at 11/18/2006 2:20:01 PM
hi everybody, i am useing some classes which in System.Xml to deal with xml document. what can i do if the document include "<" or ">"? Thanks....more >>

Using XSL in VB.net
Posted by Rob at 11/18/2006 8:17:56 AM
All I want to do is execute a simple transformation in VB.net.... I know this has to be simple. I tried the following as suggested by a web page I found.... Dim xslt as New XslTransform() xslt.Load("Filename") xslt.Transform("InFile", "ResultFile") This appears to be very straightforw...more >>

Writing SchemaLocation with XmlSerializer
Posted by Marvin Massih at 11/18/2006 12:00:00 AM
I've searched the entire MSDN documentation and Google, but I just don't find a solution: I have an .xsd file from which I had xsd.exe create classes. How can I make the XmlSerializer write the SchemaLocation when it serializes my XML classes? Maybe by using an XmlWriter? -Marvin...more >>

XMLSerializer - Using CollectionBase
Posted by Phil Galey at 11/17/2006 3:02:47 PM
I'm using XMLSerializer to serialize a hierarchy of class-based objects to XML. So far, this is working successfully by employing arrays to handle the multiplicity of child objects. However, I'm trying to employ the use of collection classes instead because there are methods I need to implement...more >>

XMLSerializer - Controlling the Order of Fields Serialized
Posted by Phil Galey at 11/17/2006 12:43:22 PM
I'm using XMLSerializer in VB.NET to serialize class-based objects to XML. It's serializing fine, except that I don't seem to have control over the order in which the various fields (properties) of an object are serialized. If I change the order in which properties are defined in the object, it h...more >>

TreeView Problem
Posted by Amigo at 11/17/2006 12:17:43 PM
Hi, I hope everyone is doing great programming. I am a new to this group, and i am facing problem with loading treeview from XML file, using C++.NET. Please if some one could help me in this, by sending code snippet or whatever. I would be highly obliged, because i have to submit this progr...more >>

Getting HTML back out of XML
Posted by darrel at 11/16/2006 10:16:11 AM
I'm having a hell of a time figuring this out. ;o) OK, thanks to Oleg, I finally figured out how to get XHTML in my XML by using writeRaw to get it to not encode the XHTML going in. However, I can't get it back out. I'm transforming my XML using XSLT: Dim trasformedXML As New System.IO.St...more >>

XMLSerializer
Posted by Phil Galey at 11/16/2006 8:33:03 AM
I'm using XMLSerializer to serialize hierarchical Class-based objects and their content to XML. There are a number of fields (i.e. properties) that are optional, meaning that if no data id written to that property of the object, then no entry is to appear in the XML, as the destination system a...more >>

bug in msxml? confirmation requested.
Posted by Matthias Truxa at 11/16/2006 2:36:38 AM
Hello, can anyone confirm the existence of the following effects which I'd consider being a critical bug in msxml according to w3c's xpath specs? The Spec says: "The parent, ancestor, ancestor-or-self, preceding, and preceding-sibling axes are reverse axes" http://www.w3.org/TR/2005/CR-x...more >>

how to deserialize variable element/node
Posted by wpmccormick NO[at]SPAM gmail.com at 11/15/2006 7:28:42 PM
I've a complex problem: I'm deserializing a very long string of XML into a very large object foo: <foo> ....... <bar>sometimes a simple string is here</bar> ....... </foo> or sometimes it's <foo> ....... <bar> <zip>sometimes</zip> <zap>more structure</...more >>

Serializing object to XmlDocument (or string)
Posted by Tom at 11/15/2006 1:59:18 PM
I am on .NET 2.0 and am trying to serialize an object to an XmlDocument (or a string which I can then create an XmlDocument from). What I have so far is (User is my class); XmlSerializer x = new XmlSerializer(typeof(User)); MemoryStream memStream = new MemoryStream(); How can I get this t...more >>

XML-like document, want to get attribute names
Posted by ThunderMusic at 11/15/2006 1:11:26 PM
Hi, I have an XML like document I want to parse... The document looks like this : <Form id="frmMain" width="345" height="75" HeaderHeight="9" image="frmMain.jpg" ColorKey="000000"> <Control id="btnTest1" image="btnTest1.jpg" ColorKey="000000" left="10" top="10" Width="10" Height="10"...more >>

Grabbing the 'node depth' when importing XML as a dataset?
Posted by darrel at 11/15/2006 7:43:22 AM
I've decided that instead of doing an XSLT transformation on a file, I might be better off bringing it in as a dataset and having a bit more direct control over it at that point. The question I have is if one can determine the node depth as they import the XML. I could, obviously, just put...more >>

Does XmlTextWriter encode HTML?
Posted by darrel at 11/14/2006 4:42:33 PM
I'm trying to get ASP.net to write out some XML including HTML from a DB: The HTML is stored in the DB as encoded HTML. I'm trying to decode it and write it to an XML node (The HTML is valid XML). I have this: objXMLWriter.WriteElementString("text", Trim(System.Web.HttpContext.Current.Serv...more >>

Extra Backslash After LoadXML
Posted by binder at 11/14/2006 8:10:25 AM
How do I eliminate an extra backslash that is appearing after LoadXML call? This issue is causing an error with Process.Start. I have a string stored in sql: c:\program files\internet explorer\iexplore.exe If I look at this data when I write the dataset to an XML file, the data is correct....more >>

Question regarding WriteElementString
Posted by janus1114 at 11/14/2006 4:31:02 AM
Hello, I'm using XMLTextWriter to create a XML file from a database table. I use WriteElementString to create elements. I'm having two issues: 1. When a data field is null, I get an error. XMLTextWriter.WriteElementString("Name", dr("Name")) 2. When a data field is a date/timestamp ...more >>

XMLHTTP and SOAP Exception
Posted by Andrea Cogliati at 11/14/2006 2:29:02 AM
I'm accessing a Web Service through XMLHttp object from a JavaScript client code. I don't understand how to appropriately handle exceptions from the Web Service. Does anyone have a piece of code of a Web Service throwing an exception and a client code catching it? TIA, Andrea...more >>

How to serialize a string as a CDATA attribute ?
Posted by James Smith at 11/13/2006 8:00:50 PM
Hi, the below string will have often char like < & etc. so I need to serialize it as CDATA. Unfortuntalety there is no CDATA type for the XmlAttribute(Type=... How can I get this serialized to a CDATA string ? /// <remarks/> [System.Xml.Serialization.XmlAttributeAttribute()] ...more >>

How to escape single quotes
Posted by Marina Levit [MVP] at 11/13/2006 2:19:03 PM
I've scoured google, but apparently none of the suggestions actually work. I have the following. type of XPATH query "SomeNode[SomeAttribute = 'abc's search'" Now, I've tried doing this: "SomeNode[SomeAttribute = 'abc@apos;s search'" and I've tried "SomeNode[SomeAttribute = 'abc@qu...more >>

/r/n (13-10) (carriage return - line feed) in web services
Posted by Enrico Sabbadin at 11/13/2006 12:00:00 AM
Hi, A few days go I fiund iut that the xmlserializer strips away /r/n out during deserialization (and just leave /n) ... I found out that you can resolve this problem using the deserialize overlaod that takes an xmltextreader instead of a stream .. However when it's time to Web Services you...more >>

Characters /r/n%20%20 in blank tags?
Posted by Harry Whitehouse at 11/11/2006 1:18:33 PM
Hi! I have a Webservice which returns an XMLDocument type. In viewing the raw output steam, I noticed that if a tag value is blank, the data stream actually looks like this: <MyTag>\r\n </MyTag>. A CR/LF followed by two spaces. I have a special client to recieve this stream genera...more >>

Geting Element value using MSXML 2
Posted by ArunArangil at 11/10/2006 9:45:02 AM
I need to find the value of a single element from an xml. When i write the code below it returns me the entire text withing the node as NetworkD11233456. Instead how can i get just D11233456 within the if(nodeDevice == 'Device 1') condition. var txt="<?xml version='1.0'?><Devices>" txt=tx...more >>

XmlNamespaceManager problem with Office OpenXML format
Posted by peterloh NO[at]SPAM gmail.com at 11/9/2006 10:13:35 PM
Hi, I'm trying to read a simple Word 2007 document with the contents of "This is a test." Could someone please enlighten me about why the following code doesn't work... Dim strXMLDocument As String = "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?><w:document xmlns:ve=""ht...more >>


DevelopmentNow Blog