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 2003 > threads for november 15 - 21, 2003

Filter by week: 1 2 3 4 5

insert xml data into sql server?
Posted by maltchev at 11/21/2003 11:55:44 PM
i need to insert data from an xml file into sql server table. the xml file contains only one record. how to insert the data? how to map the names of the fields in the xml file and the table? thank you in advance. ...more >>

From n xmlReader to single XPathDocument?
Posted by Keith Chadwick at 11/21/2003 8:14:50 PM
My problem is this. I have to create several xmlReader objects each retrieving 'for xml' formatted sql server data. I then need to peice them together into a single document and place them into a single XPathDocument which is then transformed throughout the web site with different XslTransforma...more >>

Problems with Deserialization...
Posted by linus NO[at]SPAM technologist.com at 11/21/2003 6:17:04 PM
Hi, I'm having problems with some very simple deserialization code and would appreciate it very much if I could get some help here. The following is the code: ========================================================= XmlReader reader = new XmlTextReader("test.xml"); XmlValidating...more >>

Trying to create completely server side, document merge
Posted by Richard Fritzler at 11/21/2003 5:42:15 PM
I was given the task of designing a complete web based document prep system. In simplest terms (using a msword explanation) create a database of merge fields, and a library of templates. Allow the webuser to select the template, merge his DB record, and produce a formatted document that ca...more >>

xpath help - single quotes
Posted by Joe Gass at 11/21/2003 4:12:54 PM
I have an xml doc <sections> <section> <title>entry image</title> </section> <section> <title>22'2</title> </section> </sections> I want to check for duplicate nodes before I add I'm using this vb.net code (The code is fine but the xpath isn't working with titles with si...more >>

Serializing "Type" class
Posted by Maersa at 11/21/2003 3:42:39 PM
Hi All, Was anybody able to serialize the "Type" class properly using XmlSerializer().... Want to serialize and deserialze the Type in a string form, but can this be done ? myobj.Type = typeof(System.String) as <type>System.String</type> thanks a ton. ...more >>

XmlSerializer question...
Posted by Maersa at 11/21/2003 3:36:01 PM
Hi All, When using XmlSerializer is there anyway of keeping "xsi", "xsd" namespaces and PI appearing in the xml file ? <?xml version="1.0"?> <myClass xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="Test" Visible="false" /> Just w...more >>

Using XML as a Database
Posted by MT at 11/21/2003 2:53:51 PM
I have a gigantic XML file which has the following structure: <root> <header> </header> <entry index="1">asdf</entry> <entry index="2">fdfsa</entry> ........ </root> Now, I have a simple XSD defined that automatically generates a Dataset for me. I use the MyDatabase....more >>



SqlXMLCommand Help?
Posted by Keith Chadwick at 11/21/2003 1:50:35 PM
I noticed an earlier post, Multiple External References in Transform - = Background to the problem - Long Post, where the poster referenced an = object entitled SqlXmlCommand. I am unable to find this object?=20 My requirement is thus. Read several tables from sql server 2000 db = with the a...more >>

User navigation system with XML file
Posted by dkode NO[at]SPAM cfl.rr.com at 11/21/2003 1:23:36 PM
Here is the XML file i am using right now, note: there is only an "Administrator" group right now, in the end there will be 6 or 7 different groups of navigation levels <?xml version="1.0" encoding="utf-8" ?> <Nav Role="Administrator"> <Button id="EmployeeManagement" label="Employee Managem...more >>

Strange behaviour reading XML into DataSet
Posted by billybobc1210 NO[at]SPAM yahoo.com at 11/21/2003 8:33:10 AM
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. I'm getting some strange results depending the input XML file I use. I was wondering if somebody c...more >>

Where to host schemas?
Posted by Raghu at 11/20/2003 11:38:56 PM
Is it necessary for me host schemas in some webserver? At present, I use localhost but still the xml instance cannot find its schema. Any help please?...more >>

newbie: how to check a string of XML against a DTD file...
Posted by Daniel Bass at 11/20/2003 4:47:14 PM
given a string of text, how can i test whether it has integrity when verified with a DTD file on disk, as well as checking it's even a valid XML formatted string? Is this possible to do with the .Microsoft .Net DOM? Thanks! =o) Daniel. ...more >>

Transformations appear to be CPU intensive
Posted by Keith Chadwick at 11/20/2003 2:00:37 AM
I am migrating an existing ASP app that uses XSLT transformations to = render against a language XML doc for localization and other items. = When I moved this logic into .NET and the native xml and xsl objects I = noticed a significant processor hit on the web machine. The xml file is roughly...more >>

xml validation against schema
Posted by eXavier at 11/19/2003 6:09:01 PM
Hi, I need to validate XML fragment against XSD schema. The main issue is that xml fragment does not contain refrence to schema, but I want to force the validation against the schema I have in XmlSchema object. The scenario is as follows: I have string fragment; containing xml fragment,...more >>

Returning the XPath for a Given Node
Posted by David Williams at 11/19/2003 1:46:15 PM
Is there an existing method that will return the XPath that would give the current node? In other words, using the following XML document: <root> <node value="1"/> <node value="2"/> <--- assume is current node <node value="3"/> </root> I want something that would return ...more >>

Formatting objects processor
Posted by James at 11/19/2003 11:23:18 AM
Hi Folks, I plan to implement some report generation using Formatting objects on the ..NET platform. Does Microsoft have a built in version? .Or What are my options? are there any free ones which can be used on the .NET platform? Any help in this regard would be appreciated Thanks James ...more >>

xml document
Posted by androger at 11/19/2003 10:28:53 AM
hi, I have a huge xmldocument that represent data from a table. How can I break this down into multiple xmldocuments, say of a certain number of records each?...more >>

ID / IDREFS problem MSXML vs. System.XML
Posted by Microsoft News at 11/19/2003 9:55:48 AM
Hi all. Does id() xpath function work in System.XML? I have built dtd, schema, xdr for a simple xml which includes attributes definded as ID and IDREFS. Validation is occurring properly for all the types of metadata, but the id() function applied to the IDREFS attribute allways returns nothin...more >>

xsd to xml
Posted by (ehigionni NO[at]SPAM katamail.com) at 11/19/2003 8:19:34 AM
Hello everyone, I'm trying to generate a xml instance with some default values from a xsd schema with vb.net. I think .net does not provide any classes to do this, does it? Alternatively are there any third classes namespaces that make this operation or I have to do generate the xml instance on...more >>

Sorting the result of an XPath query?
Posted by Ben Fidge at 11/19/2003 1:34:49 AM
Is it possible to sort the result of an XPath "select" query? I need to return a subset of a large xml file, and XPath is the way to go. I'd like to sort this subset afterwards? This seems like a common task so should be quite trivial. I've seen the same thing done but by first pumping t...more >>

Change the XML elements sequence
Posted by Thu at 11/18/2003 9:58:43 PM
I export some database data to an XML file. How do I change the sequence of the elements (fields) appear in the XML document? For example, my XML output from TableA is: <TableA> <Field(0)> <Field(1)> <Field(2)> <Field(3)> </TableA> If I want to change the sequence of the fi...more >>

XmlDocument read from Network Stream
Posted by Yechezkal Gutfreund at 11/18/2003 7:04:15 PM
I have been using the following code (successfully) to read Xml formated text packets from a TCP stream. The output from the server stream consists of a sequence of well formed Xml documents written to the output stream. We are willing to pay $ to any expert (e.g. MVP) consultant who has ...more >>

changing an emelent into an attribute
Posted by Raife at 11/18/2003 5:37:11 PM
i have a file like this (which im manipulating using vb.net) <CUSTOMERS> <PRIMARY>Y</PRIMARY> <SURNAME>BROWN</SURNAME> which i want to make like this <CUSTOMERS PRIMARY="Y"> <SURNAME>BROWN</SURNAME> i dont know whether to this is easy to do using xsl or whether this is a better...more >>

newbie XML QUestion
Posted by SStory at 11/18/2003 3:53:39 PM
I made a simple XML doc to hold backup file sets i.e. like this repeated per "record" path to backup, inclusion specs, exclusion specs, and if it is recursive path to backup, inclusion specs, exclusion specs, and if it is recursive path to backup, inclusion specs, exclusion specs, and if it...more >>

SelectNodes and namespace
Posted by endymion853 NO[at]SPAM hotmail.com at 11/18/2003 1:40:44 PM
I am having an issue trying to use the SelectNodes method in C# when using an Xpath Query. I realize lots of people have posted on this subject, but I have a little bit of a different variation. Let's take the document <MyNodes> <MyNode Attrib1="Cat"/> <MyNode Attrib1="Dog"/> ...more >>

Transforming SOAP documents
Posted by Mike at 11/18/2003 1:39:30 PM
I'm trying to write a XSL style sheet that will transform a SOAP document into a different type of SOAP document. However, if I try to create an element in my style sheet of "<xsl:element name="SOAP-ENV:Envelope>", nothing gets generated. The problem is with the ":Envelope". If I remove...more >>

XmlReader problem with XML Fragment
Posted by Rick Strahl [MVP] at 11/18/2003 1:31:02 PM
Hi all, I need a reality check <g>... I have the following XML fragment: <event sitename="West Wind Demo Link"> <url>http://rasnotebook/wconnect/testpage.wwd?Test2</url> <time>11/17/2003 7:32:39 pm</time> <message>Site is back up now.</message> </event> <event sitename="West Wind ...more >>

System.XML vs MSXML 3/4
Posted by Keith Chadwick at 11/18/2003 12:18:09 PM
I am current in the process of converting an existing ASP application to ASP.NET. The existing application makes extensive use of server side XML transformations as in rslt=myxmlobj.tranform(myxsltdoc). Now I have included the reference to the MSXML 3.0 object into my .NET application and ha...more >>

SelectSingleNode problem
Posted by hg at 11/18/2003 12:17:19 PM
Hi! The input xml file: <?xml version="1.0" encoding="utf-8" ?> <!-- Konfiguráció leírása --> <Konfig xmlns:bk="urn:inifile"> <Konfiguracio> <szerver neve = "A1"></szerver> </Konfiguracio> </Konfig> XmlDocument xd = new XmlDocument(); xd.Load(Application.StartupPath + "...more >>

How can I swap two xml nodes that belong to the same parent?
Posted by Sasha at 11/18/2003 11:45:19 AM
How can I swap two xml nodes that belong to the same parent? Examples would be great! Thank you, Sasha ...more >>

Multiple External References in Transfom
Posted by Stephen Cook at 11/18/2003 10:56:19 AM
Having worked through the problems around enabling the document function using an XmlUrlResolver I started work on building a useful class to hide the intricacies. Trying to generalise the process I've hit a snag. How do I resolve multiple external references? The transform method on a styl...more >>

Newbie need help
Posted by Kate Luu at 11/17/2003 9:25:42 PM
<Person> <LastName>anyLastName<LastName/> <FirstName>anyFirstName<FirstName/> <Person/> <Person> <LastName>anyLastName<LastName/> <FirstName>anyFirstName<FirstName/> <Person/> <Person> <LastName>anyLastName<LastName/> <FirstName>anyFirstName<FirstName/> <Person/> ...more >>

Instantiating XSD
Posted by SammySAm at 11/17/2003 9:11:35 PM
I have a set of XSD's that I have to instantiate at run time and pass some values in C++.Net. How can I acheive it? Please advice. Best, Sam...more >>

C#: How to deserialize an object to a string
Posted by Mullin Yu at 11/17/2003 8:34:49 PM
I want to know how can i deserialize an object to a string, instead of a file as below:ShoppingList myList = new ShoppingList(); myList.AddItem( new Item( "eggs",1.49 ) ); myList.AddItem( new Item( "ground beef",3.69 ) ); myList.AddItem( new Item( "bread",0.89 ) ); // Serialization XmlSerial...more >>

Create a schema library and use import/include with XSD.exe
Posted by Davide Bedin at 11/17/2003 6:13:35 PM
I have a "library" schema with the simple and complex types I commonly use in other schemas and then several other schemas, maybe created by other developers, that import/include the library schema. And then other schemas can extend it..... The classes created by XSD really help to make the de...more >>

Validating xCBL documents with .NET
Posted by XML Schema Validation at 11/17/2003 5:07:07 PM
I am creating a .NET application that will be receiving XML purchase order documents in xCBL 2.x, xCBL 3.0 and xCBL 3.5 format. I'm trying to figure out how to validate these XML docs against the appropriate schemas in .NET. Most of the xCBL documents will be defined by the SOX schema. ...more >>

XMLValidatingReader - How to disable range checking
Posted by MT at 11/17/2003 4:07:02 PM
Hi, I am currently validating an XML file against a Schema using XMLValidatingReader. The schema actually contains ranges for particular elements and I have been using it to detect range errors before it gets to my program. The way the rangechecking works is that every element that needs rang...more >>

How to say it in XSD? (xs:list, xs:enumeration, ...)
Posted by Max at 11/17/2003 3:21:28 PM
Suppose I have a simple type which is enumeration <xs:simpleType name="fontStyle"> <xs:restriction base="xs:string"> <xs:enumeration value="bold" /> <xs:enumeration value="italic" /> <xs:enumeration value="underlined" /> <xs:enumeration value="strikeout" /...more >>

XML as Ini file
Posted by Guinness Mann at 11/17/2003 3:07:55 PM
Be gentle. I need the equivalent of an ini file or registry key in my program. Both are denigrated. So is using the app.config file to store run-time configuration values. Ok, fine. I'm thinking that the general solution (C#) is to read in the configuration file with XmlDocument and...more >>

Problem with RSS feed
Posted by Rajiv Das at 11/17/2003 1:54:02 PM
Hi, I am trying to incorporate Really Simple Syndicate (RSS) news into my asp (not asp.net) based website. Since RSS is basically XML, I am trying to open the xml file and parse it. On Asp.net the following code works seamlessly. I am running IIS 5.1 on Win Xp Sp1. -------------------------...more >>

Convert string into XML format
Posted by Alessandro at 11/17/2003 12:44:11 PM
Hi ! I have a big problem, i'm using XMLdocument to add elements to a XML file. Elements are like this: <name>Paolo</name> <comment>this is <a comment></comment> <description>In italian "is" is = è !</description> the problem is that i want to encode text in name,comment and description. ...more >>

XML XPath question. Simple XML File
Posted by dkode NO[at]SPAM cfl.rr.com at 11/17/2003 12:02:27 PM
Ok, Here is my XML File, it's pretty simple: <?xml version="1.0" encoding="utf-8" ?> <Dispositions> <Group Name="Unused"> <Disp>NA</Disp> <Disp>TCB</Disp> <Disp>WPC</Disp> </Group> <Group Name="Refusals"> <Disp>PM</Disp> <Disp>REF</Disp> <Disp>SVN</Disp> <Disp>SFV</D...more >>

Is there a way to put html code in title attribute in xsl? thanks!
Posted by david at 11/16/2003 1:43:30 PM
I need put some html code into title attribute of A tag, so that user could see html when they move mouse over the link, I think this isn't a standard use, but it does work. The problem is how can I prevent the xsl transfer the html when it does the transformation. I would like something like <A...more >>


DevelopmentNow Blog