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 > july 2006 > threads for july 22 - 28, 2006

Filter by week: 1 2 3 4 5

Replace Empty Node
Posted by Todd Price at 7/28/2006 3:31:02 PM
I'm trying to use XPath to get a handle on one specific node so that I can replace it with an xml fragment I've loaded from another file. So if I have this XML: <issue> <id>1</id> <date>7/28/2006</date> <states/> </issue> If "myDoc" is the preceding XML loaded into an XmlDocu...more >>


Validate against XML doc already in memory
Posted by MikeL at 7/28/2006 1:41:10 PM
Hello. I have an XMLDoc object that loaded XML using the LoadXML method. I have a schema in a XmlSchemaCollection object. I want to validate the XML document in the XMLDoc object. All the resources that I've found use the XMLTextReader object, but I am not reading from disk. How do I...more >>

Making a XmlElement Order property on .NET 1.1
Posted by jhowey at 7/28/2006 9:13:34 AM
Hi, What would be the best way to create an Order property for the XmlElementAttribute like in .NET 2.0, so my XmlSerializer will serialize elements in the order I desire? So far, I've made a new custom attribute class called Order which is applied to the XmlElement in class form, but now I...more >>

String to XML
Posted by Java Apache at 7/27/2006 6:39:44 PM
Hi All, I am pretty to new to .NET/C# so go easy (sorry for X-Post, but I am not sure my other post reached the C# list!)! I am developing a Web Service call to a Java Web Service and it is all working fine - it is returning me back a String value which in all reality is an XML file (the...more >>

link to other page from xsl
Posted by Wang Xiaoning at 7/27/2006 2:37:23 PM
Hi, i have the following xsl file ---------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="Fir...more >>

xsd:unique - validate attriubte value for whole
Posted by Miguel Isidoro at 7/27/2006 8:19:03 AM
Hi all, I am trying to include a xsd:unique element in my schema to make an attribute of an element unique at the whole document level. Consider the following xml fragment: <Form> <Question> <Response id="response1"> </Response> <Response id="response1"> </...more >>

Request/Response XML to a remote server without using IIS
Posted by William at 7/26/2006 4:00:59 PM
I have a need to take an xml file generated from a mainframe and post it to a remote server (ex: http//xml.company.com/order.cgi) which, in turn, will return an xml response. I have no idea how to do this without using IIS (the application is written in C#). Can someone point me in the right d...more >>

How does XmlSchemaValidationFlags.ProcessSchemaLocation actually work?
Posted by dlutz at 7/26/2006 2:54:57 PM
Hello to all -- I am familiar with Xml in general and NET 1.1 Xml, but I am new to the ..NET 2.0 changes in System.Xml. I am trying to validate an XML document that is based on a schema that imports several other schemas. I am using VS2005 and .NET 2.0 on Windows 2003 Server w...more >>



How to create nested nodes in XML in C#
Posted by Ramya A at 7/26/2006 9:23:40 AM
Hi, I have to create an XML in the following syntax: <RESPONSE> <QueueItems> <Node1>..... <Node2>..... </QueueItems> <QueueItems> ... </QueueItems> </RESPONSE> Iam building this through a SqlDataReader object. My problem is I ca...more >>

What is the quickest way to get an xml based dataset to add entries to SQL Server?
Posted by MurdockSE at 7/26/2006 6:54:18 AM
Because there is no 'datareader' involved, what is the most efficient way to get an XML based dataset to be added to an SQL server dataset? I would hate to have to create a new SQL connection and iterate through making "executenonquery" for each row in the dataset. That seems horribly in-efficie...more >>

How to generate xsd file using <xsd: and not <xs:
Posted by andy gilman at 7/25/2006 3:44:01 PM
When I generate an xsd *schema* I get something like : <?xml version="1.0" encoding="utf-16"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="AccountsReceivable"> .... but I want to have the following, and don't know how to achieve it <?xml version="1.0" en...more >>

Embarrasingly easy question
Posted by Dan Kelley at 7/25/2006 1:48:03 AM
I need to process a very simple xml document, but as it contains a namespace I am finding this very difficult. The xml is structured as follows: <results xmlns="http://fictional.namespace.com/md"> <result status="true" /> <result status="true" /> <result status="false" error="er...more >>

XML Serialization
Posted by lazygenius at 7/25/2006 12:00:00 AM
I have a class which I am using XML Serialization with, something like: public class MyObj { [XmlAttributeAttribute(DataType="string", AttributeName="Text")] public string text; [XmlAttributeAttribute(DataType="boolean", AttributeName="Allow")] public bool allow; } All works...more >>

About xml:space="preserve"
Posted by Lloyd Dupont at 7/24/2006 11:55:39 PM
I am "defining" an XML schema. In fact I'm not really writing any schema but I am writing an XML writer and reader for my data. It's all custom XML and I would like it to be XML tool friendly. I will have an element, lets call it <text/> which will be in the document in great quantity and i...more >>

Why can I not XPath to this element in a schema
Posted by Jethro at 7/24/2006 3:29:25 PM
I've tried to find the simplest demonstration of my issue. I have source XML that looks like this (not a real XSD schema, but it doesn't matter at this point): (in var xmlStr:) <xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema">abab</xsd:element> Essentially, it's just an xml node ...more >>

Qu
Posted by Miguel Isidoro at 7/24/2006 9:02:01 AM
I generated a .cs class from a .xsd schema using the xsd.exe tool from Visual Studio 2005 and noticed that is generating duplicate class declarations. This happens because of my schema structure. I have an element, <QuestionList>, that is a set of <Question> elements that is defined at the roo...more >>

inserting a text into xml file
Posted by C# to XML at 7/24/2006 12:02:01 AM
Hi friends, I am new to csharp and XML : fp=File.OpenText(server.mappath(".\\upload\\")+"test.txt"); string info=fp.readtoend(); string[] arinfo =new string[4]; char splitter = {'|','^'}; arinfo =info.split(splitter); for(int x=0;x<arinfo.length;x++) { response.wr...more >>

xs:all, xs:choice, xs:sequence, none seem to fit
Posted by cmay at 7/23/2006 2:48:55 PM
I am beginning to wonder if it is not possible to get this working. I am trying to do: <root> <a/> <b/> <c/> </root> With the following conditions: 1) a,b,c can be in any order 2) a and b can only be used 1 time 3) c can be used 0 to unbounded times. Trying to do this ...more >>

Need to extract XML or SGML entities from a Unicode text
Posted by Frantic at 7/22/2006 12:43:18 PM
I'm working on a list of japaneese entities that contain the entity, the unicode hexadecimal code and the xml/sgml entity used for that entity. A unicode document is read into the program, then the program sorts out every doublet and the hexadecimal unicode code is extracted, but I dont know a w...more >>


DevelopmentNow Blog