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 8 - 14, 2005

Filter by week: 1 2 3 4 5

limiting access to files with asp.net
Posted by Daniel at 10/14/2005 4:57:07 PM
limiting access to files with asp.net is there any way i can make a file only accessible to certain users of my website? my files are to large to copy to a temp directory and they are of many types, .exe .xsl .xml etc. i want an href to each file but only allow users who have the right login-i...more >>

1 space node returns as empty
Posted by David Thielen at 10/14/2005 4:40:02 PM
Hi; This code is in J# so it looks a little weird but you could change it to C# in a couple of seconds. The problem here is a single space node returns as an empty node: public static void main(String[] args) throws Exception { XmlDocument doc = new XmlDocument(); doc.set_Pres...more >>

One or more rows contain values violating non-null, unique, or foreign-key constraints
Posted by Jeremy Chapman at 10/14/2005 2:08:24 PM
Populating a typed dataset from xml document: I created an xml schema (attached below), generated a typed dataset from it, and then programatically I tried to populate the typed dataset by calling its ReadXml method. I keep getting a constraint exception. I have validated that my xml matc...more >>

XSD -- ref
Posted by Krishnan at 10/14/2005 11:00:52 AM
Hi, Am writing an XSD where I have a complex type element. I would like to put restrictions on some of the attributes of the contained element. For e.g., "Options" element can contain 0 or more "Option" elements which have their "type" attribute set to "N". Will I be able to use xs:selector for ...more >>

Invalid character in XML
Posted by Marc Jennings at 10/14/2005 9:49:04 AM
Hi there, I have a 600MB xml file that I am trying to pull a small amount of data from, using an XMLTextReader in C#. All works well, until I get an exception thrown in linw 4,277,905 because of an illegal character for the encoding type. "There is an invalid character in the given encod...more >>

XmlDocument with URL
Posted by David Arden Stevensonn at 10/14/2005 1:29:29 AM
My goal is to load an xml document from a remote url, make some changes to it, and then display it in a webpage. Say my codebehind looks like this private void Page_Load(Object sender, EventArgs e) { XmlTextWriter writer = new XmlTextWriter(Response.OutputStream, Encoding.UTF...more >>

xpath when quotes are in node
Posted by David Thielen at 10/13/2005 9:24:34 PM
I have the following xml: <root> <name>abc "123" xyz</name> </root> When I get an XPathNavigator to root and then call navigator.Evaluate("name = \"abc \\\"123\\\" xyz"), I get an XPathException. I also tried \\" and " - all throw an exception. How am I supposed to handle this? -- ...more >>

New ti xml database
Posted by Jim Bob at 10/13/2005 3:16:05 PM
I need to use a file that is in xml format in vb.net. I'm new here. I have MSSql 2000 and vb.net 2003. I have accessed SQL files before. What is best. 1. Access the XML file directly? 2. Somehow import it into MSSQL 2000 3. Is there a better way. The file is publically availa...more >>



Index of using XPATH?
Posted by Ken Getz at 10/13/2005 9:40:39 AM
Hi. I have an xml file in this format: <strings> <string>Item1</string> <string>Item2</string> <string>Item3</string> <string>Item4</string> </string> I'm looking for the best way to search for a specific string, and return the index of its node within the strings element. That ...more >>

How to use Xpath for this XML
Posted by Rote Rote at 10/13/2005 12:34:12 AM
I would like to query this xml below:- If i use :- nodeList = root.SelectNodes("/Voter/Question/Answer/Answer/text()") I get to see "Male" but only if i remove the root tags:- <NSurveyVoter xmlns="http://www.nsurvey.org/NSurveyVoter.xsd"> </NSurveyVoter> But what i want to get to see as t...more >>

XPathNavigator.SelectSingleNode(xpath) on space returns 0 length s
Posted by David Thielen at 10/12/2005 8:21:01 PM
Hi; I have an element: <space> </space> When I call SelectSingleNode() on it, the InnerXml is a 0 length String, not a String containing 1 space. Any ideas? -- thanks - dave...more >>

xml utf-8 String to XPathDocument
Posted by David Thielen at 10/12/2005 7:19:01 PM
Hi; I have a string that is an xml file. It starts with <?xml encoding='utf-8'... and it has the utf-8 2-byte sequences as 2 chars. How do I get that into an XPathDocument where the 2-char sequences are not treated as 2 characters? -- thanks - dave...more >>

XPath Query into Datagrid
Posted by manmit.walia NO[at]SPAM gmail.com at 10/12/2005 6:41:58 PM
Hello, I have a XML File that looks something like this. <ItemList> <ProductType>Google</ProductType> <EmployeeName>John,X,Doe,john.doe@domain.com</EmployeeName> <EmployeeName>Jane,X,Doe,jane.doe@domain.com</EmployeeName> <EmployeeName>Larry,X,Doe,larry.doe@domain.com</EmployeeName> </ItemLis...more >>

XPathNavigator.SelectSingleNode(xpath == 3)
Posted by David Thielen at 10/12/2005 6:36:03 PM
Hi; How do I handle the following: XPathNavigator nav = ...; String str = nav.SelectSingleNode("floats/@ok").Value; // works fine - returns 1.3 nav.SelectSingleNode("floats/@ok == 1.3"); // throws an exception I expected the second to return a Boolean of true or a string of "true()". ...more >>

Compare DTD,XSD, SCHEMATRON and RELAX NG.
Posted by Goodmannewz at 10/12/2005 1:13:03 PM
I am a beginner in XML schema. Could you please give me some ideas to compare the feature of DTD, XSD, SCHEMATRON RELAX NG in validate aspect? And could you please recommend some good material in this aspect? Thanks a lot!...more >>

attributes and simple types- the simple made difficult
Posted by rossu at 10/12/2005 12:57:06 PM
I want to do something like <distance units="inches">15.0</distance> for validation reasons, I want to put a facet on the value so it can't be negative. To include an attribute, the schema editor forces me to have a complex type. How then do I apply the facet? The .net schema editor wants ...more >>

XMLValidatingReader desperate...
Posted by sorinuc NO[at]SPAM hotmail.com at 10/12/2005 10:41:04 AM
Hi all, I'm quite desperate after so much time of frustration trying to validate an xml doc with a schema using XmlValidatingReader. I know I miss something but I cannot solve this for the life of me: My xsd is: <xs:schema targetNamespace="http://myUrl.com" elementFormDefault="qualified"...more >>

Replacing a node
Posted by Ed A at 10/12/2005 9:17:02 AM
Hi all: Is there a way to replace a node and it's children? I tried using the ReplaceChild method but that seems to only replace the first child only!! Thanks Ed;;...more >>

Namespace question
Posted by Kent Boogaart at 10/12/2005 12:00:00 AM
Hi, One day I will fully understand XML namespaces and much happiness and partying will ensue. Until then, I must pick the brains of those in the know... If I have an XmlNode and I want to select a child node whose namespace I know, why can't I do something like this: XmlNode node = ....more >>

XPathNavigator.ValueAsBoolean - no exception
Posted by David Thielen at 10/11/2005 5:54:02 PM
Hi; How can I tell if I can call XPathNavigator.ValueAsBoolean safely - without throwing an exception. I want to take one course of action if the value can be interpreted as a boolean. But I din't want to do it using try/catch - I think having exceptions be thrown when the code is operat...more >>

XPathNavigator.getUniquePath()
Posted by David Thielen at 10/11/2005 5:51:03 PM
Hi; Is there a way from an XPathNavigator object to get an xpath string that will, when used in a Select(xpath) on the underlying base/root XPathNavigator return the same XPathNavigator? In other words, I initially create an XPathNavigator for my entire xml document. To get an XPathNavig...more >>

XmlValidatingReader and xs:import support
Posted by Nathan Alden at 10/11/2005 1:28:09 PM
Hi all. I have an XML schema that has a couple of <xs:import> tags that reference (using schemaLocation) schemas as embedded resources in a DLL. For example: <xs:import namespace=http://www.my.com/my.xsd schemaLocation="res://assembly/?MyAssembly,MyAssembly.my.xsd"/> I've attached a deri...more >>

How to send a null value for a float variable?
Posted by Robb Gilmore at 10/11/2005 9:20:03 AM
Hello, We have a C#.NET app which is calling a Java webservice. We use the wsdl file exportted from the java webservice to create our web-reference in Visual Studio. We are able to create the parameter classes and call the webservice just fine. Our problem is, within our .Net app, we h...more >>

xmlDocument.Save "&#10;" getting changed changed to "&amp;#10"
Posted by st NO[at]SPAM jpa.co.jp at 10/11/2005 2:27:28 AM
Hi, I'm using xmlDocument.Save(xmlTextWriter) to create an Excel-readable file. All works well, except where I've replaced the carriage return chars in the .innertext to XML-compliant "&#10"; It gets changed to "&amp;#10" and doesn't render new lines in the Excel sheet. Can anyone help? ...more >>

Namespacemanager adding default namespace
Posted by Vishy at 10/10/2005 10:24:02 AM
Hi I'm trying to read xml file with namespacemanager; it seems that it adds up a namespace if there is none; How can avoid this? so <ID>00589</ID> becomes <Id xmlns=\"x-schema:#Schema1\">00589</Id> Thanks Vishy ...more >>

XSD Question
Posted by Kent Boogaart at 10/10/2005 12:00:00 AM
Hello, I have a document structure similar to this: <root> <things> <thing id="thing1" type="type1"/> <thing id="thing2" type="type2"/> <thing id="thing3" type="type1"/> </things> </root> Each thing has an ID that must be unique (enforced by an <xsd:uni...more >>

Difference between .NET 1.1 Dataset.ReadXML and .NET2.0 BETA Dataset.ReadXML
Posted by Nikhilesh Mehendale at 10/10/2005 12:00:00 AM
I have written a web service in C#, .NET 1.1 which reads a XML file into a dataset. This is just a plain XML file. First I use the Dataset.ReadXmlScheme function and pass the XML file to it. Then I convert data type of one of the column to integer and then I use the Dataset.ReadXml function a...more >>

XSD Question
Posted by Kent Boogaart at 10/10/2005 12:00:00 AM
Hi, I was looking for an XSD-specific newsgroup but couldn't see one. Can someone point me in the right direction? If not, I'll post my question here anyways... Thanks, Kent ...more >>

I think they are the same - but Excel may not???
Posted by David Thielen at 10/9/2005 3:36:02 PM
Hi; This concerns Excel's SpreadsheetML format and how Excel writes it. Excel saves an xml file as follows: <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:dt="uuid:C...more >>

Is there an xml diff test function
Posted by David Thielen at 10/9/2005 2:39:03 PM
Hi; I have a bunch of unit tests that generate xml files (WordML and SpreadsheetML) and then compare those to the "correct" file. This works great except that the java code I use to generate the xml (dom4j) differs from XmlTextWriter in that dom4j places a space at the end of <name atr='val...more >>

Serializing object graph directly to XML document rather than to text
Posted by Bruno Jouhier at 10/9/2005 12:00:00 AM
Is there a way to serialize a graph of objects and get the output as an XML document, without first serializing to text and then parsing the text (I know how to do this but I find it really silly and inefficient). I googled around and from what I found, the answer is NO. Am I missing someth...more >>

XMLHttpRequest + XMLDOM
Posted by Trip at 10/8/2005 12:00:00 AM
Is possible to: a) save XMLHttpRequest object* (precisly: server response** which is in the form of xml) to the xml document(on the client side) by the help of JavaScript or b) directly load object*(his response**) into XMLDOM object(JacaScript or VBScript). thank you....more >>


DevelopmentNow Blog