Groups | Blog | Home


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 2003 > threads for october 8 - 14, 2003

Filter by week: 1 2 3 4 5

XML validation Problem
Posted by paulhux174 NO[at]SPAM hotmail.com at 10/14/2003 11:35:12 PM
Hi, My code won't validate the xml document. I'm using vb.net. In the IDE I can use the schema to validate the XML. But when I use XmlValidatingReader in code it does not pick any restrictions. eg. in the following schema I want one and only one 'Header' element, and I want a 'Message' elem...more >>

XML Transform - slower than molasses in January?
Posted by googlenews NO[at]SPAM hotmail.com at 10/14/2003 5:01:46 PM
I am using the XML tranform functionality in .NET to transform data in a DataSet into XMLSS using an XSLT file I have created. There are about 100 columns and only about 120 rows in the data table being transformed - modest amount of data to say the least. The transform takes at least 10 sec...more >>

XML transformation
Posted by Lenny Woodbridge at 10/14/2003 12:29:36 PM
There is any way to transforming XML using XSL according with Schema? I need to add arguments to the certain tags according with their datatype. Thanks, Lenny ...more >>

Schema Validation
Posted by Mike Bird at 10/14/2003 10:29:14 AM
I have an XML document that contains the xsi:noNamespaceSchemaLocation attribute giving the location of the XSD file to use for validating it. I created an XmlReader on the XML file. I then created an XmlValidatingReader based on the XmlReader which I use to read the file with validation. Wh...more >>

How to conume xml sent over http post
Posted by swl8 NO[at]SPAM yahoo.com at 10/14/2003 6:29:37 AM
How do I consume xml and send back an xml response not using SOAP in an asp.net aspx page using vb.net?...more >>

XMLSerializer & Inheritence
Posted by Mark Turner at 10/14/2003 3:26:19 AM
Help! I want to serialize mu C# objects uzing the xmlserializer class. It works well whem all my classes are flat, but when I use inheritence to split the data and implementation I get an "unknown element" exception. namespace A { [System.Xml.Serialization.XmlRootAttribute("thing", ...more >>

Have Node want Element
Posted by Scot Curry at 10/14/2003 2:41:26 AM
I am cycling through a NodeList and find the node I want. How do I turn this into a node element so I can set the attributes to the values I need. Thanks in advance. Scot...more >>

how to transform escaped xml contents in xmlnode
Posted by Invalidlastname at 10/13/2003 6:20:33 PM
Hi, I have an XML document, created from ADO DataSet, which contains XML data in some nodes shown below: <NewDataSet> <Table> <field_name>My Selection</field_name> <field_type>dropdown</field_type> <field_choice_text> &lt;Choices&gt;&lt;Choice choice_text=\"xxx\" /&gt;&lt;Choice cho...more >>



reading xml from MemoryStream causes exception
Posted by xmlguy at 10/13/2003 5:24:38 PM
PREVIOUS BACKGROUND POST: I am trying to reuse a Memory Stream for loading and transforming the xml it contains Basically I have defined following interfaces: Class Render { // Memory stream declared inside class so that it is accessible by all the methods // It acts as the p...more >>

problems creating xml documents with vb.net
Posted by Stacey Levine at 10/13/2003 3:50:48 PM
OK.. I am creating an XML document (Fedex Tracking). And one of my attributes on an element is supposed to have an "xsi:" before the attribute name. It is in my code below.. but the output does not have the "xsi:" The area to look at is the "noNamespaceSchemaLocation" Any ideas around this? Wh...more >>

HTML to XML
Posted by Zürcher See at 10/13/2003 2:21:15 PM
I use a httpWebrequest to download an html page as string, then I would like to have xml document, but html and xml are "incompatible" There is a way to convert html to xml? ...more >>

Condition-clause in XSLT using .Net System.Xml
Posted by Magus at 10/13/2003 10:09:58 AM
Hi. I'm trying to execute a simple <xsl:if>-clause with a condition that reads: a<1 In MSXML 4 the clause <xsl:if test="a &lt; 1">do something...</xsl:if> works fine. But in .Net Xml it just doesn't work. I can't use the real character (<) because the XSLT wont be a valid XML. And if I u...more >>

Getting nodes with or without namespaces.
Posted by ru at 10/13/2003 6:14:04 AM
Hello, I'm having trouble trying to write a generic solution for parsing xml files. The xml-files I recieve can have namespaces or not, depending on the source - however, the treestructure is the same for all. An extra difficulty is that it is not certain that if a xml-file has namespaces...more >>

Value of type 'System.Data.DataRow' cannot be converted to '1-dimensional array of System.Data.DataRow'
Posted by Martin Lindén at 10/13/2003 2:21:38 AM
I got this example written by David J Gottlieb. Which will not compile. I have previously read in the xml doc with myDataSet.ReadXML(Server.MapPath("bills.xml")) Then when i com to this section.. Dim myTable As DataTable Dim myRow as DataRow myTable = myDataSet.Tables("djg_Bills") m...more >>

Creating Excel document from Dataset and XML ?
Posted by Paul at 10/12/2003 11:58:32 AM
Hi all Arggghhh........... The problem.....I want the user to be able to create an excel document and name particular cells in the document where they want the data to be placed and then save this out of an XML file or Excel Template file. Next I need to convert a dataset to xml and try and...more >>

overlapping mapping schemas
Posted by Jon Sequeira at 10/12/2003 10:59:36 AM
I have a question about a general approach to mapping schemas for use with SQLXML . Suppose I have a product table, which has information that's related to two groups of otherwise unrelated tables: a group of inventory-related tables and a group of order-related tables, like so: order ...more >>

To read the last xmlNode immediately
Posted by Giuseppe at 10/10/2003 10:02:35 PM
Hello I have created a xml doc Dim xmlDoc As New XmlDocument xmlDoc.Load(ConfigurationSettings.AppSettings("RegistrazioneErroriXML")) The file.xml: <?xml version="1.0" standalone="yes" ?> - <NewDataSet> - <Eccezione> <ID>1</ID> <Utente>INFORLUAR</Utente> <Messaggio>Nuovo eccezi...more >>

Problem after I create a scheme for xml doc
Posted by Ron Vecchi at 10/10/2003 5:10:17 PM
I have created a simple xml doc. then I created a simple xslt doc to transform so data. Im using a <asp:Xml> control to render the data on the page. Everything is working great....except... when I later created a scheme(xsd) doc for the xml file my aspx page outputs a System.NullReferenceEx...more >>

generating UPDATEGRAMs
Posted by Jon Sequeira at 10/10/2003 4:26:22 PM
Does anyone know of a component or class that available for generating updategrams from custom business objects? Ideally I need something that parses a mapping schema, interrogates an object, and produces an updategram. Any suggestions are welcome. Thanks. Jon ...more >>

Auto change in Encoding - XmlReader, XmlDocument, StringWriter
Posted by xmlguy at 10/10/2003 4:18:36 PM
This is part of the application that reads XML from file (that has UTF-8) into an XmlTextReader XmlTextReader myXmlReader = new XmlTextReader(args[0]); It then instantiates an object/class instance Render where this constructor gets called with "that" XmlReader. public Render(XmlReader ...more >>

Need help with XSLT for DATES in DataSet for XMLSS
Posted by googlenews NO[at]SPAM hotmail.com at 10/10/2003 3:49:30 PM
I am using an XSLT file to convert data in a DataSet to XMLSS format for opening in Excel. Excel doesn't like the way Dates in the DataSet are being ouput. It appears that a timezone offset is being appended to the datetime; e.g., instead of "2003-08-26T00:00:00.0000000" I am getting "2003-08-26...more >>

How: Setting UTF8 as an application wide text encoding format
Posted by xmlguy at 10/10/2003 3:48:48 PM
XmlTextReader myXmlReader = new XmlTextReader(args[0]); string en = myXmlReader.Encoding.EncodingName; //Console.WriteLine(x); Error: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. HOW CAN I GET THE ENCODING NAME ? Basically de...more >>

Read & Write To XML
Posted by Arvind P Rangan at 10/10/2003 3:48:09 PM
Hi, i like to read an existing xml file which has a schema defined to it, and then write or add data to the existing xml file using vb.net/c#. May be this Question has been answered earlier. Pls if anyone knows the link or example let me know Thanks ARvind. ...more >>

error getting the encoding name from an XmlTextReader
Posted by xmlguy at 10/10/2003 3:47:43 PM
XmlTextReader myXmlReader = new XmlTextReader(args[0]); string en = myXmlReader.Encoding.EncodingName; //Console.WriteLine(x); Error: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. HOW CAN I GET THE ENCODING NAME ? Basically de...more >>

XML Schema validation
Posted by Lenny Woodbridge at 10/10/2003 2:35:37 PM
Datetime field validation failed on fields with null data, why is that? Should I use this nillable="true" tricks in Schema? Thanks, Lenny ...more >>

Using XML and ADO.Net for Database creation with the Compact Framework
Posted by Paul at 10/10/2003 12:01:17 PM
Hey all Appologies for cross posting, but this post covers a few areas in one. I'm fairly new to XML and my ideas are over reaching my grasp (as well as possibly not fully understanding certain concepts). My basic questions are: 1. I want to create a database in SQLCE. I understand th...more >>

Another NameTable Question
Posted by Colin Savage at 10/10/2003 10:57:01 AM
I am trying to work out the best way to use the NameTable class in my C# application. I am assuming that getting/adding a string to the nametable has the same overheads as comparing a string normally, so I have created a class which holds references to the atomized strings. Is there a better ...more >>

NameTable question
Posted by Colin Savage at 10/10/2003 10:39:27 AM
In my C# application I have an object model which can be loaded and saved into xml, not using serialization. When changes are made to the object model by the user interface, I use another thread to read the xml from the object model and run a transform on that xml. I have added locking code to th...more >>

Reading an XML file with " and ' as attribute value quotes
Posted by romout NO[at]SPAM gmx.at at 10/10/2003 3:51:53 AM
Hello, I am currently working on a build solution for multiple c#/vb projects and I'm nearly done. There is one single problem remaining: In case one of the project settings contains a " (double quote ;-), the attribute's value within the project file will automatically be surrounded by ' (...more >>

Soap client
Posted by Ulan at 10/9/2003 9:54:31 PM
Hello. How could I consume Web services created using c# with soap client written on c++6.0 ? I can't use .net on client app. Thanks in advance. ...more >>

XmlSchemaElement
Posted by Christian Lammel at 10/9/2003 9:23:34 PM
OK, repost: > I implemented a schema helper function GetDeclaration (similar to MSXML), > that finds a XmlSchemaElement for a given XmlElement, using a > XmlSchemaCollection. There is one kind of element, that is defined in schema > A with some annontation. > > <xs:element name="MyElement" ...more >>

issues with repopulating XPathDocument with new XmlReader or XmlTextReader
Posted by xmlguy at 10/9/2003 8:33:53 PM
Cant seem to solve this problem I need to be able to re-use XmlReader and XPathDocument for an XSLT Transform. Basically I have defined following interfaces: Class Render (Common and public inside the class) XPathDocument XpDoc; XmlReader XrDoc; - Constructor Render public Render...more >>

problem using xsl with hebrew
Posted by gadic10 NO[at]SPAM walla.co.il at 10/9/2003 3:01:35 PM
Hi. i need help. i can`t use xsl to transform an xml to html using asp.net. when the xml and the xsl are in english it works fine. the problem began when the xml ans xsl have words in hebrew. i put the next sentence in the start of the xml and the xsl: <?xml version="1.0" encoding="wi...more >>

Shared Xml file problem when xsd.exe is used
Posted by phoenix_cbe NO[at]SPAM yahoo.com at 10/9/2003 3:00:38 PM
Hi All, I am having three XML files. One called SimpleTypes.xsd from which ComplexTypes.xsd is constructed. Then, there is another file called InformationExchangeModel.xsd that uses types in complexTypes.xsd to construct messages. I am having all sorts of problems validating these xsd file...more >>

writing an xml inside XmlReader or XPathDocument to a file.xml
Posted by xmlguy at 10/9/2003 2:52:20 PM
I believe this should be pretty elementary, but for some reason I cannot seem to think of how to write the an XML file from an incoming XML file. Basically this is what I do: Input: XmlReader instance from another module (beyond my control) Operations: XPathDocument = new XPathDoc...more >>

Constraint validation errors
Posted by Sudip Chakraborty at 10/9/2003 2:38:46 PM
Is there a way to see constraint validation errors while loading xml into a DataSet ? I'm interested in the line number in the xml file which is causing the error. I've enclosed the relevant stack trace below. at System.Data.DataSet.FailedEnableConstraints() at System.Data.DataSet.EnableCons...more >>

XmlSchemaDatatype xs:integer=System.Decimal?
Posted by ted_x_toth NO[at]SPAM yahoo.com at 10/9/2003 11:37:20 AM
I have some code which processes an xsd. For elements of type xs:integer the XmlSchemaDatatype object gotten from the schema elements ElementType member contains a ValueType of System.Decimal. I don't get it it should be System.Int32 or some other integer type but not a decimal. Any ideas why th...more >>

Listing Entities and Attributes from a XML Schema
Posted by Rohit Sharma at 10/9/2003 11:29:56 AM
Hi all.. ..NET + MSXML platform....VB Need to build a list of all the entities and attributes to allow the user to do search...how can i do that from the schema ?? Cheers Rohit ...more >>

Schema validation question
Posted by Leonid Shprekher at 10/9/2003 10:37:56 AM
Question to the Schema pro: If nillable="False" is default for Schema element, why schema validation of my XML doesn't fail if I don't provide any value for the tag? Thanks, Leonid. ...more >>

xpath query fails with msxml4.0
Posted by adam at 10/9/2003 4:54:50 AM
Hi the following xpath query running in javascript/ie xmlClinDom.selectNodes ("/clinicalInfo/clinNoteItems/clinNoteItem[@typeId >= 20000 && @typeId < 40000]"); works fine except with msxml4.0. ("/clinicalInfo/clinNoteItems/clinNoteItem[@typeId >= 20000]"); works ok with both. ...more >>

XMLSerialzer class
Posted by tushar at 10/8/2003 5:36:54 PM
Hi I am trying to use XMLSerialzer class to generate serializable class for following schema. <xs:element name="KeyIdentifiers" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="KeyIdentifier" minOccurs="0" maxOccurs="unbounded"> ...more >>

Loading XML with missing DTD
Posted by Morten Nielsen at 10/8/2003 4:26:15 PM
I'm trying to load an XML file, that references a DTD without a relative URL. This renders the error: Could not find file "C:\WINNT\system32\capabilities_1_1_0.dtd". Here's the XML I'm loading: http://maps1.intergraph.com/wms/ussample/request.asp?SERVICE=WMS&REQUEST=GetCapabilities Notice the...more >>

Fastest Thread-Safe XML Read
Posted by stevec NO[at]SPAM atomic9.net at 10/8/2003 2:22:31 PM
Looking for any input on the fastest and most thread-safe way to read some small (~8k) XML files from a local disk. System.Xml.XmlTextReader xReader = new XmlTextReader( new System.IO.StringReader( configFile ) ); lock( xReader ) { while ( xReader.Read() ) { ...more >>

What's wrong
Posted by Kate Luu at 10/8/2003 1:20:35 PM
I have down load some source codes from the internet and it wasn't worked right, but I'm really know what's wrong about it. May some expert help me please...I'm deeply appreciated for your help. Have a nice day... Kate the code look like this: string strPersonSchema = "PersonPet.xsd...more >>

XML Products
Posted by Harold Huggins at 10/8/2003 7:21:02 AM
What MSN Profession download products are recommended to test and post XML souce code. In addition to any reading material?...more >>

Best Practice: Loop through Nodes in NodeList vs. XPathNodeIterator
Posted by panik at 10/8/2003 7:09:32 AM
Hi, say I have an xml file with an X number of nodes I want to loop through (to, for example, display each node as a HyperLink in an asp.net webpage). Which of both is best practice: 1. Loop through a NodeList (e.g.: foreach XmlNode in XmlNodeList ... ) 2. or use an XPathNodeIterator Are...more >>

xmlTextWriter to Stream to xmldoc produces null stream?
Posted by steveg NO[at]SPAM ungerboeck.com at 10/8/2003 4:32:12 AM
I have a dataset from which I need to extract certain columns, format them into xml and output to an xmldocument object. From reading various posts on similar subjects, I have come up with the following test code (using 2 constants, rather than my dataset values): Public Sub test() Dim...more >>


DevelopmentNow Blog