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 2006

Filter by week: 1 2 3 4 5

XPath string
Posted by Lubomir at 6/30/2006 12:43:01 PM
Hi, I want to get the node with text=”{123}”. 1/ The following statement works fine: XmlNode wksNode = parentNode.SelectSingleNode("child::wks[text()='{123}']"); 2/ When I try to use a variable for the value of text, it doesn’t work anymore: string str = "child::wks[text()='" +...more >>


TOP clause with XPath
Posted by Mario Vázquez at 6/30/2006 12:00:00 AM
Hi, Is there any way to simalate the SQL TOP clause using XPath? Or, in other words, how to get a fixed number of nodes through a XPath query? Thanks, Mario Vazquez ...more >>

Variable in XPath?
Posted by a at 6/30/2006 12:00:00 AM
I'm trying to read a XML document with the following XPath code (programming in VB .net): Dim doc As XmlDocument = New XmlDocument() doc.Load("c:\la2.xml") Dim wort As XmlNode Dim root As XmlElement = doc.DocumentElement wort = root.SelectSingleNode("descendant::e[id='2']") T...more >>

new to xml - sitemap help
Posted by -D- at 6/29/2006 9:55:59 PM
I'm taking my first stab at using xml, so please bear with my novice questions and understanding of xml. I'm trying to create an xml file that holds all my website navigation. If I understand correctly, I can use xslt to create different menus from the xml file. What I'm trying to accompli...more >>

Move node?
Posted by Patrick at 6/29/2006 4:48:13 PM
Hi, I have a xml file like this: <?xml version="1.0"?> <home> <page name="Test1" id="1"> <page name="Pagetest1" id="2" src="test1.htm"></page> <page name="pagetest3" id="3" src="test2.htm"></page> </page> <page name="Test2" id="4" src="test1.htm"> ...more >>

error generating ... Xml document (when calling web service)
Posted by idletask NO[at]SPAM msn.com at 6/29/2006 1:38:20 PM
Hello, I have an XML file that is on my file system. I want to read the file into memory and call a web service with it. When I do, the VB complains: "there was an error generating the XML document". I see a lot of posts regarding serialization of classes. I am not that familiar with s...more >>

XPath performance
Posted by Jon at 6/29/2006 11:17:02 AM
I got a question on executing the xpath. Can someone let me know which way is faster for the following two scenarios (one with XmlDocument and the other using XmlDocument.CreateNavigator())? XmlDocument doc = new XmlDocument(); doc.Load(input); 1. XmlNodeList nodes = doc.SelectNodes(xpath...more >>

XML Serialization or XMLReader for binary object in VB.NET???
Posted by JM at 6/29/2006 5:43:12 AM
Hello, Most of the examples I've seen with XMLReaders, serialization, etc,. involve a text file on a file system. Does anybody have a start to finish VB.NET example of reading an XML Document object (binary) and parsing it? The object I'm receiving is w3c compliant. I have somewhat of a Ja...more >>



VS 2005 Com Interop Exception in Web Service
Posted by Richard Collette at 6/28/2006 2:00:02 PM
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web method may succeed one time and not another. I cannot find any reason why it would work one time...more >>

Insert / delete ?
Posted by Patrick at 6/28/2006 1:31:47 PM
Hi, im trying to first insert a node in the xml file and save it. XmlDocument mDoc = new XmlDocument(); mDoc.Load("struct.xml"); XmlNode singleNode; XmlNode newNode = mDoc.CreateNode(XmlNodeType.Element, "page", ""); XmlAttribute mAttr = mDoc.CreateAttribut...more >>

How do I parse an XML file
Posted by Jose Cintron at 6/27/2006 5:38:49 PM
The XML file looks something like this... --- Start XML --- <?xml version=3D"1.0" ?> <VULNERABILITIES> <PROGRAM_VERSION>0.0.1</PROGRAM_VERSION> <CONTROL_VERSION>0.0.1</CONTROL_VERSION> <VULNERABILITY> <V_SHORT_NAME>SOMETHING</V_SHORT_NAME> <V_LONG_NAME>SOMETHING...more >>

new xml file is larger than the original
Posted by dotnetnoob at 6/27/2006 12:24:01 PM
i'm working on a windows application that will edit and create xml files from another application. the original file is 83k, the one created by my vb.net program is 153k but all i add is a new xmlelement when i use the other program and add a xmlelement is only increased the file to 85k. how c...more >>

XML merging
Posted by Sanjib Biswas at 6/27/2006 1:52:46 AM
Hi All, I am looking for XML merging for the following scenarios. I want to = load both the input files and show in the tree viewer and highlight the = differences. Now its up to the user to select the correct node. Any non = conflicting differences should be automatically merge onto the me...more >>

How to get needed data from XML document
Posted by Tony Girgenti at 6/26/2006 3:40:02 PM
Hello. Using VS.NET 2003(VB), .NET Framework 1.1.4322, ASP.NET 1.1.4322, WSE2.0 on a WinXP Pro Sp2 computer. I need help trying to extract the "TruckName" data from this XML document (at the end of this request). I want the data after the equal(=) sign. The data is the InnerXml and the...more >>

single quote xml value
Posted by dotnetnoob at 6/26/2006 1:51:01 PM
EvtEnrollAttr.Value = "3748" EvtEnrollElem.Attributes.Append(EvtEnrollAttr) i need the attr value to be <stuff ID = '3748'> in single quote how can i do that with visual basic.net? thanks ...more >>

insert xml element in a speicific location
Posted by dotnetnoob at 6/26/2006 6:04:02 AM
let's say i have a xml file <root> <stuff id='1'> <stuff1> </stuff1> </stuff> </root> how do i insert new <stuff2>element and atrribute after stuff1...more >>

SOAP, Web services and XML
Posted by Dave at 6/25/2006 11:58:17 AM
Hi all, I very much hope you can help - i am sure there is a very simple solution, but after days of scouring the net, i have come up blank. Basically i am trying to access a web service provided by my till operator to access product details. They have provided me with a document on the se...more >>

Force the prefix of the document element
Posted by BizTalk Benjamin at 6/24/2006 3:40:02 PM
Hi, I have an XmlDocument loaded from a memory stream. I set the document element prefix in this way XmlElement e = xDoc.DocumentElement; e.Prefix = "abc" When i simply write the document element to the command line it shows the prefix. However, it does not persist in the XmlDoc so when i...more >>

The correct way to set XSD namespaces?
Posted by BizTalk Benjamin at 6/24/2006 7:47:02 AM
Hi, I have created a set of schemas for messages that i need to exchange between services. I set the targetNamespace ="http://mycompany/services/abc" and the root elements have names like FindCustomerRequest, FindCustomerResponse, CreateCustomerRequest and so on. In Biztalk when a message ...more >>

Why does VS not format an XML document?
Posted by Randolph Neall at 6/23/2006 11:55:22 AM
I'm new to XML. I'm noticing that certain XML documents, when viewing XML text, do not format in VS 2005. Instead, everything is rendered on one long line. In Internet Explorer, the text formats fine. What do I need to do to get VS to format XML text for me? Thanks, Randy Neall ...more >>

XSD help
Posted by Peter Morris [Droopy eyes software] at 6/23/2006 12:00:00 AM
Hi all I have a config file like so <config> <optionSet1> <option index="1" name="Set 1 index 1"/> </optionSet1> <optionSet1> <option index="1" name="Set 2 index 2"/> </optionSet1> </config> optionSet1-index1 can only have set values 1, 3, 5, 7 Ho...more >>

XML Config File
Posted by ccole at 6/22/2006 8:10:01 AM
I have about thirteen configuration files that are written in XML. I need to be able to read and cross reference these files with each other. I have already written an xsl translator but due to the large size of the file it is very slow. I have also been unable to access some of the relatio...more >>

Can you do this?
Posted by Justin Lazanowski at 6/21/2006 12:08:51 PM
I have a dataset that I want to write to XML The dataset has two data tables with a parent child relationship 1:1 What I want to do is when I use myDataset.WriteXML(somefile); Create a document that places the child within the parent node for example <TestedBatch> <BatchNumber 1...more >>

selectNodes question
Posted by Yoavo at 6/20/2006 6:23:53 PM
Hi, I am trying to get nodes (in a VC++ application) using the method IXMLDOMElementPtr::selectNodes. This is part of my XML file: <None-Books> <Summary Books="34" TopContainer="13" Client="27"/> <AAA-1 Type="0" DockingCX="200" DockingCY="120" Title="a"/> <AAA-ar Type="0" DockingC...more >>

ValidationType.Auto and reading schema attribute
Posted by jhowey at 6/20/2006 4:22:03 PM
Hi, I would like my default ValidationType to be Auto. Now let's say I have both a DTD and an XSD file for this XML file being validated. While it's ValidationType.Auto, it will validate the DTD, but will not even attempt to read/validate the namespace or even check if schema file exists. ...more >>

newbie questions re formatting XML documents (.NET)
Posted by Bill Nguyen at 6/20/2006 10:26:12 AM
I used this syntax mXml.WriteXml("c:\vs2005\tempdoc\mytest.xml", XmlWriteMode.IgnoreSchema) and got the XML records as below (almost exactly what I wanted!). <?xml version="1.0" standalone="yes" ?> - <NewDataSet> - <sqlData> <DF>7770</DF> <ST>OWATCH</ST> <RDYEAR>2006</RDYEAR> ...more >>

Sort xml?
Posted by Patrick at 6/20/2006 12:00:00 AM
I got a page that loads a xml file into a treeview control. I want it to sort the data before sending it to the treeview control is that possible? <root> <level1 name="" src="" order="0"> <level1.2 .. order="5"> <level1.2 .. order="3"> <level1.2 .. order="2"> ...more >>

XSD Validation error: "The element 'x...' cannot contain text
Posted by BillAtWork at 6/19/2006 1:19:01 AM
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException : Validation error: The element 'http://xmlns.somewhere.com/something:rDetail' cannot contain text. Expect...more >>

Validating XML in a WebMethod parameter
Posted by BillAtWork at 6/19/2006 1:18:02 AM
Hi, I've set up a SoapExtension class and XSD schema in order to validate the parameters of a webservice method call. However, I'm having a problem with one of the parameters - it's a string which accepts an XML fragment and I can't get it to validate using the schema. I need to go back to ba...more >>

Retrieving tooltiptext values from an xml file
Posted by Ram at 6/18/2006 11:20:46 PM
Hi All, I am working with an asp.net application. My client wants the tooltiptext for the controls to be displayed from an xml file. Creating an Xml file is not a problem. How can I proceed further to retrieve the values from the Xml file and assign them to the tooltiptext property of ...more >>

Including XmlDocument fragments in an XmlTextWriter
Posted by Gustaf at 6/18/2006 5:09:56 PM
My program is constructing a document from several fragments, which are created on the fly using XSL transformations. I've managed to store the output from each transformation (each fragment) in an XmlDocument object, and I can include that in the collected document using code like this: ...more >>

Substring XPath
Posted by Derek Hart at 6/16/2006 7:11:18 PM
This is probably so simple. I am doing a SelectSingleNode to get the value from an XPath statement, and I simply want the 3 leftmost characters. I cannot get the syntax to work: //Client/Names/Name[@nameaddresssource_id='3']/@display_name So I have tried: substring(//Client/Names/Name[...more >>

Namespace agnostic parser?
Posted by brian.f.oneil NO[at]SPAM gmail.com at 6/16/2006 3:35:20 PM
I need to be able to read some element values and populate some element values for some XML documents submitted to a service, but I can not predict the NameSpace in the documents. I have been using the System.Xml.XmlDocument object with success for a known NameSpace and using the NameSpa...more >>

Parse Nested Elements to Single DataGrid
Posted by BMeyer at 6/16/2006 3:01:01 PM
I have been losing my mind trying to parse an XML document (with nested child elements, not all of which appear in each parent node) into a DataGrid object. What I want to do is "flatten" the XML document into a text document with a single row for each parent node (that has all of the values...more >>

cdata-section-elements being ignored?
Posted by Steveino at 6/16/2006 5:54:02 AM
Hello, Just wondering if anyone could shed any light on this, it's probably me just being silly... I have a dataset that I've used to create an XmlDataDocument, in order to apply XSL. The XSL reformats the XML to another format (still XML, not HTML). This works fine, but whatever I do, I...more >>

Programmatic access to VS IDE tooltip info
Posted by shrewdmonkey at 6/15/2006 10:26:16 PM
Hi, I am looking for a straightforward (or pre-implemented) way to access the XML documentation included with the framework's assemblies (just as the VS IDE does when it pops up tooltips in the code window). Anybody know the best way to proceed? The IDE already parses the files and then I a...more >>

Can a schema be written to check for this?
Posted by Mr Flibble at 6/15/2006 1:51:44 PM
Here is some highly imaginative XML I've constructed to highlight what it is I'm trying to achieve. (Seems easier with an example). <foobars> <foo> <bar x="dog" colour="brown"/> <bar x="cat" colour="grey"/> <bar x="fish" colour="gold"/> </foo> <foo> <bar x="dog" ...more >>

The custom tool 'MSDataSetGenerator' failed while processing the f
Posted by cashdeskmac at 6/15/2006 4:14:01 AM
I get this message when trying to create a schema from an xml file. I am looking to see if the xml file is malformed, but just in case it isn't, has anyone come across this problem before? ...more >>

SignedXml, X509Certificate2 and certificates with *Strong* protection
Posted by Rune Nergard at 6/15/2006 12:00:00 AM
I have tried to use the System.Security.Cryptography.Xml.SignedXml class to sign an Xml message with Xml-DSIG and using an Enveloped signature type and the sha1RSA algorithm. Everything works fine with soft certificates and some smartcard based certificates. I'm using X509Certificate2 to ho...more >>

XmlSerializer Question
Posted by Matt at 6/14/2006 1:51:18 PM
Is is possible to prevent the XmlSerializer from adding the default = namespaces to the root of the XML document? I have a simple class that = I want to write and will not be reading the data back into the system = using a serializer. Thanks,=20 Matt...more >>

How to hide available web service function declares
Posted by John K at 6/14/2006 12:39:02 PM
How do you hide the available functions (and syntax) that are normally displayed when you browse to a webservice (e.g. httpx://xxx.com/CMgr.asmx)? If you go to that page you will see a list of the available functions and you can click on the function name to reveal the calling syntax. We nee...more >>

XML formatting in Mozilla Firefox
Posted by michal2 NO[at]SPAM gmail.com at 6/14/2006 4:01:17 AM
I am creating an xml document using XMLOutputter in JAVA, then displaying the xml file in Firefox browser. My problem is that I want to simply display the XML as idented text, but the browser adds "-" signs to the text. So when I try to copy+paste the text I also get the "-" signs with it. ...more >>

XPathNavigator
Posted by C at 6/14/2006 2:31:02 AM
When I try this //WebSRFTemplate/Data/Field[Name='SERVICEStaticRoute2IPnetwork1']/text() I get back the values of ALL Fields in my XML below. I only want the value (Test1) of the field name specified. Am I doing something wrong here? <WebSRFTemplate Version="1" Type="SERVICE"> <Da...more >>

<dataroot xmlns=''> was not expected...
Posted by Rob R. Ainscough at 6/13/2006 10:54:55 AM
I'm using XmlSerializer to read the an XML file into an object collection. As soon as I .Deserialize(myFileStream) I get the above error: my XML looks like <?xml version="1.0" encoding="UTF-8"?> <dataroot xmlns:od="urn:schemas-microsoft-com:officedata" generated="2006-06-09T14:07:13"> <A...more >>

Traverse XSL stylesheet
Posted by John Bailo at 6/13/2006 9:51:49 AM
I've created an XSL stylesheet that lets me filter data in an XMLDocument using a transform. However, I want the filter to be dynamic based on an attribute. Should I just do a search replace on it? Or can I pinpoint a specific part of an XSL using the OM? ...more >>

Parse CDATA in XML Document
Posted by C at 6/13/2006 8:29:02 AM
Hi, I have an XML doc as below <WebSRFTemplate Version="1" Type="SERVICE"> <Data> <Field Name="SERVICEStaticRoute2IPnetwork1"><![CDATA[Test]]></Field> </Data> </WebSRFTemplate> I load this into an XmlDocument using C# I then create an XPathNavigator using my XmlDocument. How do...more >>

Sequence with schema designer
Posted by shumaker NO[at]SPAM cs.fsu.edu at 6/13/2006 8:15:20 AM
I designed a schema in VS C# 2005 Express and am wondering why it chooses to place a sequence tag around the elements of a table. And additionally, if I move the elements around within the table, the sequences in the *.xsd are not rearranged, but are left as is(in the order in which the element...more >>

dontnetnewsgroups
Posted by balaji_hbpp NO[at]SPAM yahoo.co.in at 6/12/2006 11:33:01 PM
how to delete previous content from the google serch engine...more >>

XmlNode.SelectNodes, order of nodes
Posted by Vikram Vamshi at 6/12/2006 12:29:29 PM
If I execute XmlNode.SelectNodes("some xpath query") and then use foreach to iterate over it. Will it guaratee that the order of nodes I get will be same as the order of nodes in the original xml document? Can someone point me to a document which states that the order is (or is not) guarat...more >>

How to build Dynamic Xpath expressions?
Posted by dotnetnoob at 6/12/2006 9:58:02 AM
i would like to know how i can build xpath expression dynamiclly. let's say i have a following xml file: <EventEnrollment InstanceNumber = "675"> <EventSource> <ObjectReference ObjectKey="xxxxx"> .. .. .. <EventEnrollment InstanceNumber = "676"> <EventSource> <Objec...more >>


DevelopmentNow Blog