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

Filter by week: 1 2 3 4 5

How do I get the <xsd:documentation>?
Posted by David Thielen at 6/30/2007 4:06:01 PM
Hi; It looks like this is in Annotations.Items but there can be multiple items - how do I know which is the <xsd:documentation>? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm ...more >>


Validating an XML file with an external schema
Posted by David Thielen at 6/30/2007 4:00:01 PM
Hi; If I have an xml file and a schema file and I want to validate that the xml file matches the schema - is this the best way? (This code works, I just want to make sure I am doing this the best way.) XmlReaderSettings settings = new XmlReaderSettings(); settings.ValidationType = Validat...more >>

How do I access a reference in XmlSchema?
Posted by David Thielen at 6/30/2007 3:58:00 PM
I have an xsd: <xsd:element name="comment" type="xsd:string"> <xsd:annotation> <xsd:documentation>hi there</xsd:documentation> </xsd:annotation> </xsd:element> <xsd:complexType name="PurchaseOrderType"> <xsd:sequence> <xsd:element name="shipTo" type="USAddress"/> <xsd:elem...more >>

Which is the root element
Posted by David Thielen at 6/30/2007 3:56:02 PM
Hi; I have an xsd that has: <xsd:element name="purchaseOrder" type="PurchaseOrderType"/> <xsd:element name="comment" type="xsd:string"/> I get this as an XmlSchema using: XmlSchema schema = XmlSchema.Read(new FileStream(datasource.SchemaUrl, FileMode.Open, FileAccess.Read, FileShare.Rea...more >>

How do I get the XmlSchema from an xml file
Posted by David Thielen at 6/30/2007 3:50:01 PM
Hi; If an xml file has this at the top: <?xml version="1.0"?> <purchaseOrder orderDate="1999-10-20" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="c:/test/po.xsd"> I need to get the XmlSchema for c:/test/po.xsd. I only need it for noNamespaceSchema...more >>

Access to SOAP Objects
Posted by doug at 6/29/2007 1:22:04 PM
I hadn't had a class yet and I had some MS help on this to set up, but I wrote a .Net WS that creates a proxy class response using SOAP. Works fine. And in kind of a good way, the IDE has hidden the SOAP implementation so from my end I'm just creating, passing back my XML proxy class. The ...more >>

How to modify a attribute's value of a specific node in an xml fil
Posted by Rakesh at 6/28/2007 10:20:00 PM
Hi, I have to modify the xml document which is present in the local disc when user changes the values in the form. I have to modify the attribute value of a specific node and then save the xml file. Please let me know how this can be done. Thanks: Rakesh...more >>

XmlSchemaException on XmlSchemaSet.Compile() with imported schema
Posted by iHadMyPersonalInfoIndexed NO[at]SPAM gmail.com at 6/28/2007 7:38:34 PM
I'm absolutely tearing my hair out on this one, and would appreciate any help anyone can provide. I need to validate incoming XML files against a local XSD which imports a remote XSD. When setting up the XmlReaderSettings, I am getting a XmlSchemaException on XmlSchemaSet.Compile(). I have strip...more >>



XML Validation against XSD
Posted by Ayan at 6/28/2007 2:45:09 AM
Hi all, I am trying to validate an XML against XSD and facing a problem with conditional check: The XML is as below: <root> <header></header> <addresses> <address type = "P" street = "Melbourne" province = "STA"/> <address type = "S" street = ...more >>

XML getting the namespace
Posted by maflatoun NO[at]SPAM gmail.com at 6/28/2007 1:14:44 AM
Hi, I'm working on a ASP.NET component with one requirement being to catch Web Service exceptions. I've managed to get it working using the following code XmlDocument doc = new XmlDocument(); doc.LoadXml(se.Detail.OuterXml); XmlNamespaceManager nsManager = new XmlNamespaceManager(doc.Name...more >>

Read XHTML into XML
Posted by Jose Antonio Reyes at 6/28/2007 1:04:12 AM
Hi all, I need to read/parse XHTML aspx pages and look for certain tokens and content. How can I use a XmlTextReader for this? If not, any other ideas? Thanks in advance, JA Reyes....more >>

Embedded XML datatsource for dependent ddl's
Posted by Chuck P at 6/27/2007 12:14:04 PM
I need to put some embedded xml within a web page. It has to be in the webpage. Is their a way I could use this xml as a datasource for an extended Ajax cascading dropdown and not have postbacks (preferred) or just for some cascading DDLs. dropdownlist one: CarManufactures dropdownl...more >>

Control Order of Deserialization Of An Object?
Posted by Alan Cohen at 6/26/2007 11:51:48 AM
I have an object which gets serialized to XML. Upon deserialization, I'd like to control the order in which attributes are deserialized. Any way to do this? Thanks!...more >>

XslCompiledTransform.Transform() method question
Posted by Jeff at 6/26/2007 8:45:01 AM
VS2005; .NET 2.0 I want to use the XslCompiledTransform.Transform() method for its stated purposes. However, I have an XmlDocument object already in memory and I can't figure out how to use that without first saving it to disk and then referencing that file in the Transform() method. ...more >>

Large XML file and some kind of indexing?
Posted by Andrew Brook at 6/25/2007 3:38:08 PM
Hi Everyone, I have a very large XML file (~1GB). I would like to essentially pre-navigate the entire structure using an XmlReader and somehow index the positions of important elements. I suppose I'd hoped that I could access the exact file position of an xml element, store that position...more >>

need help with XML parser
Posted by Bill Nguyen at 6/25/2007 3:23:07 PM
I can parse a simple XML file (the hard way) but do not know how to parse the XML file (DTD and sample XML below) using System.XML. YOur help is greatly appreciated. Bill <!-- DTN REFINED FUELS XML FUEL PRICE FORMAT 2--> <!ELEMENT PRICES (TransmissionHeader, FuelPriceData+)> <!ELEMENT...more >>

Newbie Xpath Question
Posted by Edgardo at 6/24/2007 8:00:00 PM
Hi everyone, i have a quesiton regarding XML/Xpath i have a XML document that has let say the following structure <cases> <case> <num>1<num> <detective> <name>John</name> <lastname>Smith</lastname> <detective> </case> <case> <num>2<...more >>

XML data into MDB file
Posted by Preeti at 6/22/2007 3:36:24 AM
Hi all I am a newbie in xml. I have a requirement where I have a predefined XML files and I want to add the data in these file to into Access mdb through my application The xml structure is fixed and I hav eto implement a button which on click submit the data to the mdb file without any f...more >>

How to determine encoding of XML file ?
Posted by Oleg Subachev at 6/22/2007 12:00:00 AM
I need to read XML file, transform it and then save in the same encoding. XmlDocument class naturally has no encoding-related members. How can I determine encoding of XML file ? Oleg Subachev ...more >>

Unable to translate Unicode character \u00E9 at index 5409 to specified code page.
Posted by Les Caudle at 6/20/2007 9:41:31 AM
I've got some C# 2.0 code that has been working for a year. using (XmlWriter w = XmlWriter.Create("out.xml" ,settings)) { // many lines of code to write to w w.WriteStartElement("contactTypeRef"); Suddently, I'm getting this 100% repeatable error: ************** Exception Text *******...more >>

Export DataTable to XML using XSL file
Posted by J055 at 6/19/2007 12:00:00 AM
Hi I'd like to get a populated datatable, create an in memory xml document (file shouldn't be more than a couple of meg), load an XSLT file, do a transform and stream it to a browser. What am I Missing please? MemoryStream strm = new MemoryStream(); XmlWriter writer = XmlWriter.Create(s...more >>

split massive xml file
Posted by Jeremy at 6/18/2007 9:47:08 AM
I have an xml file (sample below) that is massive. hundreds of megs maybe thousands. I need to split it up into multiple files so each file gets a copy of the header element and sub elements and 1 detail element. There will be 1 file created for each detail element. Any tips how to do this?...more >>

What is wrong with my XPathExpression?
Posted by darrel at 6/15/2007 4:14:48 PM
I have an XML file that looks like this: <Counties> <County> <District>2</District> <CountyName>Palm</CountyName> </County> <County> <District>3</District> <CountyName>McCarthy</CountyName> </County> </Counties> I am trying to use a XPat...more >>

Please help...writing to XML file
Posted by slinky at 6/14/2007 1:19:36 PM
I have looked in all my books and online and can't find a way to make this rather simple task work. Could someone please review the code and see what errors I've made? Thanks!!!!!! I have an aspx for with a textbox and a button. The goal is to simply have the user type a message, hit the but...more >>

Deserialization Problems Using XmlWriter vs. StringReader
Posted by at 6/14/2007 11:05:32 AM
I'm experiencing issues where XmlSerialier.Deserialize throws an exception when attempting to use a MemoryStream built with an XmlWriter vs. a standalone StringReader. It is attempting to deserialize a complex object. Here is what I have: 0. Environment: Visual Studio 2005, VB.Net. I won'...more >>

Cracked software fastest download
Posted by niceware niceware at 6/14/2007 8:21:10 AM
We provide cracked softwares, these software are all in english language and absolutely full cracked. They are best softwares and best price. The list is not full, any more need, please mail me: sosayoyo@hotmail.com Karnaugh.Minimizer.v1.5 (1CD,1.5M) Keil.Professional.for.C166.v6.06 (1CD,13M)...more >>

RemoveChild Question
Posted by kwimbie NO[at]SPAM yahoo.com at 6/13/2007 6:06:50 PM
looking for the correct code to remove the DEST_ID SUBSCR="[1]" node with RemoveChild <WIRE_DATA> <NEED_WIRE>V</NEED_WIRE> <DEST_COUNT>2</DEST_COUNT> <DEST_ID SUBSCR="[0]">TST</DEST_ID> <DEST_ID SUBSCR="[1]">TEST</DEST_ID> <INPUT_PROGRAM>TEST</INPUT_PROGRAM> <SENTBY_OPID>1234567...more >>

Dataset WriteXml Problem
Posted by clockemail NO[at]SPAM alltel.net at 6/13/2007 6:00:46 AM
Could somebody please point out my error in the following code. The dataset is returned by a stored procedure containing FOR XML AUTO, ELEMENTS, but the XML Document that is created contains &lt; and &gt; instead of < and >. I have tried everything that I can think of without any success, which ...more >>

XSD created in VS2005 not compatible with VS2003
Posted by Shaul Dar at 6/12/2007 2:13:58 AM
We are upgrading from VS2003 to 2005. We discovered that the XSD generated in 2005 (.Net 2.0) is not compatible with what was generated in 2003 (.Net 1.1), and this breaks our code, as we have serveral modules that read the XSD file and are sensitive to its structure. In particular, when you a...more >>

Object Serialization
Posted by KittyHawk at 6/7/2007 7:22:09 AM
How would I set up a class or classes to serialize to XML in the format below? I cannot figure out how to serialize the group of links as "id" attributes of the link element. <data> <links> <link id="1" /> <link id="2" /> </links> <time>12:00</time> </data?...more >>

Can't Access to a file
Posted by Nimrod Rotner at 6/7/2007 1:59:00 AM
Hi, I am trying to create html file using XML and XSL (with XmlDataDocument and XslTransform objects) within asp.net 2003 app. Keep getting : "...test.html" is denied. here is the code: ------------------- XmlDataDocument xmlDoc= new XmlDataDocument(); xmlDoc.DataSet.ReadXml(Server.Map...more >>

XPath and web.config
Posted by J.Marsch at 6/6/2007 5:12:52 PM
I must be completely losing my mind. I have some code that writes to config files. It works great with app.config files, but fails miserably with web.config files. For the life of me, I cannot figure out what is going on here. I have taken it all the way back to just selecting the config...more >>

How can I create an XSD document based on an XML file content?
Posted by Bill Nguyen at 6/4/2007 4:28:02 PM
Is it possible to create your won XSD to use with .NET based on an XML content? For example the one below: <?xml version="1.0"?> <pcats:FuelsDoc xmlns="http://www.naxml.org/Retail-EDI/Vocabulary/2003-10-16" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="NAXML-...more >>

schema question for dynamic elements
Posted by Jerry N at 6/4/2007 2:46:33 PM
I was wondering how to write the schema so that the DataSet LoadXml() method will create the associated DataTable. I've tried the following in the schema file (using VS.NET 2005): <xs:complexType name="Header"> <xs:complexContent> <xs:restriction base="xs:anyType"> <xs:sequenc...more >>

Removing self-closing tags in XMLDocument.Save
Posted by David Cartwright at 6/4/2007 2:39:56 PM
Hi, I have a VB.NET (VS2005, .NET 2.0) application producing an XML file which is then used by a third-party product. It turns out the latter doesn't like self-closing tags (i.e. it would rather see <CardNo></CardNo> than <CardNo />). Is there a simple way to tell the XMLDocument to use ...more >>

xml records c# newbee
Posted by tony leake at 6/3/2007 9:15:29 PM
I need to store records in xml files, i need to load the record, add new nodes, delete nodes and modify existing ones then save the file again. Looks to me like there are different ways of working with xml, xml file writer and xml documents. Which method is most suitable to what i want to ...more >>

String representation of XML from System.Xml.XmlTextWriter
Posted by mrdanny2007 NO[at]SPAM gmail.com at 6/2/2007 12:00:00 AM
Is there anyway to get the XML string representation from the XmlTextWriter object? I created a function to create an XML using this object, but I need to send back an XML as the return value of this function. But I am not sure how to do this. Sub getXML() Dim objXMLWriter As N...more >>


DevelopmentNow Blog