| Passing node-sets as parameters? (4 replies, VIP) |
| microsoft.public.dotnet.xml |
| I essentially need a countif() function for xsl. Something to where I could do countif(node set, condition). Rather than try to get too extreme, i decided to just write one for my countif() with the condition hardcoded. (this was also my first venture into creating "functions") Pseudo code is essentially this: Look at the current node and check the condition. If the condition is true, call our fun... |
|
| xml to pdf using c# asp.net (4 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, At the moment I am working on an documentation tool where customers can build their own documentation by selection chapters of standard docs and building their own 'tree' of documentation. This is all done in xml, and now I want to transform this xml document to a pdf. Does somebody have experience with this? Tnx in advance! Martijn |
|
| New XML Editor in Visual Studio 2005 Beta 1 (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Announcing: New XML Editor in Visual Studio 2005 Beta 1 Visual Studio 2005 Beta 1 contains a completely new XML Editor, built on top of the core text editor provided by Visual Studio. It is entirely written in C# and leverages all the cool stuff provided by the System.Xml .NET assembly. The new XML editor provides support for editing XML and DTD content, including special support for XSD and XSL. ... |
|
| Write OpenFileDialog.FileName to XML file (2 replies) |
| microsoft.public.dotnet.xml |
| Hi, Here is something I can't figure out what I am doing wrong: I use a OpenFileDialog to select a file. I put the result string from the FileName property in a textbox on my form. Later on I save the ..Text property to an xml file. Nothing happens, the filename is not writen to the xml file, and there is no exception. When I replace the OpenFileDialog with a FolderBrowserDialog and I copy the Sel... |
|
| Schema Valdiation error (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| I try to validate a complex schema using XSD and I get a series of errors of the following format: Validation Error:'http://xml.msdw.com/ns/mdco/data/1.0:tradeSymbol' cannot be a member of substitution group with head element 'http://xml.msdw.com/ns/mdco/xml/2.0:abstractIdentifier'. An error occurred at file:///c:/mdco data 1.0.xsd, (48, 3). Severity:Error This schema was generated with XML Spy an... |
|
| Accessing a database (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, I am new to .NET, would like to access a database on my localhost (or any other server) through Web Services (not ODBC connection). Please advise me on how to do it, any related article with source code would be of great help. Thanks, Germic |
|
| Transfrom() issues with xsl:document() function (2 replies) |
| microsoft.public.dotnet.xml |
| I'm getting a strange result when I reference an external xml document in my XSLT. The transformation work's fine in Xselerator, but not in .NET. It looks as though I'm getting garbage in the output. Here's the relevant portion of the xslt: ?xml version "1.0"? xsl:stylesheet version "1.0" xmlns:xsl "http://www.w3.org/1999/XSL/Transform" xsl:output omit xml declaration "yes"/ xsl:variable name "xml... |
|
| Improperly nested XML when column contains NULL (2 replies) |
| microsoft.public.dotnet.xml |
| I'm getting improperly nested xml when a column contains null. I modified the first row (customer ALFKI) to have a NULL Address column. I'm using the following XSD Annotated Schema against the NorthWind database: xs:schema xmlns:xs "http://www.w3.org/2001/XMLSchema" xmlns:sql "urn:schemas microsoft com:mapping schema" xs:element name "customer" sql:relation "Customers" sql:key fields "CustomerID" ... |
|
| SelectSingleNode Help (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hello, I know how to find a node using one attribute comparision using the following syntax, it looks for a node with one attribute equal to a value. xNode mxDoc.SelectSingleNode("//Column[@Item '" & strColumnKey & "']") What would the syntax be for comparing 2 attributes? Thanks, JeffS |
|
| WSE 2.0- Generating abstract SoapService classes from WSDL (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| WseWsdl2.exe can be used to generate SoapClient classes from the WSDL. How can we generate abstract classes for WSE 2.0 based web service implementation based on the contracts specified in a WSDL file (just like WSDL.exe). Manually coding the server is not an option as the WSDL file is complex. |
|
| loop using <xsl:for-each> and external javascript function (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, I have an xsl as below. I am trying to loop using xsl:for each and in the select attribute of xsl:for each i am getting the nodeset from the external javascript function in the CDATA section. This code works fine with MSXML4.0 parser. When I try to use .Net, it gives me error saying " The expression passed to this method should result in a NodeSet." ?xml version "1.0" encoding "UTF 8"? xsl:sty... |
|
| XSL not working as expected.... (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Folks, I'm trying to get something done in XSL and either I'm just missing some silly thing, or it's not possible to do it.... which is it??? What I'm trying to do is have a XML document that (to some degree) describes a report basically, it's a collection of labels and XPath references of where in the XML document to find the values for those labels. Seems pretty simple and straightforward, and l... |
|
| How do you generate classes from an .xsd file? newbie question (2 replies) |
| microsoft.public.dotnet.xml |
| Hello, I am working on a VB.NET web service that will be used to send and receive job openings. I found a site called "hr xml consortium" "The HR XML Consortium is an independent, non profit organization dedicated to the development and promotion of a standard suite of XML specifications to enable e business and the automation of human resources related data exchanges." I would like to use their x... |
|
| Selecting nodes w/ distinct values (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| I have a large document w/ nodes whos values (i.e. Text and/or InnerText property) are different file types. I would like to scan this document and find out how many different file types these nodes actually contain. This would essentially equal to calling a "Select Distinct ..." statement on a database table. Result should be something like that: "Document contains 3 different file types: TXT, DO... |
|
| Parse/convert "True" or "False" to boolean? (3 replies, VIP) |
| microsoft.public.dotnet.xml |
| I have what should be a trivial problem. I am using XMLSerializer to serialize an object. It serializes boolean values as "True" and "False". I then want to use an XSLT on this XML, and I want to use one of these booleans in a test. How do I convert one of these to a boolean in a test?!? I know that I could compare it as a string to "True" or "False", but that seems extremely crude to me. The "boo... |
|
| Romainian Teenagers Raped. Banned Photos. 8553 (3 replies, VIP) |
| microsoft.public.dotnet.xml |
| Pictures from banned site of young romanian teenagers being brutally raped. http://205.251.154.36:89/teenrape/TeensRaped.scr ozjbbjxurtbmorbqbuglnsplpnihiwvytlb |
|
| Web Service returns 404 (2 replies) |
| microsoft.public.dotnet.xml |
| I have read numerous posts on this same issue and searched Microsoft's knowledge base and there are no solutions offered. I have a web service installed on 4 machines: 2 dev servers, 1 staging and production. The web service works fine on 3 of the machines, however, on one dev server, invoking the service returns a 404. You browse to the .asmx file and view the wsdl no problem, but invoking a web ... |
|
| replacing nodes (2 replies) |
| microsoft.public.dotnet.xml |
| Hi all, Following in a portion of an xml document. I would like to replace "nso:Proposal" node with its child "w:p" node programmatically. How can I do this? Thanks. ns0:Proposal ns0:Company w:p w:r w:t test company /w:t /w:r /w:p /ns0:Company /ns0:Proposal |
|
| xsl question (3 replies) |
| microsoft.public.dotnet.xml |
| Hi group, I use this xsl: ?xml version "1.0" encoding "ISO 8859 1"? xsl:stylesheet version "1.0" xmlns:xsl "http://www.w3.org/1999/XSL/Transform" xsl:template match "/" html body table class "TekstChart" border "1" tr th bgcolor "#f5deb3" align "left" Plaats /th th bgcolor "#f5deb3" align "left" Vorige /th th bgcolor "#f5deb3" align "left" Titel /th th bgcolor "#f5deb3" align "left" Artiest /th /t... |
|
| End-of-line Handling in the XmlReader (.NET Framework Version 1.1) (2 replies) |
| microsoft.public.dotnet.xml |
| According to the XML 1.0 (Third Edition) W3C Recommendation (http://www.w3.org/TR/2004/REC xml 20040204/#sec line ends) all #xD, #xA, and #xD#xA character combinations should be converted to a single #xA character. According to the "Reading XML with the XmlReader" section of the ".NET Framework Developer's Guide" on line help, the XmlReader will not perform this normalization by default. You can c... |
|
| xsd.exe errors with schemas importing other schemas (2 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, I am working with XSD.exe vs.net command line util. I have an XSD that I am trying to use to generate classes with. However, the XSD references another schema and the XSD.exe is having trouble finding the referenced schema. Does anyone have an example of what the command line params would be so that the tool is aware of all schemas? Does the tool have trouble with the XSD lines: xmlns:r "somew... |
|
| C# code generation with xsd.exe "how to ?" (3 replies, VIP) |
| microsoft.public.dotnet.xml |
| Actually, the very first question I should ask is "does it make sense at all?". For 2 days I've been trying to generate C# classes using XML schema and xsd.exe tool. So far the results are not exciting but I assume I am seriously short of knowledge, so here I am asking for help. My current situation is that I can define schemas that will generate very simple classes but I have two major problems: ... |
|
| XML errors in webservice call (7 replies, VIP) |
| microsoft.public.dotnet.xml |
| I am creating some code that runs in Excel using VSTO. I am trying to get some xml from a webservice, using the following code: GBWPipeline.PipelineService pipeline new GBWPipeline.PipelineService(); string xml pipeline.GetOfferSale(OfferSheetId, CustomerId).GetXml(); I get a "There is an error in XML document. (1, 220)" message. If I execute the same method from WebServiceStudio, it works fine (u... |
|
| newbie: error when validating xml file (2 replies) |
| microsoft.public.dotnet.xml |
| IDE: VS. 2003 .Net OS : XP Pro MSXML4 I'm experimenting with xml in visual studio, for the purpose of learning... I created a xml file (country.xml): ?xml version "1.0"? Test Country Name Norway /Name Capital Oslo /Capital /Country Country Name Norway /Name Capital Oslo /Capital /Country /Test From this xml file i let visual generate a xsd file (in the menu I choosed XML | Create schema) here is t... |
|
| XmlNodeList - how to find out index of node in original child collection? (6 replies, VIP) |
| microsoft.public.dotnet.xml |
| Hi, Given a node, how can one find out its index in the collection of nodes it belongs to? Thanks |
|