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

Filter by week: 1 2 3 4 5

need help to figure out what to do with this XML
Posted by Bill Nguyen at 7/31/2006 4:15:12 PM
I ran into errors trying to open an xml file in IE with content as below. I need to access this file using ReadXML in .NET but do not where to start. Can you please tell me what XML files I may need to have access to (DTD, for example) Thanks a million! Bill ------------------- <?xml...more >>

Writing xmlns using WriteAttributeString
Posted by dhurwitz at 7/31/2006 6:17:02 AM
I am trying to create an XML spreadsheet for use with Excel. I first saved a simple spreadsheet as an XML file, and now I am trying to recreate that file in code, using .NET 2.0. The beginning of the XML file should look like the following: <?xml version="1.0"?> <?mso-application progid...more >>

Classes generated by XSD.exe
Posted by David Jessee at 7/31/2006 4:33:01 AM
I have a schema that I've used to generate a class structure vis the xsd.exe utility. I'm having to manually validate the resultant XML since the resultant document is not necessarily compliant with the structure defined by the original XSD. Here's what I'm wondering, though..... I have a...more >>

XML Serialization, collection with parental links
Posted by Oleg.Ogurok NO[at]SPAM gmail.com at 7/30/2006 1:43:08 PM
Hi there, I'm writing a custom collection, which will be referened within a class. Each item within the collection needs to have a link to the parent container class, e.g. Item x; Container c = x.ParentContainer; I basically got the idea from ControlCollection class, where each control ...more >>

Need Help with INI app
Posted by Bob Heitzman at 7/30/2006 1:10:01 PM
I need to store data in, update, and read data from an XML file. An INI structure worked fine: [Zone 01] a= 123 b= xyz c= etc [Zone 02] ..... I've been look around the net and cannot find a simple comprehesive example on how to convert this to VB.Net and System.Xml. Biggest proble...more >>

XslCompiledTransform load compile error
Posted by andrewcw at 7/29/2006 8:53:01 PM
I am moving some code forward from .NET 1.1. I was able to load the XSL file and perform the transform. The MSDN documentation looks like it should be easy. But I get a compile error. Ideas ? How can I share my XSLT ( there are 2 helper stylesheets, and I check that they are also available...more >>

Deserialize object from one line of XML
Posted by Thomas S at 7/29/2006 5:04:50 PM
Any suggestions on how to deserialize an object from one line of XML? I'm trying to deserialize multiple objects from one XML document, each object on one line of the file. The serialization is working, but when I try to read the line back into a MemoryStream, and then to deserialize from ...more >>

XML serialization via XmlWriter creates 3 weird bytes
Posted by Thomas S at 7/29/2006 4:51:52 PM
I want to serialize an object via XmlWriter, but when I serialize to that, 3 strange bytes are added to the beginning of the output (0xEF, 0xBB, and 0xBF) all of which are in the ASCII range (ASCII 239, 187, 191) public static void writeLogItem(LogItem ilog, string lfile) { ...more >>



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

New to xml - what's wrong with my transform
Posted by -D- at 7/21/2006 4:25:56 PM
I'm trying to write my xsl to display an unordered list fromt the xml file where location is equal to top: <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="~/index.aspx" title="Home" location="top"> <siteMapNode url="~/about_us/index.aspx" title="About ...more >>

Xpath equivalent to select in for sql server??
Posted by Shay1975 at 7/20/2006 10:51:58 PM
What I am trying to do is filter on some attributes and I could have a list of values, so instead of doing where attribute = value or attribute = value, I am wondering if there is something equivalent to the IN statement in sql, so attribute in (value1, value2) etc.. Thanks ...more >>

XslCompiledTransform closing input tag
Posted by S. David Kyle at 7/20/2006 3:34:01 PM
I am having a weird issue when I generate an input Html tag from a Xsl transformation. When the trasform is executed on the xsl below, the <input> tag has the closing slash removed in the first case and the closing tag removed in the second case. As a side note, if I change <input> to <i...more >>

XslTransform not excluding default namespace despite exclude-result-prefixes attribute?
Posted by Samuel R. Neff at 7/20/2006 9:56:23 AM
I'm writing an xslt in vs.net 2003 and in order to get intellisense on the html content I added the default namespace declaration xmlns="http://schemas.microsoft.com/intellisense/ie5". However, even though I also have exclude-result-prefixes="#default" declared the default namespace is still ou...more >>

XSLT : Exclude one NODE in Template
Posted by Ganesh Muthuvelu at 7/20/2006 6:36:02 AM
Hello all, I want to exclude one node (element alone) but copy all of the other elements. This is the XSLT I have. I want to exclude the "alias" element alone but it does not work.. Can somebody help? ************ <?xml version="1.0" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http...more >>

XMLDesigner XSD DataSet Order with Relationships
Posted by Computer at 7/20/2006 2:26:21 AM
I brought an XSD into the XMLDesigner. The XSD had two related tables and it looked like this in .Net's XMLDesigner: Table 1 --------- BankItem (Bank Item) Person (Person) Acct String Balance Decimal Date ...more >>

XPath problem
Posted by Riki at 7/20/2006 12:00:00 AM
I'm stuck with an XPath query to produce a TreeView. From the data below, I want to select all the score elements having an IdIn of 2018, ***including their ancestors***. With the result, I want to fill a TreeView control. This is my simplified data: <?xml version="1.0" encoding="utf-8"?...more >>

http://forums.microsoft.com/
Posted by Sergey Dubinet at 7/19/2006 11:07:11 AM
Some times ago Microsoft started http://forums.microsoft.com/ which serve more or less the same purpose as the microsoft.public news groups. The major difference between these forums and newsgroups from user's perspective is that forums are much more closely moderated. Microsoft puts a lo...more >>

Microsoft XML Diff/Patch -- how to output differences
Posted by Steve Hershoff at 7/18/2006 4:50:33 PM
Thanks to this newsgroup I've been pointed to Microsoft's XML Diff & Patch utilities. I've been reading about how I can use the tools to generate a diffgram between two XML documents, and how the XML Patch utility can (for example) bring document A in line with document B. Very cool. How...more >>

Simple XSLT Question?
Posted by Ganesh Muthuvelu at 7/18/2006 4:33:02 PM
Hello all, I have a XML as below: ****************** <BLOCK> <ROW1> <A>1</A> <B>2</B> </ROW1> <ROW2> <A>9</A> <B>3</B> <C>4</C> </ROW2> <ROW3> <ROW31> <A>5</A> <D>6</D> <E>7</E> </ROW31> </ROW3> </BLOCK> ****************** wit...more >>

XmlReader.Create returns none
Posted by raj at 7/18/2006 3:38:06 PM
i have this code which is upgraded to work with 2.0 and works great with framework 1.0 and 1.1 without the upgraded code. //2.0 code// public static XmlReader RtfToXml( string Rtf ) { if ( moForm == null ) moForm = new frmRTFtoXML(); string sDocBookXml = moForm.RtfToXml( Rtf ); ...more >>

XmlSchemaImport and XmlSchema.Write
Posted by doughboy at 7/18/2006 10:28:25 AM
I create a schema in memory and then I can write to a file fine. But as soon as I add an import element I get an error when it goes to write to the file. The error message is: The type System.Xml.Schema.XmlSchemaImport was not expected. Use the XmlInclude or SoapInclude attribute to specify ...more >>

Data types for XmlElement and XmlAttribute
Posted by Roy at 7/18/2006 6:24:01 AM
I have an XmlDocument loaded from an xml file. I have also an xsd schema file associated with it so that it will be in the XmlSchemaSet. How do I get the data type for the value of an XmlElement and XmlAttribute as described in the schema while I am accessing the nodes (attributes and elemen...more >>

suggested ways to manipulate XML files in .Net?
Posted by Steve Hershoff at 7/17/2006 3:26:19 PM
Hi everyone, I'm going to manipulate some XML files in my next project-- crawl through the tags, compare if file X has the same nodes as file Y, and if not, what the differences are and who's missing what. I'll also be comparing values between nodes in the two files, for when both documents d...more >>

Webservice for J2EE & .NET application
Posted by jaydev at 7/17/2006 3:09:06 PM
Hello, I want to create a header and footer control which will be used in both the java and .net application. We are planning to create a webservice for this in C#. I am familiar in creating a webservice , but not sure how to create something compatible for java team (J2EE). Java team needs t...more >>

Built-in ToXPathString()-type method
Posted by Keith Patrick at 7/17/2006 2:28:36 PM
Is there some built-in way to output a node's basic XPath without iterating upward through an XmlNode's parent hierarchy? I have a scenario where I need to tell the user there was an error with a particular node, but I want to express it as: "There was an error with node Root/Parent2/Child2@...more >>

how do you evalute a xpath query with xml tag like this <bac:BACne
Posted by dotnetnoob at 7/17/2006 9:58:03 AM
i got xml file that have <bac:BACnetDevices> and <bac:BACnetDevice> tag how do you make a xpath query with that type of tags this is the query that i come up with /Site/Networks/Network/bac:BACnetDevices/bac:BACnetDevice/@InstanceNumber but i got "undefined namespace prefix -'bac'" error...more >>

XmlDocument load question
Posted by supercodepoet NO[at]SPAM gmail.com at 7/17/2006 8:52:14 AM
I have cXml document I want to load to parse. The document has a DOCTYPE element that points to an external dtd via http. When the document loads it trys a web request which I am assuming is to get the dtd. We have a proxy and this throws and exception when trying to load the document becuase ...more >>

<<<WebParts>>>
Posted by Miguel Puime at 7/15/2006 2:18:09 PM
Hola a todos, Una pregunta, que son y para que sirven los WebParts??, donde puede ver algún ejemplo.... Gracias de antemano. Un saludo. Miguel Puime. ...more >>

Creating multiple documents
Posted by sham at 7/14/2006 6:03:34 PM
Hi to all, I am using XALAN processor and xslt 2.0 and I have managed to take an XML file and split it into multiple documents. This is done via the Oxygen editor. I now need to write a C# program that will take the XML and XSLT file as inputs and transform the XML file. Any clues on ...more >>

XmlSchema Validation Error
Posted by Igor Koretsky at 7/13/2006 11:55:01 AM
Hi. Using VB.Net System.Xml 1.0 SchemaCollection Object I am getting an error when trying to add ‘Schema A’ to the SchemaCollection. Here are my schema files.. Schema A <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns="http://www.twiststandards.org/3.0/ElectronicBilling...more >>

Xml validation - Should fail but does not
Posted by Raghu at 7/13/2006 9:45:27 AM
I have following schema: <?xml version="1.0" encoding="utf-8"?> <xs:schema elementFormDefault="qualified" targetNamespace="http://mycompany.services.customer2/types/restricted" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://mycompany.services.customer2/types/re...more >>

Load chunk of xmldata in datagrid
Posted by ameen.abdullah NO[at]SPAM gmail.com at 7/13/2006 7:53:38 AM
Hi Guys, I have a xml file, from which i want a node to be populated in a datagrid. whats the easiest way to do this?? Here is a sample of xml file: <?xml version="1.0" ?> <script version="1.1"> <jobs> <job name="Job1"/> <job name="Job2"/> </jobs> <tables> <table n...more >>


DevelopmentNow Blog