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 > october 2005 > threads for october 15 - 21, 2005

Filter by week: 1 2 3 4 5

There is an error in XML document
Posted by Jeff at 10/21/2005 7:26:16 PM
Hello I am creating a web client in c#. I use the "Add a Web Reference" wizard to read a WSDL file, then I simply call the method for the remote service. I get the floowing error returned when I make the call.: There is an error in XML document (1,454) The source of the error is System.Xml ...more >>


DataSet.ReadXml fails when a percentage (%) sign is in the filename followed by 2 hex characters
Posted by CB at 10/21/2005 12:14:14 PM
Using C# in .Net 2003, DataSet.ReadXml fails when a percentage (%) sign is in the filename followed by 2 hex characters. Seems that the % sign is likely encoding the following 2 hex characters. So c:\test%ab.xml fails for ReadXml since %ab is interpreted as 171 and c:\test171.xml does not ex...more >>

Write javascript
Posted by Yama at 10/21/2005 12:03:39 PM
Hi, How can I dynamically embed the content of a filename.js into a .aspx page before rendering it to the client? Thanks, ~yamazed ...more >>

REdering Javascript from an XML file
Posted by Yama at 10/21/2005 11:22:12 AM
Hi, I have 20 javascript files I would like to dynamically write to my rendered web page. What I would like to do is instead of saving them into a database table save them into a XML file then retrieve them according to user selection. The question is how do I do that? How can I save into a...more >>

XmlSerializer/XmlTextWriter all data on one line
Posted by Steve at 10/21/2005 9:53:20 AM
I'm an XML newb. I'm serializing a class and when I inspect the xml file, all the data is on one line rather than being nested and indented Is that normal? <code> StreamWriter sw = new StreamWriter(m_optionsXmlFilePath, false); XmlSerializer xmlSerializer = new XmlSerializer(typeof(Options...more >>

streaming random filetypes from .aspx
Posted by Daniel at 10/20/2005 12:31:48 PM
streaming random filetypes from .aspx how to stream a file from inside a .aspx? e.g. so one could go href="./foo.aspx?file=bar.mp3" or href="./foo.aspx?foo.dat" etc. preferabley i would like all file types to open with "save as" when href clicked ...more >>

Transform Xml to DataSet
Posted by Jason at 10/20/2005 11:20:36 AM
Hello, I am working on a problem which requires me to take a String variable containing some Xml, transform it using Xslt, and dump the result into a DataSet. What would be the quickest way to do this? - I don't want to use any files in this process. Thanks, Jason ...more >>

am I misunderstanding readxmlschema ?
Posted by David Bartosik [MSFT MVP] at 10/20/2005 9:57:31 AM
I am writing an xml file from a dataset. I don't want the xml file to use the table names, I don't want the schema inferred from the dataset. Because of this I created an xsd to provide an explicit schema. I create my dataset object, I set it's readxmlschema to my xsd file, then I writexml. F...more >>



XSLT, XML to XML
Posted by Jason at 10/19/2005 7:08:53 PM
Hello, I would like to transform this; <?xml version="1.0" encoding="utf-8" ?> <ProductList> <Product> <ID>1</ID> <Name>Gadget</Name> </Product> </ProductList> to this; <?xml version="1.0" encoding="utf-8" ?> <ProductList> <Product> <ID>1</ID>...more >>

Baffling READXML problem
Posted by bfrasca NO[at]SPAM comcast.net at 10/19/2005 9:39:27 AM
I have a well-formed XML file that I am trying to load into a dataset using the ReadXML method. It keeps telling me that "there are multiple root elements". I can view the data using XML Designer in Visual Studio 2003 without any problems and the schema and file have been validated using sever...more >>

Schemas, choice and max occurence
Posted by rossu at 10/19/2005 8:49:05 AM
One of the nice features of XML is that it is order independent i.e. <a>1</a><b>2</b> works as well as ><b>2</b><a>1</a>. Unfortunately, the schema system in .NET doesn't seem to be happy with this. It is constantly throwing in <xs:sequence> tags. I can replace this with a <xs:choice> tag, ...more >>

Linked Schemas in a SchemaCollection
Posted by AndrewDucker at 10/19/2005 5:02:13 AM
(Posted to microsoft.public.xml originally, then realised this was a better place for it) I've got three schemas I'm trying to add to a schemacollection so that I can validate a series of documents. The schemas are going to be held in the manifest, so I'm grabbing them as streams and using S...more >>

Two Deep XML?
Posted by Harry Whitehouse at 10/18/2005 2:01:32 PM
I have some code which creates an XML output like this: < Product> <Product ID>1</ProductID <ProductValue>5.00</ProductVaue> </Product> < Product> <Product ID>2</ProductID <ProductValue>10.00</ProductVaue> </Product> Here it is: newElem =3D...more >>

Xslt transform in code yields nothing
Posted by Andy at 10/18/2005 12:38:53 PM
Hi all, I'm having a problem doing an Xslt transform in code. I've done it before, so I'm not really sure why its not working. The problem is that the result of the transform is an empty string. I expected the xml to be transformed into a plain text document. Everything works fine when i ...more >>

Newbie - how do I post XML from c#?
Posted by Brett Hargreaves at 10/18/2005 12:23:39 PM
Hi, I want to programatically create a small xml doc in memory, post it to = another site then capture the resultant xml response into another xml = doc for parsing. I don;t want to save the file to disk, I want in all done in memory and = automatically. eg, this is what I have so far; ...more >>

XSLT Optimization
Posted by rviray at 10/18/2005 10:09:24 AM
Hopefully, someone could point me in the right direction. I have we services that takes a DataSet object and Transforms it into pre-defined XSD (outside of my organization's control). I hav successfully done everything, now I am at a point where I want t verify that my XSLT logic is optimized....more >>

problems compiling xsd in .Net 2003
Posted by Sergey Poberezovskiy at 10/18/2005 6:03:01 AM
Hi, I have an .xsd document (Inc_B.xsd) that "includes" two more from the same folder: <xs:include schemaLocation="Inc.xsd" /> <xs:include schemaLocation="Inc_A.xsd" /> They all have the same targetNamespace="http://tempuri.org/Inc.xsd" xmlns:ir="http://tempuri.org/Inc.xsd" xmlns:xs=...more >>

Showing a XmlDocument
Posted by Fernando Moreno at 10/18/2005 1:37:07 AM
Hi, this is maybe very easy and there's something I'm sure missing here but I can't find how to show an Xmldocument object in f.ex. ie without save document as xml first. Is this possible? Thanks...more >>

Need XPath examples for following-sibling
Posted by Mori at 10/17/2005 6:58:01 PM
I have the following xml. I need to use XPath to get the year when ever the style is pickup. Both year and style are siblings. <?xml version="1.0" encoding="UTF-8"?> <automobiles> <automobile> <style>pickup</style> <make>chevy</make> <year>2002</year> </automobile> <automobile...more >>

Deep Copy of XmlDocument
Posted by Waldemar FEM at 10/17/2005 3:43:02 PM
What is an easy way of making a deep copy of an XmlDocument object? Right now I'm doing something like this: XmlDocument inputDoc; XmlDocument copyDoc; ..... StringBuilder builder = new StringBuilder(); TextWriter textWriter = new StringWriter(builder); XmlTextWriter writer = new XmlTextW...more >>

Putting an XML document in a TreeView.
Posted by Kevin Burton at 10/17/2005 12:53:12 PM
I would like to put an XML document into a Windows TreeView. I have started with XmlTextReader and seem to get stuck with all of the different Read/Move commands available. I was wondering if someone else has already gone through the pain of descending through an XML document either printing ...more >>

XML query
Posted by Rahul Sane at 10/17/2005 12:00:00 AM
Hi, I need to have a small, easy and portable database and i'm thinking of having a simple XML file (without using DTD, etc). Can you please let me know, as to how I can read/write into different attributes. I've given a example XML below and I need to know as to how exactly I can loop an...more >>

Pretty print XML?
Posted by Kevin Burton at 10/16/2005 4:17:06 PM
I am sure this has been asked enough to warrant an FAQ but I could not find it. Does anyone have some code and maybe an XSLT stylesheet that would allow me to transform an XML string to a "pretty" version (nodes indented on separate lines, etc.)? Thank you for your help. Kevin...more >>

CDATA string?
Posted by Kevin Burton at 10/16/2005 1:52:01 PM
I have a string that is returned from a web service that is XML so the string is enclosed in CDATA[![ . . . ]]. The string/data enclosed in the CDATA section is real XML. If I try to LoadXml into an XmlDocument I get an exception. Does anyone have suggestions on how I can strip the CDATA off ...more >>


DevelopmentNow Blog