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 2007

DirectoryNotFoundException: app is looking in bin\x86\Debug for my xml file
Posted by Reece at 7/31/2007 11:22:40 PM
Is there a way, during development, to make it so that you can have the XML file in the same folder in which the bin folder is found? It seems crazy to me that during Debug that it is looking in the bin folder if it isn't putting it in that bin folder. Line that expects it to be in the bi...more >>

Nothing is Getting display in the Browser
Posted by Samir1014 at 7/31/2007 7:24:01 PM
Dear Friends Please look at the follwing XML and XSL file let me know. what i am doing wrong. When i open the XML file in Browser it display blank page. '----------------Product1,xsl <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1...more >>

newlines with XmlTextWriter
Posted by Andy Fish at 7/30/2007 2:22:06 PM
Hi, I would like to use an XmlTextWriter to format the XML so that each element (or end element) appears on a new line, regardless of newlines in the original document. The effect I'm looking for is something similar to XMLSpy's pretty print. I realise that, since whitespace is signiifca...more >>

XPATH 1.0 select a certain set of attributes and concat them.
Posted by Sharat Koya at 7/30/2007 10:02:07 AM
I have a the following xml node. <doc tag1="a" tag2="b" tag3="c" docTag1="d" docTag2="e"/> I would like to output "abc" I have the following XPATH2.0 so far //doc/@*[name()[starts-with(.,'tag')]] which returns a node list. Note that docTag* are ignored and there could be any number of tag...more >>

Extracting hyperlink data from XML file
Posted by Jonathan Attree at 7/30/2007 3:52:01 AM
Hi I need to extract the data from the following XML file (fragment) which consists of and order number (in this case 415045) and some related part numbers into a .NET dataset. The part number data is contained in other parts of the file which are referenced by links to named anchors eg I nee...more >>

new operator with deep class structure
Posted by olympus_mons NO[at]SPAM gmx.de at 7/28/2007 6:39:11 AM
Hi, I generated C# classes from some complex XMLSchemas usind xsd.exe. The result is that I get a class hierarchy that is quite deep (well for me 8 levels are deep). What I'm curiuos about is, that if I create an instance of my top level element I still need to create instances of all sub-ele...more >>

FileStream and XmlTextReader Question
Posted by Mischa at 7/26/2007 10:36:04 AM
It is my understanding that I can create an XmlTextReader from a variety of sources, including a stream object. I am developing a web application that reads some data from an Xml file. Everything works fine if I use the XmlTextReader to open the file (i.e. pass it the file name): Dim reader...more >>

XML serializer question
Posted by Jo at 7/23/2007 4:22:30 PM
Hi all, To deserialize the xml string, I need the attribute set to null if it is missing in the xml stream, instead of seeing 'System.NullReferenceException occured'. I tried setting XMLAttributeElement(IsNullable=true or false), but I could not get what I wanted. Is there any simple w...more >>



performance: StringBuilder vs StringBuilder & XSLT
Posted by SpaceMarine at 7/23/2007 8:45:54 AM
hello, im having a discussion w/ one of my associates, and we're are trying to get a consensus on a possible performance scenario. we're working a/ 3-rd party component that produces PDFs using "XML-FO", a verbose description & layout doc. it can accept either: 1) a complete, verbose XML-FO...more >>

Help - use XSLT to group by multiple values?
Posted by at 7/23/2007 7:40:47 AM
I'm using XSLT and .NET Framework 1.1 to try to transform XML to group by multiple values, and I'm not succeeding. I have source XML that looks like the following: <Data> <Flavor> <Name>Vanilla</Name> <StartDate>20070704</StartDate> <EndDate>20071231</EndDate> </Flavor> <Flavor>...more >>

Hpw to know level tag position
Posted by sam at 7/22/2007 12:00:00 AM
I need to know a way for knowing tag position in a xml like this: <AAA> <BBB> <CCC> <DDD_1/> <DDD_2/> <DDD_3/> </CCC> <BBB/> </AAA> I need to get that AAA = 1, BBB=2,CCC=...more >>

tag position
Posted by sam at 7/22/2007 12:00:00 AM
I need to know a way for knowing tag position in a xml like this: <AAA> <BBB> <CCC> <DDD_1/> <DDD_2/> <DDD_3/> </CCC> <BBB/> </AAA> I need to get that AAA = 1, BBB=2,CCC=...more >>

Using XPath to read VS 2005 csproj files
Posted by at 7/18/2007 9:04:23 PM
I am loading a VS2005 csproj file into an XPathDocument then am creating an XPathNavigator. I am trying to use XPath to pull the Include attributes from the EmbeddedResource Element of the ItemGroup Element. For some reason I cannot get the XPath syntax right to pull these attributes from the ...more >>

Child elements cant have the name
Posted by Leeor Chernov at 7/18/2007 12:00:00 AM
Hi , I need an article(Page URL) that shows that child elements on the same level cant have the same name(Validation is illegal...).... for example : <Parent> <item/> <item/> <item/> </Parent> Thanks.... ...more >>

response.writing out UTF8 XML. How?
Posted by darrel at 7/17/2007 4:30:38 PM
I was having issues before with my XML being sent to the browser as UTF16. Via my XmlTextWriter, was able to fix this by explicitely setting the encoding to UTF8: Dim objX As New XmlTextWriter(Response.OutputStream, Encoding.UTF8) That fixed the issue. I'm not generating an XML file usi...more >>

xpath question with namespace
Posted by David Thielen at 7/17/2007 10:28:03 AM
Hi; If I have the xml: <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> .... What is the xpath in XmlDocument.SelectNodes() to get the root node? I thought it was "/configuration" as the namespace is the default - but that does not work. ...more >>

MSXML6 SP1 broke my SAXWriter
Posted by hong at 7/17/2007 9:12:02 AM
I upgraded my application from MSXML4 to MSXML6, and everything was working fine. My project uses MXXMLWriter60, SAXContentHandler and XMLSchemaCache60, etc. Then I installed MSXML6 sp1. The XML document generated from my application has two problems: 1. "????" marks appears inside XML i...more >>

Outer and innerXML
Posted by seema at 7/16/2007 5:18:04 PM
What is the differnce between outerXML and innerXML....more >>

Serializer should not include namespace informations
Posted by thalion77 NO[at]SPAM graffiti.net at 7/13/2007 3:12:43 AM
Hello there, I have written a function serializing a certain object: public static XmlDocument Serialize(ServiceResponse response) { XmlSerializer responseSerializer = new XmlSerializer(response.GetType()); StringBuilder sb = new StringBuilder(); ...more >>

XPathNavigator - how to tell if a node exists?
Posted by David Thielen at 7/12/2007 1:56:01 PM
Hi; If I have an XPathNavigator object and for a given xpath statement need to know if the node exists, how should I do this? I have found for some xpath functions it returns an empty string if the node does not exist but that is also the result for an empty node. -- thanks - dave dav...more >>

How to deal with empty element using ReadXML
Posted by Bill Nguyen at 7/12/2007 1:41:59 PM
below is a very simple XML file. I use ReadXml to read data. When it reaches an empty element as <Product /> below, my program crashes. The error: System.NullReferenceException: Object reference not set to an instance of an object. How can I assign a value to this empty element? Thanks...more >>

XPath to node with empty value
Posted by esebastian NO[at]SPAM esolutionsgroup.ca at 7/11/2007 1:57:02 PM
Hi all, Basically i want to do get the specific node that is empty but when i try the following i get a null node even though I know there is a node whose AN value is null. What am i doing wrong? "/my:MF/my:SVY/my:INSP/my:INA/my:IA/my:AN[text()='']"; Thanks, Erin ...more >>

Query parent elements (newbe question)
Posted by Sebastian Mark at 7/11/2007 12:02:37 PM
Hi, I have a XML file where I want to query elements but id of the element is buried deep inside child elements for example: <XmlRoot> <XmlPosition> <PositionRecordInfo> <PositionId>1</PositionId> <PositionStatus>Active</PositionStatus> ...more >>

ProcessSchemaLocation Validation schemaLocation "Not Working"
Posted by Parsed Cheese at 7/10/2007 3:09:37 PM
After two days I am at wits end, but I am too OCD'ed to give up. Please tell me what I have got wrong because no Validation Error is being thrown. The element: "<datestamp>I should fail</datestamp>" does not conform to schema. Adding the schema to the XmlReaderSettings->Schemas field at run...more >>

convert HTML to Word doc
Posted by Casper at 7/9/2007 8:16:01 AM
I have this code that creates an HTML formatted document and I can open the document through Word. But I want the format to be truely MS Word (2003). Does anyone know how to do this? Here's my code that does the first conversion: xmlfile = "myfile.xml" xsltfile = "myfile.xslt" Dim xm...more >>

Trying to read RSS and RDF
Posted by at 7/7/2007 11:41:04 AM
My code feels really buggy, only working 60% of the time. It tends to fail when I try to get the image for the feed. Dim x As New Xml.XmlDocument Dim n As Xml.XmlNode Dim na As Xml.XmlAttribute Dim ns As Xml.XmlNodeList x.Load(url) ns = x.DocumentElement.GetElementsByTagName("image") n ...more >>

xml to word format
Posted by Casper at 7/6/2007 12:58:03 PM
Does anyone have working code to convert an xml file (with an xslt file) to word format? I've used the code here: http://support.microsoft.com/kb/311461 But I need it to work on a website. That code is for a windows app....more >>

Open XSD in code / source view instead of designer - 2005
Posted by Joe at 7/6/2007 7:36:12 AM
I never use the designer to work with my XSD, and it hangs for a few seconds when opening so I have to wait before I can switch to code view. How can I change the default to open the code / source? I searched on here and saw a post which seemed to answer my question, saying to go to Tools - Op...more >>

Namespaces and ReadXML
Posted by Robert Bevington at 7/5/2007 11:32:00 PM
Hi everyone, I'm a real newbie, so please be patient :-) I am loading an XML files into a datagrid. It works fine. To further process the information, I need to identify the column type. This information is basically in the namespace: x-ALS means it's a picklist type and x-txt a non-pick...more >>

Collection Type for RSS?
Posted by clintonG at 7/5/2007 9:07:18 PM
I'm wondering if a collection would be useful for RSS files and which collection type would be used? Some RSS elements are lists themselves. Why an I thinking of a collection? To build a reusable data structure that can be populated with a form when needing to write the XML to disk and shred ...more >>

setting xml Element prefix is being ignored on save
Posted by elh.maayan NO[at]SPAM gmail.com at 7/5/2007 10:19:19 AM
hi.. i'm trying the following : jobTicket.LoadXml(@"<?AdLibeXpress applanguage='USA' appversion='2.5' dtdversion='1.0' ?><!DOCTYPE JOBS SYSTEM 'C:\AdLib Express\DTD \AdLibExpress.dtd'[]><JOBS xmlns:JOBS='http://www.adlibsoftware.com' xmlns:JOB='http://www.adlibsoftware.com'/>"); XmlEleme...more >>

help me to move my first step
Posted by armando at 7/4/2007 5:03:22 AM
hello, i would like to know something of xml, xslt.....which component of visual studio 2005 i can look for? can you tell me some manual to lern this arguments thanks ...more >>

newbie question. Simple example of XML Digital Signature?
Posted by Michael Howes at 7/2/2007 3:29:16 PM
I've been digging around looking for the .Net 2.0 method of signing an XML document. can anyone point me to a simple example, I didn't find much in MSDN thanks mike...more >>

How to invoke the xml editor?
Posted by billsahiker NO[at]SPAM yahoo.com at 7/1/2007 3:49:06 PM
I installed vs2005 on a new xp pro machine, and installed everything except C++. When I click on a file with a ".xml" extension it is opened with IE. When I click file/Edit with XML Editor, it opens it with Notepad. If I click File/Open With and select XML Editor, it opens it with IE. So, where ...more >>

Any killer xml and schema samples?
Posted by David Thielen at 7/1/2007 11:22:00 AM
Hi; Can anyone point me to a good sample that does just about everything? I'd prefer one that is clear and simple and just does all the main things as we need this as a learning as well as a testing tool. -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubi...more >>

multiple schemas - one root?
Posted by David Thielen at 7/1/2007 10:14:01 AM
Hi; How does it work when you have multiple schemas (all except 1 tied to a unique namespace I assume)? There can only be one root in the xml but each schema starts from a root element. Also, is there a good book or website that explains schemas in full? -- thanks - dave david_at_win...more >>


DevelopmentNow Blog