| Facet and XML (3 replies) |
| microsoft.public.dotnet.xml |
| I have a xmlschema (xsd) that has a simple type. In this simple type I set the minlength facet to 2. I then generate the dataset from this xsd. I use the dataset in my application (ie. I bind that to a datagrid). When I enter the data into the datagrid, it ignores this minlength facet that I set. How do I validate against this facet? I assumed it would handle this automatically, or throw an except... |
|
| DateTime - how do i transform? (3 replies) |
| microsoft.public.dotnet.xml |
| I am consuming a webservice. That webservice returns XML everything is returned as a type of string. One of those "strings" is a date field. I am using an XSL page to transform the XSL into HTML on .NET. How can I convert this to a true datefield? I don't want to show it in a long date format. Here is the current snippet: b Date: /b   xsl:value of select "substring before(header/date,' ')"/ b... |
|
| XmlSerializer / XmlInclude (2 replies) |
| microsoft.public.dotnet.xml |
| Hi, I'm working on a graphics program and do have a problem whith serializing the data. The program is seperated in two parts: 1. Windows Application (MDI) that manages the windows 2. Class library for the document and the graphic object classes. MyGraphicObject is the main class, MyEllipse, MyClock etc. are derived classes. The Document class supplies an ArrayList containing all graphic objects. ... |
|
| Problem with DTD in XML files (4 replies) |
| microsoft.public.dotnet.xml |
| BlankHi All, when my xml file has a DTD declaration or a stylesheet declaration, when I try to open it using system.xml namespace methods, it gives me an error. Is there any way I can open it without removing these declarations from the xml ? Regards, Vijay |
|
| Howto append one document to another (2 replies) |
| microsoft.public.dotnet.xml |
| I have 2 XML documents xmlDashboard and xmlStrings. I want to append everything in xmlStrings to xmlDashboard. In MSXML 2.6 I could just append on eto another. However, in .NET the following gives an ArgumentException (which is documented): xmlDashboard.DocumentElement.AppendChild(xmlStrings.DocumentElement); So: How do I append everything fprm one document to another? Regards, Steffen |
|
| Signing XML with signedXml (4 replies) |
| microsoft.public.dotnet.xml |
| Does anyone have any expereience signing XML with signedXml, or for that matter using any method whatsoever? Please respond by e mail. Thanks. |
|
| XslTransform.Load() (2 replies) |
| microsoft.public.dotnet.xml |
| Hi, I am trying to use XlsTransform.Load() function with a XmlNaviagator as an argument. I am getting the following exception. System.Xml.Xsl.XsltCompileException: (0,0) : System.NullReferenceException: Value null was found where an instance of an object was required. at System.Xml.Xsl.UseAttributeSetsAction.ParseUseAttributeSets(String value, Compiler compiler) at System.Xml.Xsl.UseAttributeSetsA... |
|
| Passing XmlTextReader to XmlDocument in ASP.NET (2 replies) |
| microsoft.public.dotnet.xml |
| Check this out... I am using a XmlTextReader object as follows: Dim sURL As String "http://blahblah/blah.xml" 'The above is an Internet URL that returns ' an XML document from MOREOVER.COM 'It is NOT a classic *Web Service* url per se. Dim myReader As New XmlTextReader(sURL) Dim xDoc As New XmlDocument() Then I do this: xDoc.Load(myReader) At this last line and not before it returns a System.Net.W... |
|
| How to load XML via HTTP (3 replies) |
| microsoft.public.dotnet.xml |
| Hi! I'm trying to load xml doc via http: xmldoc.Load("http://webserver/doc.xml") it hangs fpr dsome time and then gives me error that it has problems with this file.... I can load the file locally though... anyone? Thank you, Dima. |
|
| XmlDocument.Save (4 replies) |
| microsoft.public.dotnet.xml |
| Hello All, I tried to do a XmlDocument.Save today. It works fine except that it does not put the standard xml header into my file my xml looks like root /root but ideally it should look like ?xml version "1.0" root /root any ideas as to how to make the doc.Save insert the standard header as well ? regards, Abhishek. |
|
| Extracting and changing attribute values? (4 replies) |
| microsoft.public.dotnet.xml |
| Hi, How can I extract, change and then save to the same node its new attribute? Here is an example: User Locale "US" Active "true", JoinedOn " dateTime in here , Membership "Silver" : /User So, if I wanted to change any of the attributes (say Membership to "Gold") and then save it, how would I do it? Remember that User is a root node! |
|
| binding a datagrid to xml (2 replies) |
| microsoft.public.dotnet.xml |
| Hi, I know you can bind data from a database to a datagrid. Is it possible to bind data from a xml document to a data grid and/or to form controls ? How would I go about doing that ? TIA Silk |
|
| Assigning a value to an XML Document (2 replies) |
| microsoft.public.dotnet.xml |
| Gidday, I've just started using .Net and have encounter a basic problem using System.XML classes. I cannot assign a value to a Node. I get the following exception, An unhandled exception of type 'System.InvalidOperationException' occurred in system.xml.dll Additional information: Cannot set a value on node type: Element. He is some dummy code the represent what I'm trying to do, Dim lobjXML As Sys... |
|
| XML Encode anyone know if theres a class to convert a " to " (5 replies) |
| microsoft.public.dotnet.xml |
| Is there a xmlencode class or method that will convert a string properly encoded for xml. i.e. dim s as string s XMLNode.Encode("Dave & Busters is ""cooll""") ' s is now Dave & Busters is "cool" ,Thanks |
|
| Can this XML be optimized for retrieval? (5 replies) |
| microsoft.public.dotnet.xml |
| I'd like to replace my resource DLL's with equivalent XML files. I'm using the following structure: resources string x 101 String Resource /x 101 .. . . x 200 String Resource /x 120 /string /resources Here's the XPath I use to retrieve a a string: XPath "//string/" & FetchID ' If Fetch ID is numeric, 'x ' has been prefixed Return m XMLDOM.SelectSingleNode(XPath).InnerText Right now, string retriev... |
|
| Writing XML to a stream (2 replies) |
| microsoft.public.dotnet.xml |
| Hi I want to generate a small XML document on the fly in a web service and return this well formed XML to the client as a string. Can someone please send me some sample code how to do this in VB.NET or C#. Thanks Manuj |
|
| Reading an XML file from ASP (2 replies) |
| microsoft.public.dotnet.xml |
| Hello, first of all, please excuse me if this question is not an "high level" one.... I have an XML file like this: field name "ORDER LINE1" value 1 /value /field field name "ORDER CODE1" value qwert0184 /value /field field name "ORDER LINE2" value 3 /value /field field name "ORDER CODE2" value ABCD342 /value /field ......and so on. How can I loop into the file and extract only the information I n... |
|
| Executing a XSL transformation from an XML string (2 replies) |
| microsoft.public.dotnet.xml |
| Hi guys, how can I execute a XSL transformation from a string containing an XML (not the file name !!) and the file name of the XSL file ? Thanks in advance |
|
| XML & XSL & HTML (2 replies) |
| microsoft.public.dotnet.xml |
| Can anybody send me an example where i have a html page using a xsl to print an xml data ?? Regards, Question One |
|
| XML / XSD experts - please read (3 replies) |
| microsoft.public.dotnet.xml |
| Hi I have an XML file and the corresponding XSD file. Now I want to show the XML file in a Richtextbox in black color. All the elements and attributes that are not mandatory and are not already contained in the XML file shall be shown in red at the correct position. That should visualize: What is there and what is possible: A sample: XML File: Root Parent Attribute1 "Hello" Attribute2 "World"/ /Ro... |
|
| datasets table attributes and xml (3 replies) |
| microsoft.public.dotnet.xml |
| Hi, Hope someone can help with this. I have created a table in a dataset and have loaded it with data, I then write it out to a file using writeXml. this works great. however the xml comes in elements form, and i want some of it to be in attribute form. example my table is called "people" with two columns "name" and "age" when I do a writeXml I get datasetname people name fred /name age 3 /age /pe... |
|
| Simple question...thanks! (4 replies) |
| microsoft.public.dotnet.xml |
| Hi. Still learning XML. I got an XML file with data in it, and wrote an XSL to it and pulled selective data from the XML successfully. My question is this: can you make multiple different XSL's to point to the same XML file? This way they pull separate data, yet all point to the same XML file and only have to manipulate the one XML file? If so, then the line ?xml stylesheet type "text/xsl" href "h... |
|
| XmlSerializer and strong typing (5 replies) |
| microsoft.public.dotnet.xml |
| I have some classes defined which I would like to serialize to and from XML. If I use the code that is commented out, it works fine and the arrays are strongly typed (but unless I use an ArrayList I cannot add elements after Deserialization), but if I use the ArrayList variant, the ArrayLists will contain XmlNode and XmlElement nodes after deserialization, even if I specify the type in the XmlElem... |
|
| Read and modify a xml string? (8 replies) |
| microsoft.public.dotnet.xml |
| Is it possible to read from a xml *string*, looping through all the nodes and replace the empty ones with values? (there can be several nested levels deep) This should be easy right? Jean Marc |
|
| XML -> DropDownList (5 replies) |
| microsoft.public.dotnet.xml |
| Hello, Can anyone point me in the right direction or provide me with some sample code that will load this xml file into a drop down list? ?xml version "1.0" encoding "utf 8" ? companytype option value "Agricultural" name "Agricultural" / option value "Apparel" name "Apparel" / option value "Beverages" name "Beverages" / option value "Building Products" name "Building Products" / /companytype Thank... |
|