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

Filter by week: 1 2 3 4 5

XSLT transform and <foo></foo> versus <foo />
Posted by Fredrik Melin at 10/31/2004 8:51:19 PM
Hi, I have a vendor that requires me to send empty value, e.g. <OrderIDInfo /> problem is that my xslt need to add attributes, doing this <OrderIDInfo> <xsl:attribute name="orderID"> <xsl:value-of select="Root_Element/InvoiceHeader/Customer_PO_No" /> </xsl:attribute> <xsl:attr...more >>

Performance of System.Xml.Xsl.XslTransform
Posted by Paja via .NET 247 at 10/31/2004 3:58:10 AM
Hi all, I have problem with the %subj%. I need to convert XML to HTML using XSL transformation. Current vbcode Dim xslTransformer As Xml.Xsl.XslTransform = New Xml.Xsl.XslTransform xslTransformer.Load(stylePath) xslTransformer.Transform(sourceFile, outFile) When processing a bigger file (...more >>

XML Array serialization problem
Posted by Raj Suryadevara via .NET 247 at 10/31/2004 3:52:44 AM
Hi I am using XML serializationn in C#=2E I have code like this=2E public class Doc { [XmlArrayItem (ElementName=3D"TNArray", Type=3Dtypeof(ReTN[]))] public object[] Obj; } [XmlRoot("TNA")] public class ReTN {something=2E=2E=2E} Here I am trying to set XML node as "TNA" instead of...more >>

XSDObjectGen and generating multiple .cs files for multiple schema
Posted by Edward Clements at 10/30/2004 8:47:01 AM
I'm looking for a good tool to generate C# classes (from XSD-schemas) to (de-)serialize XML corresponding to those schemas. XSDObjectGen almost meets these requirements -- only, I need to generate a ..cs file for each common .xsd file that is included (xsd:include) -- there are a lot schem...more >>

problem with <restriction>
Posted by (mahanatti_net NO[at]SPAM yahoo.co.uk) at 10/28/2004 10:53:41 PM
Greetings. Below is the schema snippet I am trying to explore attributegroups and attribute's use property. However I am getting a validation error saying "undefined value for base encountered", pointing to <xs:restriction>. Please help. <?xml version="1.0" encoding="UTF-8"?> <xs:schema eleme...more >>

new to xml
Posted by Amjad at 10/28/2004 2:03:02 PM
Hi here is the code Dim ds As New DataSet Dim strPath As String Dim strMessage As String Dim strSql As String strSql = "SELECT NetworkID, RoadID,MeanDepth, x1,x2,y1, y2,ColorCode" & _ " FROM RoadAnalysisMeanDepth Where NetworkID=" & N...more >>

Unexpected Token error while using XmlParserContext
Posted by Brian Cobb at 10/28/2004 12:59:10 PM
Greetings; I have an application where I am receiving HTML fragments containing snippets (sub-fragments?) of XML. I wish to extract the XML bits for further processing. In the process of playing around with various ways to accomplish this I came up with the following code: string xmlFr...more >>

Converting XML > Dataset
Posted by Christoph Duesmann at 10/28/2004 11:19:47 AM
Hi ! Here's my problem in english :-) I want to convert the mssecure.xml file from Microsoft into an dataset to store it in an SQL-Database. My code in VB looks like this : Dim ds As New DataSet Dim doc As New Xml.XmlDocument doc.Load("D:\mssecure.xml") Dim sReader As New StringReader...more >>



vs2003 & xsd:extension
Posted by man-in-nature at 10/28/2004 11:15:06 AM
Hello, I have already read several existing posts about xsd:extension, but do not find something useful to my test case. I have one xml file and one xsd file. I can use a simple command line (C#) program to validate the xml file against the xsd file without any error. The problem is that wh...more >>

XmlSerializer question
Posted by Cindy Liu at 10/28/2004 11:05:03 AM
Hi, I use XmlSerializer to serialize xml string. It escapes xml special charaters, like < and > to < and >. How can I stop XmlSerializer to escape these charaters? Thanks in advance!!! Cindy...more >>

Konvertierung von XML-Dateien
Posted by Christoph Duesmann at 10/28/2004 7:59:13 AM
Guten Morgen ! Verzweiflung pur : Seit "geraumer" Zeit versuche ich , die Datei mssecure.xml (die Updatedatei von Microsoft / Shavlik) in ein Dataset zu konvertieren, um so den Inhalt in eine Datenbank abspeichern zu können. Ich habe das mit folgendem Code versucht : Dim ds As New DataSet ...more >>

AddNamespace where uri is not a http address and where there is no prefix
Posted by sarah.king NO[at]SPAM orb-is.com at 10/28/2004 12:53:41 AM
I'm having a problem attaching a name space. I'm getting an xml string of information as a result of a third party web service. I can't change the format of the string. The xml file looks like the following <Definition xmlns="Aspentech.Batch21"> <Area name="CIPStation" description="CIP ...more >>

Polymorphism in XSD
Posted by Mike Jansen at 10/27/2004 5:12:36 PM
I'm trying to mirror some classes in an XML Schema: abstract class EndPoint class FileEndPoint: EndPoint class FtpEndPoint: EndPoint How can I mirror these in XML such that: <EndPoint> could contain either ... <EndPoint type="file" folder="..."/> or <EndPoin...more >>

XPath-Navigable-Document from Nodelist
Posted by Chucker at 10/27/2004 3:41:03 PM
I would like to select some nodes from a very large XML document and then apply a stylesheet to the dom fragment / nodelist that is the result of my XPath-Query. It seems to me now that I have to build a new XMLDocument from the Nodelist and apply the Stylesheet then. Is this realy necce...more >>

defaul namespace when serialize
Posted by Tony at 10/27/2004 3:23:05 PM
I'm serializing a class instance to xml file, but keep getting default namespace decleration, even I don't declare these namespace in my class: <cXML xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" otherAttri.. /> In my real world applicatio...more >>

Compiling dataset using an XSD that has import and include tags
Posted by Rupa at 10/27/2004 2:57:03 PM
Hi,I am trying to create a DATASET object using an .xsd file that has an import tag. The imported .xsd in turn has an include tag for another .xsd. Is it possible to create a dataset based on such an xsd using the XSD.exe or are there any other tools available for this? FYI, the xsd tool works...more >>

Id over multiple nodes
Posted by Andreas Håkansson at 10/26/2004 1:57:39 PM
Is it possible to create an id over multiple nodes? I would like to use generate-id which includes all of the Route nodes which has a direction of 1. So I don't want to for-each each Route node and run generate-id on each on of them but bulk them all together and generate an id for the nodes ...more >>

Problems Navigator Select
Posted by Greg at 10/26/2004 11:17:49 AM
Is it possible to filter an XML document twice? I have filter 1, and later in the code I want to apply filter 2. Filter 2 should be based on the results from filter 1. I have tried using an XPathNavigator: XPathDocument xpDocument = new XPathDocument(MyXMLFile); XPathNavigator xpNavigator = x...more >>

How import some xml file to database (sql server 2000) using .NET ?
Posted by Szaki at 10/26/2004 10:26:47 AM
Hello, I have a some xml file and database. How import this file to database? I must do aplication in VB .NET whose show imports some xml file to database SQL SERVER 2000? Do you have any idea? or mayby sombody have some aplication who show this problem. Txh for some advice. -- Pozdrawi...more >>

XML Declaration is missing when I convert a dataset to xml
Posted by bacile99 NO[at]SPAM yahoo.com at 10/26/2004 7:53:59 AM
This is my first time trying to take the results of a query that reside in a Dataset and convert the dataset into an xml file. Everything works great, except that my resulting XML file is missing the xml declaration (the first line): <?xml version="1.0" encoding="iso-8859-1"?> Below is an ex...more >>

Adding parent tag by XSLT
Posted by MIB426 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 10/26/2004 3:55:03 AM
hi I got xml file as <root> <Question> <QuestionName>A</QuestionName> <QuestionNumber>123</QuestionNumber> </Question> <Question> <QuestionName>AA</QuestionName> <QuestionNumber>123123</QuestionNumber> </Question> <Rule> <RuleName>B</RuleName> <RuleNumber>456...more >>

How do I populate a DataSet from a XML string?
Posted by Goldsworth_Systems at 10/26/2004 2:25:01 AM
I have a string containing valid XML. How do I populate a dataset based on the string, without reference to an XML schema or writing the XML to file and reading it back in again?...more >>

XmlSerializer and object typeinfo
Posted by Nicki Carstensen at 10/25/2004 4:06:40 PM
hi all, I have a class public class Setting { [XmlAttribute("name")] public string setting; [XmlElement] public object value; public Setting(string k, string v) { setting = k; value = v; } } It is serialized like this: <setting name="somesettingname"> <value xsi:t...more >>

LoadXml() - misunderstanding?
Posted by Tim Haughton at 10/25/2004 7:18:13 AM
I think I might be misunderstanding just what the LoadXml method is doing. I have 2 seemingly identical XmlDocuments, an XPath query succeeds on one of them, and fails on the other. Can anyone tell me what I'm doing wrong, and how to do it right? [Test] public void RetrieveDirectoryNumbersWit...more >>

ASP.NET DATAGRID and XML field
Posted by Siu at 10/25/2004 2:19:03 AM
Hi, I have an XML node similar to this <CONDITION> <![CDATA[<G>Apps-ActiveSync</G>]]> </CONDITION> and I would like to see the inner text of the node in a ASP.NET text box, namely the following text: <G>Apps-ActiveSync</G> The first time it works, but then the filled web control TextB...more >>

CSV to XML
Posted by MIB426 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 10/25/2004 1:55:45 AM
Hi all I got string like this. New South Wales(NSW), Victoria(VIC), Queensland(QLD), South Australia(SA), Western Australia(WA), Tasmania(TAS), Australian Capital Territory(ACT), Northern Territory(NT) is there anyway i can use XSLT transformation to become <select> <option id="NSW" text...more >>

Looking for good examples of XPath queries
Posted by Richard L Rosenheim at 10/25/2004 1:02:40 AM
Anyone care to recommend a web site that has some really good examples of XPath queries utilizing attributes? My XML books, and the web sites that I've looked at, don't really utilize attributes. So, their samples on the subject is weak. I tried looking at a number of sites based upon a Goog...more >>

XML in a Relational Database
Posted by Piculo at 10/24/2004 11:51:38 AM
I am trying to build a system to store several XML documents in one Database. The focus of this application is the XML documents could be whatever. I know nothing about the schema of the xml documents that i must save, only know that is a xml document valid. I am trying to store the node i...more >>

xsl-fo in .net
Posted by Albert Greinöcker at 10/24/2004 9:52:05 AM
Hi, I'm lokking for a tool similar to jakartas FOP (http://xml.apache.org/fop/index.html), but for .NET . Any Ideas? ...more >>

Checking for existence of an attribute
Posted by Richard L Rosenheim at 10/24/2004 4:55:03 AM
What's the proper technique for checking for the existence of an attribute within a node? Lets say I did a SelectSingleNode which returned this element: <AnAddress city="San Francisco" state="CA" /> What's the best why of determining if the attribute zipcode exists in this node? ...more >>

Problem querying for node by attribute
Posted by Richard L Rosenheim at 10/24/2004 4:14:16 AM
I have the following XML document, loaded in MyDoc (declared as XML.XMLDocument): <configuration> <appSettings> <add key="LastUpdate" value="9/3/2003" /> </appSettings> </configuration> I'm trying to query the document for the node containing the attrib...more >>

Newbie: How can I remove this node ?
Posted by leodippolito NO[at]SPAM terra.com.br at 10/23/2004 3:46:38 PM
Hello sirs, I have this XmlDocument: --- <requisicao xmlns=""> <requerente> <nome>Leonardo D'Ippolito</nome> <empresa>ABC</empresa> <areaAtuacao>Estudante</areaAtuacao> <telefone>(47) 555-5555</telefone> <email>some_email@terra.com.br</email> </requerente> <s...more >>

Creating XML Text
Posted by John Bowman at 10/22/2004 2:19:50 PM
Hello, I need to create some well formed XML text live in memory. What I really want is to use the XmlTextWriter object applied to some location in memory (Stream or something?), because it does a nice job of formatting/identing, etc. But I can't figure out how to instantiate the XmlTextWri...more >>

Stuck Trying To Get Elements
Posted by Wayne Wengert at 10/22/2004 9:25:58 AM
I am trying to walk through all the elements in each occurance of a selected node but I cannot seem to find the correct syntax to use. A simplified copy of the XML data is shown at the bottom of this post. I want to get a node list for every occurance of <CGShows> and then step through the child ...more >>

XML AND apostrophe
Posted by Siu at 10/22/2004 6:41:02 AM
Hi, I need to make some search in a XML file to get element and/or attributes of element from my ASP.NET web application (in C#) My problem is that the value that I search can have an a postrophe and that could generate an error. Here a sempliefied code: XmlDocument xmlDoc = new XmlDocume...more >>

Unable to read the XML declaration
Posted by jod_Oz_Work NO[at]SPAM myrealbox.com at 10/22/2004 5:26:06 AM
Hi, I am reading a XML document and parsing it into a listbox. I'm juat learning XML and i can't find a way to read the Xml declaration <?xml version="1.0" encoding="utf-8"?> In the debugger I can see that there is a declaration element to the XMLDocument, but this not recognised by the comp...more >>

Reach out for advice. . . Client \ Server Communication
Posted by JB at 10/21/2004 4:55:06 PM
All, I am reaching out looking for the best way to approach a problem given by my company. We are embarking on our first .NET application, and quite frankly we are not as educated with the Framework as we probably should be. The question is what is the best method of communication protoc...more >>

XSLT - Outputing an attribute
Posted by Andreas Håkansson at 10/21/2004 4:50:53 PM
I'm having problems getting the syntax corrent to output an attribut. Something like this <Node Id="<xsl:value-of select="Id"></xsl:value-of>></Node> Any suggestions? =) Oh I hop emy two XPath / XSLT books arrive tomorrow. Martin Honnen if you see this, I ordered the two books you recom...more >>

Howto: format attribtes per line rather then on one line
Posted by Fred Heida at 10/21/2004 4:04:07 PM
Hi All, Using the XmlDocument and XMLElement::SetAttribute is there away to indent the attribute per line, rather hen them having them on the one line e.g <MyRoot Att1="Value1" Att2="Value2"></MyRoot> but <MyRoot Att1="Value1" Att2="Value2" > </MyRoot> Cheers, Fred ...more >>

Grouping over multiple nodes - possible?
Posted by Andreas Håkansson at 10/21/2004 2:29:06 PM
Seeing how my previous post seem to have fallen between the cracks, I thought I would have a second, more direct, go at it. So my question is "Is it possible to group (Muenchian method) over multiple nodes?" I will use an example to try to explain what I need to do and what I have for data. Th...more >>

writing xml files with XSDObjectGen.exe
Posted by abrady0 NO[at]SPAM gmail.com at 10/21/2004 9:51:44 AM
I have a schema and have used XSDObjectGen.exe to create a set of classes that represent the schema. What is the best way to fill xsdobjectgen.exe generated classes with data? I want to create and serialize an instance of one of the classes in this schema. the class is declared publicly, but i...more >>

Validating XML against XSD where XSD has includes
Posted by Brendon at 10/21/2004 8:57:09 AM
I have 2 Xsd's The one contains basic type definitions <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:simpleType name="TrueFalse"> <xs:restriction base="xs:NMTOKEN"> ...more >>

HOW TO CHECK WHETHER A NODE EXIST?
Posted by Siu at 10/21/2004 7:03:06 AM
Hi, in my ASP.NET (C#) application I would like to check in advance if a node exist: my code is as follow: XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(XML_FILENAME); XmlNode nodeApplication = xmlDoc.SelectSingleNode(xmlPath); Before launching the instruction xmlDoc.SelectSingoleNo...more >>

Problems with XmlNode.InsertAfter
Posted by jod_Oz_Work NO[at]SPAM myrealbox.com at 10/21/2004 2:45:14 AM
Hi, I am having major headaches with XmlNode.InsertAfter. This is the format of my XML document <?xml version="1.0" encoding="utf-8"?> <Team name="Team"> <Players> <Player> <name> GK</name> <age> 28 </age> <position> GK</position> </Player> <Player> ...more >>

Ontologies - OWL
Posted by gxdata at 10/20/2004 9:27:19 PM
Anyone doing other than XML Schemas in dotNET Framework? I'm intrested in an editor that does OWL variants, and (badly needed) something like the Protege project with its extensibility. Is this going to happen with Visio or an add-in to Visual Studio, sometime soon? Ian Thomas ...more >>

ASP.Net Multilingual
Posted by Asim Qazi at 10/20/2004 2:06:01 PM
Hi All i need to develop a multilingual s/w, i did it in ASP3.0 two years back, The main functionality i need is to put all the interface data in XSL Templates, make an XML packet in ASP, load XSL file transform it on server side and pass the pure HTML on the client, now the biggest problem ...more >>

Timeout during XmlSerializer instantiation
Posted by Rangi Keen at 10/20/2004 10:48:11 AM
I am instantiating an XmlSerializer using the XmlSerializer(Type) constructor. This works most of the time, but sometimes I get a timeout during the process. I'm using the same type in all cases and it has happened on multiple computers ranging from 500 MHz to 2.6 GHz. Does anyone know why the c...more >>

Problem validating against Vxml 2.0 schema
Posted by blas.croche NO[at]SPAM gmail.com at 10/20/2004 6:54:22 AM
Hello, I am trying to validate a VXML document against the new vxml 2.0 schema, and I am getting the following errors (and a lot more like these): Reference to undeclared substitution group affiliation. An error occurred at http://www.w3.org/TR/voicexml20/synthesis-core.xsd, (372, 3). R...more >>

XmlTextReader is skipping nodes unintentionally
Posted by Geoff Bennett at 10/19/2004 7:59:02 PM
While parsing an XML document, my TextReader instance skips nodes. For example, in this fragment: <Person Sex="Male" FirstHomeBuyer="No" YearsInCurrentProfession="14"> <RelatedEntityRef RelatedID="118"/> <PersonName> <NameTitle Value="Mr"/> <FirstName>Clint</FirstName> <OtherName/>...more >>

Why is the return value not XmlDocument ?
Posted by Shailendra Batham at 10/19/2004 4:44:06 PM
This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C4B5FA.D976F5C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi gurus I have a asp.net web services and in that i have a function which = returns XmlDocument as the re...more >>


DevelopmentNow Blog