Groups | Blog | Home


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 > threads for november 8 - 14, 2006

Filter by week: 1 2 3 4 5

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

XML Schemas (SOM) - Finding order of elements
Posted by Bardo at 11/9/2006 12:00:00 AM
Hi all, I am a newbie to using the XML Schema Object Model (SOM) and would like a few pointers on how to perform a particular task. I am essentially trying to search for elements/attributes via the SOM as they appear in a visual XML editor (as in the tree view). I need to be able to: 1. St...more >>

How to create this with XmlTextWriter
Posted by Terry Olsen at 11/8/2006 7:49:05 PM
Is this even possible using XmlTextWriter? Or would I need to use an XmlDocument? I need to create the following XML: <?xml version="1.0"?> <AccessRequest xml:lang="en-US"> <AccessLicenseNumber>YOURACCESSLICENSENUMBER</AccessLicenseNumber> <UserId>YOURUSERID</UserId> <Password>YOUR...more >>

xml question
Posted by Paul at 11/8/2006 9:06:02 AM
Hi I am trying to create the following line in an xml fileusing the xml writer, <Style ss:ID="Default" ss:Name="Normal"> I have ss set up as a namespace I think, see below. Dim spreadsheetNamespace As String = "urn:schemas-microsoft-com:office:spreadsheet" writer1.WriteAttributeString("xmln...more >>

Want to replace obsolete methods
Posted by Craig HB at 11/8/2006 5:21:02 AM
I have been using the code below to validate an XML document with an XML schema. If the XML is not valid, then the procedure throws an exception. I have upgraded the application using this proc to DotNet 2 and Visual Studio says that I'm using obsolete methods: XmlValidatingReader : shoul...more >>


DevelopmentNow Blog