| Dataset.WriteXml how to force empty elements for DBNull Value in Columns ? (3 replies) |
| microsoft.public.dotnet.xml |
| I have a dataset that has DBNull in certain columns, now when I write out this one to XML, I only get the columns as elements that do have data in it. However I do need also the empty colums as empty elements in the XML. How to do that ? I don't understand why there is no simple option to specify the output format, or did I miss something ? regards andreas |
|
| Looping through attributes (5 replies, VIP) |
| microsoft.public.dotnet.xml |
| I need a sample that shows how can loop through the attributes and display the data.(.net / c#) ?xml version "1.0" encoding "UTF 8"? riders rider prename id Lance /prename surname Armstrong /surname /rider rider prename Roberto /prename surname Heras /surname /rider rider prename George /prename surname Hincapie /surname /rider Position Element Operation "insert" remark "Test Add Remark1"/ Element... |
|
| Error opening xml file (6 replies, VIP) |
| microsoft.public.dotnet.xml |
| I'm attempting to use XmlTextReader. When I call the Read() method I get the following error: "The data at the root level is invalid. Line 1, position 1." The xml is formatted fine. The first entry in the xml file is a valid tag. What does this error trying to tell me. I can read the file using a TextReader class just fine. |
|
| Inheritance in XSD? (4 replies, VIP) |
| microsoft.public.dotnet.xml |
| I'd like to define a schema that allows, for example, a "table" element that takes on one of two forms distinguished by what attributes are present. For instance, table foo "3"/ table bar "5"/ Note that I want to exclude table foo "3" bar "5"/ ; i.e., using *both* attributes should fail to validate. A familiar example of this sort of thing is the element named xsd:element in XML Schema itself. It ... |
|
| Build up xpath dynamically in xslt (3 replies) |
| microsoft.public.dotnet.xml |
| After a bit of research I think what I'm trying to do with xslt can't be done, but someone may have some pointers. I have 2 sections in my xml 1 with properties the 2nd with image path data each property can have more than 1 set of image path nodes What I'm trying to do is transform the property data into the format I require at the same time finding any associatted image paths Here's my xml web t... |
|
| XML as general-purpose database? (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi! I'm coming from building desktop applications using Borland Delphi (Win32) with embedded databases (compiled into the executable). While I find this a very powerfull combo, I'm looking into how I would want to make those kind of applications using C#. As I can't offer potential customers any direct support (it's just a sidekick), I don't want to have them dealing with real database servers lik... |
|
| xpath wildcard: ANY offspring match (2 replies) |
| microsoft.public.dotnet.xml |
| I'm still struggling with xpath syntax. I'm creating a menu via XSLT that checks to see if any given node has a descendant somewhere down the chain that is the 'current active page' and, if so, then it should display itself. I've been using this for my syntax: xsl:if test "page/linkID | page/page/linkID | page/page/page/linkID | page/page/page/page/linkID $activeLink" this is obviously way more ve... |
|
| How to read certain node from xml (3 replies) |
| microsoft.public.dotnet.xml |
| I want to read certain node from xml file by the ID. It means taht I know the ID of person, and I want read all data that person (eg: name,mail...). persons.xml ?xml version "1.0"? persons person id 1 /id name Tom /name mail tom@tech.com /mail /person person id 3 /id name John /name mail john@it.com /mail /person /persons How to read this data (c ) and write to variables eg: strName,strMail Thanks... |
|
| Serialization and Schema (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, I?m need to obtain an xml file (or a .xml and .xsd) with inline schema, from a custom class. All of this, in runtime. Making serialization, I obtain a good xml, but the xml file looks like "plain text" to other aplication, and I cannot put some formating options to datetime, numeric and others types. There is any XML... directive that instruct serializer to make inline XSD schema, as dataset.w... |
|
| Converting an XML documentation file to a help file (2 replies) |
| microsoft.public.dotnet.xml |
| Hi all, This may seem like an obvious question. How do I convert the XML documentation file that the C# compiler emits from my XML comments into a help file for the Microsoft Document Explorer? Is there a tool program or something that I am missing? I cannot find anything in any of the documentation. Regards, Chris |
|
| XPath expression with namespace (3 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hello I am trying to use SelectSingleNode in an XMLDocument for a node that has namespace defined. My problem is the XPath for the node with no namespace defined works as soon as I put namespace it returns nothing. Help KB |
|
| Create Login in asp.net using XML (2 replies) |
| microsoft.public.dotnet.xml |
| Hi. I'm trying to create a login page in asp.net using information from an XML document. (visual basic) I've tried Rowfilter to find a cell with the 'username' and then match this with the 'Password' cell on the same row.... allow page to redirect if these match: If 'username' match 'password' then "redirect to next page" else "Error message" Does anyone know how to create this login function? Tha... |
|
| Using XPath with VB.NET (4 replies) |
| microsoft.public.dotnet.xml |
| Hi, I have the following XML TREENODES TREENODE TEXT "Car 1" ID "A1" TREENODE TEXT "Spoilers 1" ID "A1 1" / TREENODE TEXT "Spoilers 2" ID "A1 2" / /TREENODE TREENODE TEXT "Car 2" ID "B1" / TREENODE TEXT "Car 3" ID "C1" TREENODE TEXT "Spoilers 1" ID "C1 1" / TREENODE TEXT "Spoilers 2" ID "C1 2" / /TREENODE ....... 'Other XML nodes /TREENODES I have the above XML document (I know that naming of the ... |
|
| Importing Selected Data from XML (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| In order to achieve the archiving of old data from my database I have exported the information from my dataset to an XML file using the standard WriteXML method of the object. Now suppose in the future I wish to restore only specific records (which all have a unique reference) from that file back to the dataset so they can be restored back to the database. Can anyone tell me how I can allocate spe... |
|
| Displaying XML (2 replies) |
| microsoft.public.dotnet.xml |
| There have been lots of posts on this topic, but I haven't been able to apply any of the suggestions to my situation. I have an .aspx page with a form on it that has several submit buttons on it. Clicking a button will cause a web service action that returns XML. I would like to display this XML response on the page with the form. I know I can display XML in an IFRAME by pointing its source to an ... |
|
| xsd.exe and XmlType? (3 replies, VIP) |
| microsoft.public.dotnet.xml |
| I have a relatively simple xsd which I am turning into a class using "xsd.exe". I then create a collection of these classes. I have run into one minor problem. When serializing my collection, I would like the names of the elements to be different from the class name as generated by xsd.exe. I don't want to change the class name itself, due to naming conventions. This is trivial to do after the fac... |
|
| Custom Configuration management for app.Config (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, I created a custom Section handler using System.configuration for Web application to read from Web.Config File. If I want to use the same handler to read from app.config file: app.config is not interpreted as XML file, & the code breaks. Here is the sample of the logic. For Each node In section.ChildNodes For Each element In node.ChildNodes elementKey element.GetAttribute("key") elementValue e... |
|
| Howto make explorer use my app for an xml file (4 replies, VIP) |
| microsoft.public.dotnet.xml |
| How can I make windows (XP) explorer do for my application what it does for MS Office application with the ?mso application progid "Word.Document"? where it automatically recognizes the xml file as a word document and launches it when the file is double clicked. I would like to do the same for my application. I suppose an alternative is to use and register my own custom extension, but I would rath... |
|
| Datset mapping to element/attribute (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hello! First please understand tha my xml knowledge is very very short. I'm new at xml world. I need to understand how do I map a given sqlColumn to a xml element or attribute. I was given a XSD that has a certain number of elements and attibutes. This XSD was provided by another company so that my company can create a xml file filled with data that comes from my database. In order to acomplish th... |
|
| XmlDocument.Load() and resolveExternals (2 replies) |
| microsoft.public.dotnet.xml |
| I have to load an XML file and look through it for a particular value in a known element. The problem is that the document has a DOCTYPE defined at the root with a DTD that I don't have. Is there a way to use the DOM to load this without it throwing an exception because it can't find the dtd file? I saw in the documentation that (perhaps an earlier version) had a property called resolveExternal th... |
|
| Accessing an xml file (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, I've got an xml in a virtual directory which it requires authentication to access there. How could I load the xml file from a .net app to process the content of the xml? How Can I pass my credentials to read the file? Thanks |
|
| join xml documents? (2 replies) |
| microsoft.public.dotnet.xml |
| I have two xml documents: ?xml version "1.0" standalone "yes"? CodesFile CatNumber number 1 /number code 001 /code /CatNumber CatNumber number 2 /number code 002 /code /CatNumber CatNumber and ?xml version "1.0" standalone "yes"? NewDataSet Table Number 1 /Number category name Regular /category name /Table Table Number 2 /Number category name Overtime /category name /Table Table /NewDataset I need... |
|
| Where can I find a BerkeleyDB XML for .Net || Has anybody found anything about .Net and BerkeleyDB (5 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, I am looking for any information regarding BerkeleyDB XML for .NET or if anybody have information regarding an alternativ (free) to BerkeleyDB XML for storing XML and using XQuery. (Yes I have looked at http://www.sleepycat.com) I have found the samples in the download (http://www.merrells.com/john/dbxml/archives/cat faq.html#000197) I am currently having a look at SWIG.... Any more links or a... |
|
| XML deserialization from string (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, I have an XSD and created a VB.NET class file from it. When I have an XML file (conforming to the schema), it is straight forward to deserialize using the class file. I am looking for ways to deserialize when I have the XML as a string and not in a file. Writing the string to a file and deserializing from the file might have an adverse effect on the performance. Anyone know of a good method to... |
|
| XML Stylesheets (5 replies, VIP) |
| microsoft.public.dotnet.xml |
| I need to create some XML stylesheets to transform some XML data into HTML pages. So, I'm looking to improve my understanding of XML stylesheets. I do have a book, "Professional Visual Basic 6 XML" which has a chapter on stylesheets, but I'm finding it a little hard to understand. I also found this web tutorial: http://www.oneworld.org/thinktank/iktools/xmltutorial/xml stylesheets.html which I'm w... |
|