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 > february 2004 > threads for february 1 - 7, 2004

Filter by week: 1 2 3 4

who controls the encoding when transforming xml?
Posted by Jiho Han at 2/6/2004 4:08:08 PM
I do a transform of an xml document into another xml using XslTransform. In my xsl file, I specify using <xsl:output encoding="utf-8"/>. However, when my transform is done, the resulting xml is in utf-16. What gives? Anyone? ...more >>


Embed XSD in Assembly
Posted by Eric Barr at 2/6/2004 3:09:08 PM
I've found myself using XSD files for my datasets. I'm loading them up from disk right now. I was hoping there was a way to embed the file in the assembly, so I could have access to it without the disk read. I know I could build a kludge of a string builder function ...I was looking for a w...more >>

Securing data
Posted by James at 2/6/2004 1:51:05 PM
What's the best way of securing online databases and web services? At present I am using a database password, which of course is not hard-coded into the web service, but this means re-submitting it with every function call from my windows client. Any alternatives?...more >>

Render XML data island to HTML?
Posted by John Smith at 2/6/2004 12:45:17 PM
I have an XML data island in my aspx web page. The XML includes a link (processing instruction) to an XSL stylesheet. Is there any way on this page to view the HTML, that results from the xsl transformation, as the contents of, say, a div? I know I can do it if I display only the XML in IE, but I...more >>

Better xsd.exe out there?
Posted by Jiho Han at 2/6/2004 9:38:01 AM
xsd.exe is great for generating typed datasets and classes(not so good) but are there better ones out there for .net? Currently xsd.exe seems to be limited in some ways and really can't get around working the resulting classes generated by it. Jiho ...more >>

best place to put .xsd for deployment?
Posted by Jiho Han at 2/5/2004 6:36:34 PM
I have .asmx that uses .xsd schema to validate an incoming xml string and spits out transformations. Basically I am wondering where to put the .xsd schema and how to get to it at run-time. I tried vReader.Schemas.Add(null, "test.xsd"); and it reports that it could not find C:\WINDOWS\syste...more >>

XSLT not closing XHTML tags question
Posted by Grant Harmeyer at 2/5/2004 4:57:57 PM
I have an XSL file that is being applied to an RSS feed, and it works great except for 2 things: 1.) XSL doesn't close the <img> tag for xhtml even though I have it being closed in the XSL file (I've tried <img /> and <img></img>). This blows my xhtml compatibility. 2.) Also, the RSS feed has...more >>

simple .net xml serialization not working
Posted by Jiho Han at 2/5/2004 10:25:15 AM
I have a type in a schema: <xs:complexType name="SimpleExt"> <xs:simpleContent> <xs:extension base="xs:int"> <xs:attribute name="name" type="xs:string" /> </xs:extension> </xs:simpleContent> </xs:complexType> which I run xsd.exe /c on. It creates the following class: ...more >>



DataSet & XML format
Posted by .Net_Newbie at 2/5/2004 9:03:31 AM
Hello, gurus I have a problem about format XML I use ms data access building block to get a data set from stored procedure. the dataset's save xml give me data with the elements. Is there any better way to format what I want ,says some attributes & some elements ?? Is it easy ?? or I...more >>

XPATH generation for schema
Posted by bart.torbert NO[at]SPAM ihsenergy.com at 2/5/2004 7:14:31 AM
I am using XMLSPY to create various XML Schemas. In text documents we have the XPATH mapped to various of our databases. Here is the problem----- How do I verify that I don't have any typos in the documentation? I was wondering if there were any tools that would generate all possible XPATH...more >>

Problems validating an xml file without specifying the default namespace.
Posted by adam.child NO[at]SPAM oxon.blackwellpublishing.com at 2/5/2004 2:55:54 AM
Hi All, I'm trying to validate an xml document. I'm having trouble setting the default namespace of the xml document. If I hard encode the namespace in the xml file then everything works fine. But I can't do this because it breaks our old tools which validate the xml to a dtd (error saying th...more >>

distinct values
Posted by Taryon at 2/4/2004 9:24:51 PM
Hi all! i have an xml dataset with places and monuments. several monuments for one place than the place appears several times. how can i can read the dataset like DISTINCT ROWS? or how can i make this with a dataview? thx in advance ...more >>

Transforming XML to HTML using XSL in .NET
Posted by sergio NO[at]SPAM winapp.com.au at 2/4/2004 8:24:11 PM
Hi all, I need to transform an xml document, using xsl to a HTML output. I can do this successfully using the XslTransform class as below: Dim oTrans As New XslTransform oTrans.Load(sXSLPath) oTrans.Transform(sXMLPath, "c:\trans.htm") However, I need to transf...more >>

Pointing to the exact node
Posted by Praveen Naregal at 2/4/2004 12:58:26 PM
Hi all, I have a xml document like this. <table> <username>xyz</username> <password>abc</password> </table> <table> <username>pqr</username> <password>mnp</password> </table> How can I point to node username where user is "pqr"? Subsequently load all the childnoes in a nodelist. A b...more >>

Serialize xml into string variable
Posted by Tim Faircloth at 2/4/2004 9:16:05 AM
When you serialize an object into xml is there a way to write this information into a string variable instead of a file....more >>

Write xml to a string
Posted by Tim Faircloth at 2/4/2004 7:01:34 AM
how can you create an xml document and put it in a string variable instead of writing it to a file?...more >>

XmlNode
Posted by Michael Hutchinson at 2/3/2004 10:12:00 PM
When an XmlNode method returns an XmlNode, such as a child, is this generated on-the-fly or is it the actual component of the internal tree structure? If the parent is moved in the tree, will the pointer remain valid? I have looked at as much of the structure as I can using .NET Reflector an...more >>

Best Practice - XML processing??
Posted by Rich Wallace at 2/3/2004 7:05:57 PM
Hey all, I have an XML doc that I read into a SQL Server database from an integration feed.... ----------------XML snippet ---------------- <?xml version="1.0" encoding="us-ascii"?> <!--Product data from JDEdwards--> <Root> <Root RvcDate="2004-02-03" RcvTime="14.16.03.795135"> ...more >>

xml
Posted by adam davies at 2/3/2004 4:46:05 PM
I am using C#.net and SQL Server I have developed an xml schema. I would like to retrieve fields from my table tblDetails stored in the SQL DB and append the XML file. <RecordNum></RecordNum><CarNum></CarNum><Date></Date> On a different form i would like to open the XML file again and this...more >>

Properties and XSL Extensions
Posted by msnews.microsoft.com at 2/3/2004 2:01:45 PM
How do I set a property to an xsl extension object? Dim oExt As XSLExt = New XSLExt()Xml1.TransformArgumentList = New Xsl.XsltArgumentList()Xml1.TransformArgumentList.AddExtensionObject("urn:ext ", oExt) Getting: <xsl:value-of select="ext:get_myProp()" /> Setting: ?? ---- clas...more >>

extracting distinct attributes from a document
Posted by Iain at 2/3/2004 1:56:05 PM
I've an xml document that looks a bit like this <Vendors> <Vendor Stationery="Fred" /> <Vendor Stationery="bert" /> <Vendor Stationery="bert" /> </Vendors> I want to extract a list of the distinct values of Stationery. I've found some things on the web that suggest XPath statements to...more >>

xs:choice
Posted by Oleg Ogurok at 2/3/2004 11:53:47 AM
Hi all, I have a complex type defined as follows: <xs:complexType name="SchedulingMethodType"> <xs:choice maxOccurs="1"> <xs:element name="Interval" type="xs:duration" /> <xs:element name="DailyAt" type="xs:duration" /> </xs:choice> </xs:complexType> When I use this type i...more >>

xsd to xml
Posted by Ash Hart at 2/3/2004 4:06:07 AM
Hi Given an xsd,Could it be possible through some .Net api to generate an xm with mock up data as say xml spy does Regards Ash Hart...more >>

create proxy client class or web service method without using wsdl
Posted by raymond at 2/3/2004 1:05:30 AM
Hi, Is it possible to create a proxy client class or a web service method by VS.NET without using wsdl? My stupid client is using a xml schema (.xsd) to describe all their web service methods (and my webmethods) by Java (Apache toolkit) instead of using WSDL. What should I do? Thanks a lot!...more >>

Problem with recursive XSL templates
Posted by Paul Guz at 2/2/2004 10:58:39 AM
I've discovered a quirk of .Net System.Xml.Xsl.XSLTransfrom that doesn't seem to exist in the MSXML2 transformation. When calling a recursive template for the first time, don't pass a parameter value using a variable with the same name as the parameter. This seems to cause the original value ...more >>

Web service XMLSerializer WSDL parameter descriptions
Posted by PMCG at 2/2/2004 9:51:07 AM
Hi Is it possible to decorate web service parameters with attributes that can add documentation elements to the complex type for a web method in WSDL, something similar to what the WebMethodAttribute provides for the method itself. For something lik [XmlRootAttribute("p") public sealed class Po...more >>

Most efficient method of searching large xml document
Posted by Jim Kitterman at 2/2/2004 9:01:07 AM
I am looking for the most efficient way of searching a large xml document (> 14mg). If I could get some pointers in the right direction. I am using VB.NET. It is readonly....more >>

Automagically create database schema from XML dataset
Posted by Steven (dotnet newbie) at 2/2/2004 7:56:09 AM
Hello. I am trying to create a database from an XML file. I am able to create a dataset from the XML doc, but how can I create a database schema from the dataset and populate the database? Or is this even possible using VS.NET 2003? Part of the XML file follows. Thanks for any help. Steve...more >>

xsd:any help needed
Posted by Robert Rolls at 2/1/2004 2:16:22 PM
I've got the following really simple schema : <?xml version="1.0" ?> <xs:schema targetNamespace="urn:503A2B4E-B364-47a4-AE5C-16E727275A70" xmlns:mstns="urn:503A2B4E-B364-47a4-AE5C-16E727275A70" xmlns="urn:503A2B4E-B364-47a4-AE5C-16E727275A70" xmlns:xs="http://www.w3.org/2001/XMLSc...more >>

Bug in XslTransform within .NET framework 1.1
Posted by rodger.mcnab NO[at]SPAM brookers.co.nz at 2/1/2004 2:05:44 PM
While parsing xpath expressions within an XSLT document the .NET XslTransform class seems to delete the first "/" after a "]" within an expression containing a "|". This problem can be demonstrated by the following short C# program. The program throws an exception saying that "a[1]c" is an inval...more >>

Web Service Error
Posted by James at 2/1/2004 5:01:07 AM
I'm trying to get a web service (with C#) to access a remote database, and provide a connection between the data (MS Access .mdb database) and a Windows client. At present I am running it all on localhost. However, I receive the error: System.Web.Services.Protocols.SoapException: Server was unabl...more >>


DevelopmentNow Blog