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 > august 2004 > threads for august 15 - 21, 2004

Filter by week: 1 2 3 4 5

Choice, Group, Complex, Arghghgh!
Posted by Michael J. Conroy at 8/20/2004 6:12:06 PM
Hi all - XML 1 Me 0.... I have a parameter that could be one of two fixed values (enumeration), but if the second option is selected, there are two other enumerations that must be defined. Example: TYPE A | B where A and B are fixed string selections If A, the document stands ...more >>


XmlElement SetAttribute problem
Posted by nibble at 8/20/2004 3:49:02 PM
I'm doign the following: XmlElement myElem....; string name = "xmlns:"+"abc"; string value = "http://www.abc.com"; myElem.SetAttribute(name, value); I get an exception saying that name cannot have ':' in it. However, MSDN usage doc for this method explicitly says that ':' will be parsed a...more >>

XML Header
Posted by vb6dev2003 at 8/20/2004 2:42:33 PM
Hi, I have some XML doc loaded in a C# Web Service. XmlDocument doc = new XmlDocument(); doc.LoadXml(myDoc); Code Missing to manipulate header (I would like to replace or manupulate all these XXXXX): <mso-XXXXXX productversion="XXXXXX"> <mso-application progid="XXXXX"?> doc.Save(myNewD...more >>

Showing raw xml from memory in an asp.net page
Posted by Jesse Liberty at 8/20/2004 2:20:49 PM
Hi. I'd like to create an xml document on the fly and then display it in an asp.net page. I can use an iframe and point to a URL (which displays perfectly), but I'd not like to save the xml to a file (it will be built as I go along). I can use the <asp:xml> control, but I don't want to have...more >>

Is there a simlpe SOAP -> method call example that doesn't use any transports, etc.?
Posted by nimai_malle NO[at]SPAM yahoo.com at 8/20/2004 8:29:50 AM
I have not had any luck searching for a simple, simple example that calls a method on an object given a SOAP string. Here's what I'm looking for (in pseudocode): string SOAPCall = "bla bla bla"; // SOAP method invocation XML string SOAPResponse; MyObject x = new MyObject(); // and here's wh...more >>

Passing binary via SOAP
Posted by SQLScott at 8/20/2004 8:07:02 AM
Is it possible to pass a byte array via SOAP? I am getting conflicting opinions. -- Thanks, Scott...more >>

loading XML into a dataset
Posted by Mike P at 8/20/2004 1:25:36 AM
I'm currently reading data from an XML file using XPathNavigator and XPathNodeIterator to select the subset of data that I want. I've never using the XPath objects before so I'm not sure how to get this data into a dataset. XPathDocument doc = new XPathDocument(@"C:\inetpub\wwwroot\test\test...more >>

incorrect encoding after serialisation to XML
Posted by Stephen at 8/20/2004 12:29:02 AM
Using the code below I am trying, in VB .Net 2003, to serialise classes defined in a couple of XSD documents. The encoding for both is Unicode(UTF-8). However the resulting XML is encoded as UTF-16. This is causing me problems when I try to load it into an XPath document. I would imagine ...more >>



HELP! Using XMLTextWriter to write to a MemoryStream
Posted by SQLScott at 8/19/2004 10:23:02 AM
I have the following code that is supposed to use the XMLTextWriter to write the XML to a MemoryStream: Dim ms As MemoryStream ms = New MemoryStream Dim xtw As New Xml.XmlTextWriter(ms, System.Text.Encoding.UTF8) xtw.Formatting = Formatting.Indented xtw.Indentation = 2 xtw.QuoteChar ...more >>

XML XSL FO PDF
Posted by news at 8/19/2004 7:27:15 AM
Can I use XML->XSL->FO->PDF in .NET? I have the XSL FO from XML, and now use client based FOP software. I have seen a few commercial packages for FO->PDF but they are costly (1000 dollars). ...more >>

XmlTextWriter.WrireAttributeString append a &#xa ( \n )
Posted by Jim Hsu at 8/19/2004 3:29:21 AM
for some reason, I can not use WriteStartAttribute pair. but the WriteAttributeString gives me this &#xA, '\n' seems very unnecessary , any way to work around this ugly thing? google does not help... -Jim ...more >>

XslTransform and empty elements
Posted by Geir_Sørensen at 8/18/2004 7:21:15 PM
Hi, When I transform an xml-file using XslTransform, I seem to get a lot of elements of this form: <a> </a> <b> </b> But I really would like to get written out like I do when transforming with MSXML, where I get <a/> <b/> I did come up with a kludge, thanks to http://www.mcse.m...more >>

Writing to a text file formatted as XML
Posted by Raj Kumar at 8/18/2004 12:55:02 PM
Hi! I have a text file that looks like this: <configuration> <appSettings> <add key="db_server" value="someserver" /> <add key="db_database" value="somedatabase" /> </appSettings> </configuration> Now, I want to check if value for db_server is empty and if it is, I want to...more >>

XSD For XML File
Posted by Mythran at 8/18/2004 10:32:49 AM
Hrm, I don't think it's possible to create a schema for the following XML, just asking in hopes of some good suggestions for it: <menuBar> <menuBarItem> <menu> <menuItem /> <menuItem /> <menuItem> <menu> <...more >>

XPath beginners question
Posted by Mike P at 8/18/2004 3:04:42 AM
I have limited experience of XML and I am trying to use XPath to get at all <tag4> elements given a certain value for <tag3> (see my example below : <?xml version="1.0" encoding="ISO-8859-1"?> <tag1> <tag2> <tag3> <tag4> <tag4> <tag4> </tag2> <tag2> <tag3> ...more >>

getting the output of a transform as DOM
Posted by Andy Fish at 8/17/2004 7:02:14 PM
Hello, I am doing an XSL transformation using the XslTransform object and I would like to get the output as a DOM (XmlDocument or XmlElement) Do I have to get it serialized and then parse it again, or is there anyway to do it more directly? TIA Andy ...more >>

Generate test DATA from XML Schema
Posted by Petr Votoèek at 8/17/2004 12:12:42 PM
Hi all! Please help me, I need some free util to generate testing data form XML Schema. I would like to show approximate tree of elements and I don't want to write a code (traverse through the SOM). Any ideas? Thank you ...more >>

HELP!!HELP!! - Import XMl into SQl using ASp
Posted by Michael Persaud at 8/17/2004 10:09:40 AM
HI, I have a xml file and would like to import its contents into a table in SQl2000 can some one say how? it has to insert multiple records Thanks MP ...more >>

Passing a variable to XSL.
Posted by Gary Whittle at 8/16/2004 11:22:17 PM
Hello, Can someone explain the easiest way to pass an external value to an XSL file? If I have a variable within my ASP file called "ClickArea", can I send the value to my XSL file? I believe I need to use Addparameter somehow, but I have no joy. If someone could post a super quick ver...more >>

Newbie help - this should be easy.
Posted by Gary Whittle at 8/16/2004 9:46:43 PM
Hello, I have a file called: index.asp Which calls an XSL file called: design.xsl Is there any simple way for me to pass a parameter from index.asp to design.xsl? So for example: www.mysite.com/index.asp?Parameter=HelloWorld Can I get the parameter value "HelloWorld" to be includ...more >>

Reading through an XML string from an object[]
Posted by Ldaled at 8/16/2004 6:25:02 PM
Okay, I had a previous post called reading an XML document. Since this post I have revised my code and got it to work. Now, Like Derek had mentioned in answer to my previous post, I am getting an XmlException. The error message is invalid date SEMICOLON expected at Line 1 Position 380. Derek y...more >>

XML to CSV and having problems
Posted by Ben Bloom at 8/16/2004 4:30:55 PM
I'm new to XSLT, but everything I've read says this is the best approach to solving the XML->CSV problem. Based on some web reading, I came across the following XSLT code which appears valid, even if it doesn't work quite as expected. XSLT: <?xml version="1.0" encoding="ISO-8859-1"?> <...more >>

Looking for XML driven reporting tool
Posted by P Jones at 8/16/2004 2:12:47 PM
Hi, I support an enterprise web application (IE client) built in VB6, with about 200 classes, serving about 7000 users, running on 3 clustered servers. I need to incorporate web reporting for the first time, so I am interested in learning what web reporting options are out there, and the pr...more >>

null value in XML
Posted by Lynn at 8/16/2004 1:23:23 PM
Hi all, I am having problem when did the validation of XML document with Schema. my schema is like the following: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="schema.xsd" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" elementFormDefault="qualified" targetNamespace="s...more >>

DataSet and XML Lesson 1
Posted by Jaga at 8/16/2004 11:44:51 AM
DataSet & XML Lesson 1 multidimensional XML data This is a known issue (KnowledgeBase 325696) "Although this XML document is well formed, it contains structure that Data view cannot display. The same table (Table name) cannot be the child table in two nested relations." : <?xml version="1....more >>

serializing element text using SOAP
Posted by chen_lena1 NO[at]SPAM hotmail.com at 8/16/2004 11:27:43 AM
I have generated a proxy class derived from System.Web.Services.Protocols.SoapHttpClientProtocol One of my classes is defined as [System.Xml.Serialization.SoapTypeAttribute("MyClass", "http://www.mycompany.com")] public class MyClass { public MyClass() { } public MyClass(String t...more >>

Better Form
Posted by Wayne Wengert at 8/16/2004 11:21:15 AM
I have an XML document (see below) in which I have a <COMPANY> element that, in turn, contains other elements. Based on an example I saw somewhere I coded it as shown in the sample. In purusing other posts and books I see alternatives such as: <COMPANY name="My Comapny Name <City>Podunk<...more >>

Custom Serialization
Posted by jrharding NO[at]SPAM hotmail.com at 8/16/2004 7:57:37 AM
Could anyone tell me if this is possible please? I have a class which looks like the following Class MyClass public mblnUpdateMyProp1 as boolean public mintMyProp1 as int16 public mblnUpdateMyProp2 as boolean public mintMyProp2 as int16 end class This serializes to <MyC...more >>

Querying a dataset filled from XML file
Posted by C. Hughes at 8/16/2004 5:31:01 AM
I have a simple application that uses an XML file to store it's data. That means I don't have a seperate database. In order to read the data I created a DataSet that reads my XML file with the .ReadXml() method. 1. I want to manipulate the resulting dataset, preferably with SQL queries. But...more >>


DevelopmentNow Blog