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

Filter by week: 1 2 3 4 5

Serializing as CData?
Posted by Paul Hatcher at 3/31/2004 4:39:36 PM
Is is possible to tell the XML serializer to output an element's content in a CDATA wrapper? Paul ...more >>

XPath Query Problem
Posted by Kyle Novak at 3/31/2004 12:15:32 PM
I am having a problem with an XPath expression not finding a node in certain instances. My function DelLocationByID takes an ID of the element to delete from an XML file. This code works for numbers such as 3423423 or 89709023, but it does not work for something like e1156c58-f9fd-44aa-8f15-d6e...more >>

XPath question
Posted by veloearl NO[at]SPAM hotmail.com at 3/31/2004 6:38:16 AM
Let's say I have the following XML: <authors> <author> <name>Mike Galos</name> <nationality>French</nationality> </author> <author period="modern"> <name>Eva Corets</name> <nationality>British</nationality> </author> <author> <name>Cynthia Randall</name> ...more >>

Why XML
Posted by (biirir NO[at]SPAM yahoo.com) at 3/31/2004 6:30:59 AM
I am new to XML and cannot figure out why XML will be so important in the future. Any good resources on what benefits XML gives us would be appreciated. Thanks ********************************************************************** Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ Co...more >>

xsd:any in a complex type
Posted by Peter at 3/31/2004 2:46:05 AM
Hi I'm wanting to use the xs:any tag to allow undefined content to be located within a complex type Specific contraints are 1: The structure can only be one level deep, as the xml from a stream returned from an SQL Server FOR XML AUTO, ELEMENTS query 2: Any number of unknown tags from 0 to unb...more >>

Obtain XML data into HTML file
Posted by Matteo Migliore at 3/30/2004 3:06:17 PM
Hi. Is it possible to create an HTML file that contain XML data content and html tags using the XML engine? Normally use: - XML data - XSLT layout - HTML page that show the page but content are into xml file What I want is to obtain the html file that contain what IE parse. Thanks, ...more >>

Retrieving selective nodes with a XPath Query
Posted by Kiran Nakhate at 3/30/2004 11:43:30 AM
Hi all, The following is the query explained in brief steps: Requirement : I am having one xml document. In that, i want to get the nodes depending on the starting position & number of nodes given by the user. This will be Read-Only purpuse only.. [Note: Performance is the main issue] Cur...more >>

adding an element to XML
Posted by RCIC at 3/30/2004 6:21:07 AM
I am getting data from a database in XML format. It looks like this <NewDataSet><Table1></Table1><Table2></Table2></NewDataSet Each time I update the XML it does so like this <NewDataSet><Table1></Table1><Table2></Table2><Table1></Table1><Table2></Table2></NewDataSet I would like it to refo...more >>



How to generate xsl file from xsd
Posted by Ash at 3/29/2004 10:36:06 PM
Hi How to generate xslt file from xsd How can I do that Thanks Ash...more >>

Problem with Xml & XSL, please HELP
Posted by Tiraman at 3/29/2004 9:30:02 PM
Hi, I m working in VB.NET in front of ASP.Net and I would like to Transform Xml with XSL and I would like to get the Html results as string into one of my string params. How can I do that? 10x in advance ...more >>

adding a WSDL reference
Posted by AA at 3/29/2004 5:54:51 PM
What's wrong with this SOAP schema definition? http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0 I add to my project but I can use anything inside. There reference file is empty and I don't know why. How can I load the WSDL and use into my application. Thanks a...more >>

Error DeSerializing XML document - xmlns=''> was not expected
Posted by sjoshi NO[at]SPAM ingr.com at 3/29/2004 2:53:34 PM
Hello All I get this error during DeSerialization. Serialization works fine though. Error: There is an error in XML document (2, 2). <Persons xmlns=''> was not expected. This is the xml file generated during Serialization... <?xml version="1.0" encoding="utf-8"?> <Persons xmlns:xsd="http:...more >>

Custom sorting through xslt extension object
Posted by Jiho Han at 3/29/2004 11:41:26 AM
I am trying to find information/example on how to do a custom sorting via adding an extension object to the transform. The requirement for the custom sorting is based on my assumption that nodes that contain values such as datetime value will not sort correctly by the facilities provided by the ...more >>

Deploying XML
Posted by JezB at 3/29/2004 10:19:43 AM
I've added an XML file to my windows client project, with data in it, but when I BUILD the project the xml file seems to be compiled into the executable or one of the DLLs. I want the XML file itself placed into the assembly so that when deployed it can be edited by the end-users - a kind of app...more >>

append data to XML file
Posted by RCIC at 3/29/2004 6:51:10 AM
Hi I want to start with with xml <?xml version="1.0" encoding="utf-8"?><ControlNumbers><ControlNumber InputType="1" Number="12347" /></ControlNumbers and append xml to get this result <ControlNumbers><ControlNumber InputType="1" Number="12347" /><ControlNumber InputType="2" Number="12347" />...more >>

How to capture SELECT ... FOR XML RAW
Posted by Gopinath Munisifreddy at 3/26/2004 7:56:02 PM
Hi, Can u tell how to capture output of the following query into a variable and reuse the variable "select TOP 1 FirstName, LastName FROM pATIENT FOR XML AUTO" Thanks Gopinath M ...more >>

XMLTextWriter -> utf8 string?
Posted by Bill Cohagan at 3/26/2004 7:17:32 PM
I'm trying to generate an XML document within a string. I can do this using the XmlDocument class and it's CreateElement, etc. methods, then at the end I reference the OuterXML property and I've got it. What I'd like to do (for various reasons) is to use an XMLTextWriter instead of the DOM, bu...more >>

Force serialization of elements
Posted by Bradley Plett at 3/26/2004 12:06:52 PM
I have a very simple XSD which I turn into a class using the xsd.exe tool. The XSD contains some binary and some string elements that have default values. However, when I serialize an object based on the resulting class, unless these values have been explicitly assigned, they do not get serial...more >>

xml generated from nested tables not quite what I want
Posted by funk_monnk NO[at]SPAM hotmail.com at 3/26/2004 6:55:19 AM
I'm getting my data fom a stored procedure, and loading it into a dataset with a data relation. Using getxml I don't get what I want: Got: <dataset> <customer> <order> </order> </customer> <customer> <order> </order> <order> </order> </customer> </dataset> Want...more >>

Serializing XML document
Posted by AA at 3/25/2004 6:21:29 PM
hello, I need to serialize this XML... <xmlData> <Names> <Name>John</Name> <Name>Peter</Name> <Name>Maria</Name> </Names> </xmlData> To this Object ... Public Class xmlData Public Names() as String End Class But the serialization process ne...more >>

Building a schema from a class/object at runtime
Posted by HJ Rodriguez at 3/25/2004 5:20:58 PM
Hello all, I have the following serializable class. ---------------------------------------------------------------------------- -- Public Class Test _testID as int32 _testName as String Public Sub New() MyBase.New() End Sub <XmlAttributeAttribute()> Public Property Test...more >>

Is it possible to rename attribute name in an existing xml document?
Posted by AndrewV at 3/25/2004 12:20:00 PM
For example, if I have this xml doc ... <root><row column1="some value" /><row column1="more value" /></root> Now I would like to change column1 attribute name to newColumnName like this .... <root><row newColumnName="some value" /><row newColumnName="more value" /></root> Is it possible t...more >>

How to pass node to xslt c#
Posted by Donald Adams at 3/25/2004 12:00:11 PM
In the old days I could pass in the current context using: <xsl:value-of select="user:makeId2(.)" /> in my xslt and I could do stuff like the following: e.SelectSingleNode("..") How do I pass a node context to C#? It looks like it can only receive like the following: public string makeId...more >>

ASCII encoding a file
Posted by steven.skarupa NO[at]SPAM usa.net at 3/25/2004 7:38:02 AM
I am having problems creating a file from the result of a XslTransform.Transform operation. This is XML->EDI conversion and the resulting text has to be in ASCII format, but no matter what I do the output of the file is in UTF-8. Please note: I'm using .NET Framework 1.0. Here is the code ...more >>

DataSet.ReadXML() and xml:stylesheet
Posted by Kai Thorsrud at 3/24/2004 3:17:58 PM
Hi! I've developed an application that uses XML as its datastorage. The resulting XML file are to be used in a webpage with a XSL Stylesheet. However if i add a <?xml:stylesheet type="text/xsl" href="style.xsl"?> tag in my XML document the ReadXML method throws an exception like this: Syste...more >>

How to use HTML in an XML document that will be parsed using XPathDocument, XmlTextWriter, and XslTransform
Posted by Novice at 3/24/2004 9:11:11 AM
This should be a fairly simple question assuming you know about XPathDocument, XmlTextWriter and XslTransform classes (which apparently I don't know enough about) I've written some visual basic to read in an xml file - for example (all of the files - xml, xsl, etc I include are not the ones I'm ac...more >>

How to use XPath expression to parse XML document and using XSL - i.e. do a selective XSLT
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 3/24/2004 6:56:11 AM
I'm trying to do a selective query (in visual basic) of some xml that is getting formatted based on a XSL document - i.e. I'm doing an XSLT. However, I can't seem to get the XPath expression that I'm using to affect the output i.e. I always just get all of the XML instead of just the subset th...more >>

XML output of UTF8 string.
Posted by vm NO[at]SPAM vmirage.cjb.net at 3/24/2004 1:47:19 AM
Hi, I'm trying to output a UTF8 string into an xml but this is what i got. &#x0;A&#x0;L&#x0;P&#x0; &#x0; (high ascii)(high ascii)(high ascii) notice the &#x0; ? How do i get rid of it and get rid of &#x0; to get the following result? ALP (high ascii)(high ascii)(high ascii) I'm usin...more >>

Returning UTF-8 XML Declaration after serialisation
Posted by Gary Brewer at 3/23/2004 1:20:28 PM
Hello, I am running the following code - XmlDocument xmlDoc=new XmlDocument(); XmlSerializer xmls=new XmlSerializer(type); System.IO.MemoryStream ms=new System.IO.MemoryStream(); xmls.Serialize(ms,o); ms.Position=0; xmlDoc.Load(ms); return xmlDoc; My XML declara...more >>

Web Service methods require custom types, VS.NET generated Types are empty
Posted by Joe Rattz at 3/23/2004 6:56:05 AM
I am trying to consume a web service. The web service has methods that accept custom types as input and output arguments. When I add the web reference in VS.NET 2003 and it generates the proxy code, I end up with stubbed in custom types classes that are empty, meaning they inherit from nothing and...more >>

Problems with XmlTextReader
Posted by CD at 3/22/2004 10:19:57 PM
Hi, I am trying to load an XML text file using an XmlTextReader using a BufferedStream. I am using the following code: (assuming m_reader is a valid XmlTextReader) while (m_reader.Read()) { if (m_reader.NodeType!=XmlNodeType.Element) continue; if (m_reader.LocalName == ...more >>

Custom XML Reader
Posted by Van Balasubramanian at 3/22/2004 4:41:23 PM
Hi, Where can I find the complete downloadable code for the MSDN article = found at: Implementing XmlReader Classes for Non-XML Data Structures and Formats I am looking for a custom XML reader implementation. Thanks, Van....more >>

When is MS going to fix bug in System.Xml.Schema
Posted by news.microsoft.com at 3/22/2004 3:42:54 PM
Concerning Q317490 http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q317490 When is Microsoft going to fix this? gkelly ...more >>

xmlexception
Posted by klesjezot NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/22/2004 2:35:40 PM
Hi, I have a string which contains an xml file (strXml). When I try to load the string into an xml document I get an XmlException Dim doc As XmlDocument = New XmlDocument doc.LoadXml(strXml) What's the reason for this exception? Posted Via Usenet.com Premium Usenet Newsgroup Servic...more >>

How can i serialize in memory
Posted by Fabiano at 3/22/2004 12:06:04 PM
Please, i have a app that receives a XML string. I would like to convert it to a Dataset but to do this i'm saving the string as a file and then call LOADXML dataset method. Is there a way i can serialize this xml string in memory and the send it to a dataset? I need to save it as file ever...more >>

Need help transforming parent-child xml
Posted by Drew Mace at 3/21/2004 3:54:53 PM
Here is the scenario: There is an index.xml file that specifies sections of content in the example below. Each attribute "chunkiid" is another xml document...for example there is a 35427.xml. I would like to have 1 xsl file that takes random chunkiid's and loads that xml then transforms that x...more >>

retrieve previous or next sibling?
Posted by Michael Appelmans at 3/21/2004 1:45:11 PM
Being a relative newbie at .NET xml I have a photo album as an xml doc and would like to be able to retrieve the previous or next photo name bsed on the current photo node. I haven't used XPath classes and wonder if someone could steer me to a relatively simple example. Here is my xml: ...more >>

Editing XML schema via XmlSchema class?
Posted by BikerJR at 3/21/2004 4:39:49 AM
Does XmlSchema class provide a possibility to edit already created XM schema? Should I use XmlDocument, XmlNode etc. instead? Thanks, Alex Masyche - BikerJ ----------------------------------------------------------------------- Posted via http://www.mcse.m ----------------------------...more >>

Few questions about efficency
Posted by Ayende Rahien at 3/20/2004 6:15:06 AM
I'm trying to use xml files as my data store (after trying a DB ended up in multiply injuries to all participants :-+AH0- ) in an Asp.Net application. My problem goes like this: I'm loading the files to XmlDocument, and then grab the info I want from them using XPath. Most of the work is readin...more >>

XML validation with the XmlValidatingReader
Posted by crausch at 3/19/2004 6:41:08 AM
Hello, I am using the XMLValidationReader to validate documents against a DTD. The DTD is the "JournalPublishing.dtd" from PubMed. Because of the the way several parameter entities are declared within the DTD, the MS Parser in DotNet is generating errors: "The parameter entity replacement text m...more >>

How to view raw XML of web request
Posted by Jurgen at 3/19/2004 12:36:05 AM
I would like to see the raw contents of the XML request messages I'm getting. How should I do that since .NET hides everything for me? I've tried Google, MSDN etc. but I cannot find the answer. (It's probably easy and I'm probably looking in all the wrong places... Still, a more helpful pointer is...more >>

Help with XMLDocument + XSL = string
Posted by jkanel_ng NO[at]SPAM yahoo.com at 3/18/2004 2:29:50 PM
I have an XMLDocument object and an XSL string. I need to transform the XML, but I cannot get any code examples to work properly. I'm using .Net Framework 1.1, which obsoletes many of the code exmples I've found in this newsgroup. Here's the function I need to fill... Public Function Get...more >>

XPathNavigator and SelectSingleNode
Posted by Jiho Han at 3/18/2004 2:24:01 PM
I like XPathNavigator because it's fast but one thing I miss from XmlDocument is the ability to retrieve a single matching node. It's very useful when I know there is only one such node under the parent. I am trying to find the easiest way to implement such functionality that doesn't detract f...more >>

Get node value and data type (Using C++ and Smart Pointers)?
Posted by Teis Draiby at 3/18/2004 1:38:21 PM
Being new to XML and DOM my questions is probably very basic. I am using VC++ and 'Smart Pointers' with MSXML 4.0 See code below... 1) How do I get the value of a node and output it by 'printf'? Preferably I want the value to be obtained in its native data type. I have experimented with 'node...more >>

multiple xml docs in xsl using .net transform
Posted by Chad at 3/18/2004 1:16:11 PM
I have a question about using xslt to access multiple documents that will be transformed to html via the xsl Transform call. I hope this is not too lengthy,but I wanted to get the message across I am transforming an xml file that has one of the element attributes that has the path to another file ...more >>

Transform XML using XSLT
Posted by Nathan at 3/18/2004 11:48:52 AM
I'm a complete XML newbie and I'm attempting to use an XSLT to transform an string containing XML so that the nodes are named as per my requirements and nodes that I don't need arem't written. Now the renaming of the nodes works but I'm not sure how to not copy the nodes that I don't want. ...more >>

report writing with XML/XSLT
Posted by Erik Frey at 3/18/2004 10:16:34 AM
Hi, In previous software projects, I've used Crystal Reports to allow the user to print views of data in the app. The problem with this is the tedious process of creating one report after another in the visual designer, for each and every business object I want to create a report for....more >>

error loading XSLT with msxsl:script vb embedded
Posted by Russ Holmes at 3/18/2004 9:48:43 AM
My vb.net code attempts top load an XSL file into an XSLTransform instance; '---------------------------------------------- Dim oXMLDoc As New Xml.XmlDocument Dim oXslTransform As New Xml.Xsl.XslTransform Dim stWrite As New System.IO.StringWriter 'load xml string into XMLDocument oXM...more >>

Xpathnavigator & newline
Posted by Baz at 3/17/2004 12:46:05 PM
I need to extract specific information from XML documents generated by a third-party program. The relevant information is <1% of the total XML. I have a couple of questions 1. I am currently using XPathNavigator & XPathDocument to select pertinent information & writing that to a flat file. I do not...more >>

Flattening and XML Tree to a CSV
Posted by solex at 3/17/2004 12:13:49 PM
Can anyone post or point me to a link that has a complete XSLT file that will flatten an XML tree for conversion to a CSV file? Thanks, Dan ...more >>


DevelopmentNow Blog