microsoft.public.dotnet.xml Archive - January 2004
Post a message to this list
Messages
Page: 1234567891011121314151617
Retrieving JUST text from a node with child nodes (3 replies, VIP)
microsoft.public.dotnet.xml
Hi all, Can't seem to figure out how to retrieve the text of a node with multiple child nodes (and I just want the text of the parent, not the InnerText or InnerXML that comes with it). My doc looks something like this: parent attrib1 attrib2 attrib3 Extractable string child some more text /child child yet more text /child /parent What's the best way to return "Extractable string"?
Appending to an Attribute (3 replies)
microsoft.public.dotnet.xml
Is there a way to append to an attribute in XSLT. For example: input name "emailaddress" style "width:200px" xsl:apply templates select "//object[id 'emailaddress']"/ /input xsl:template match "//object" xsl:attribute name "value" xsl:value of select "@dvalue"/ /xsl:attribute xsl:attribute name "style" xsl:value of select "@error"/ /xsl:attribute /xsl:template In the above example the style attrib...
XSL Problem (3 replies)
microsoft.public.dotnet.xml
Hi, I have the following problem. There are 3 files. a) XML file ?xml version "1.0" encoding "UTF 8"? ?xml stylesheet type "text/xsl" href "hall.xsl"? quizcirclecontests contest id 1 /id date 15 Nov 02 to 22 Nov 02 /date participants name AS /name name JP /name /participants /contest contest id 2 /id date 22 Nov 02 to 29 Nov 02 /date participants name AS /name name DS /name name SD /name name AS /...
real newbie question... (2 replies)
microsoft.public.dotnet.xml
Hi, I'll cut to the chase, are XSLT files used simply for display or is it possible to put controls on them, like buttons and textboxes etc... Real lame assed question I'll favour, but hey... Thanks in advance Colin B
How can I swap two xml nodes that belong to the same parent? (2 replies)
microsoft.public.dotnet.xml
How can I swap two xml nodes that belong to the same parent? Examples would be great! Thank you, Sasha
xsd.exe and include (3 replies)
microsoft.public.dotnet.xml
I'm using xsd to generate c# classes representing XML files. Mostly for configuration. I find that there is a lot of commonality of definitions between the various xsd files and I would like to split out these common definitions into a separate xsd file. I have some idea of how to do this with the .xsd files using include. However, it is not clear to me that I can then use XSD to generate the cs f...
XMLreader to text (2 replies)
microsoft.public.dotnet.xml
How do I read the entire XML text from an XMLReader ? I just want to retrieve the XML string from a SQL SP formatted as XML. I assumed the ExecuteXMLReader was the best option. So whats the most streamlined process of getting the XML into a string ? Thanks Bill
XML Serialisation problem (2 replies)
microsoft.public.dotnet.xml
Hi, We are serializing objects to an xmlfile that is validated against a schema. For this schema the elements are serialized in the wrong sequence. Does anyone know how I can let the serializer sequence the object members in the order required by the schema? thx Patrick De block
Problem with RSS feed (6 replies, VIP)
microsoft.public.dotnet.xml
Hi, I am trying to incorporate Really Simple Syndicate (RSS) news into my asp (not asp.net) based website. Since RSS is basically XML, I am trying to open the xml file and parse it. On Asp.net the following code works seamlessly. I am running IIS 5.1 on Win Xp Sp1. Dim objXMLNews set objXMLNews Server.CreateObject("Msxml2.DomDocument.4.0") objXMLNews.async False objXMLNews.load("http://www.bbc.co....
Convert string into XML format (6 replies)
microsoft.public.dotnet.xml
Hi ! I have a big problem, i'm using XMLdocument to add elements to a XML file. Elements are like this: name Paolo /name comment this is a comment /comment description In italian "is" is รจ ! /description the problem is that i want to encode text in name,comment and description. I have tryed to use InnerText property, but it doesn'work for encoding (like was written on a msdn example..................
Auto Increment in Datasets (3 replies)
microsoft.public.dotnet.xml
I have a dataset with a AutoIncrement column.. I write this to a XML file and read it back..to a Dataset.. The auto increment works perfectly every time. It picks up were it left...were does it pick up the last value from?.. I mean I thought it uses the max value 1 logic for existing rows.. not until I saw this.. I had a dataset with 3 rows.. UnqColumn 1 UnqColumn 2 UnqColumn 3 I removed the last ...
Transforming SOAP documents (4 replies, VIP)
microsoft.public.dotnet.xml
I'm trying to write a XSL style sheet that will transform a SOAP document into a different type of SOAP document. However, if I try to create an element in my style sheet of " xsl:element name "SOAP ENV:Envelope ", nothing gets generated. The problem is with the ":Envelope". If I remove that then it works fine. I believe the ":Envelope" is referred to as an Element Extension but I can't figure out...
XML Packets (3 replies)
microsoft.public.dotnet.xml
Hi: I am working on a Client Server application sending XML messages through TCP/IP connection. I need to construct XML packets and send it through TCP/IP to the client from the server. I am looking for code how to construct XML packets enclosing the XML text and send it to the server... Any help will be appreciated. Thanks in advance.. Kapil Shah
Web Services SDK - Where ? (WSDK ) (5 replies, VIP)
microsoft.public.dotnet.xml
MSDN includes a some interesting pages about using the Microsoft.com Web Service SDK, Version 1.0 at http://msdn.microsoft.com/library/default.asp? url /library/en us/mscomwssdkproject/sdk/microsoft.com web service sdk ver sion 1.0.asp Everything except where to get it. I can't find anything by this title for download anywhere. Can someone point me in the right direction? Thanks!
GetXml from DataSet (2 replies)
microsoft.public.dotnet.xml
Hello, I transfer data from a dataset to an XML document by using the GetXml method in VB.NET. I noticed, that for datafields, which are empty (have no content) in the dataset, no elements are created in the XML document. How can I force to generate elements (with no content) for this kind of datafields ? Thanks em
attribute wrapped with "\"? (2 replies)
microsoft.public.dotnet.xml
I have some code that is building an XmlDataDocument: XmlElement elem xdd.CreateElement("parameter"); XmlAttribute attr xdd.CreateAttribute("name"); attr.Value parameterName; elem.Attributes.Append(attr); elem.InnerText parameterValue; xdd.DocumentElement.AppendChild(elem); When I create attributes, the xml contains "\" around the attribute values. Why is this? xdd.InnerXml returns.... " parameter...
Support W3C RDF? (2 replies)
microsoft.public.dotnet.xml
Hi, Does anybody know whether Microsoft's Visual Studio supports the W3C Resource Description Framework concept? If so, how? regards, Maurice
Deleting a posted message (2 replies)
microsoft.public.dotnet.xml
Is there a way I can delete a posted message OR at least take my email off. I have mistakenly given my email and have been receiving spam like anything. It would be really helpful if the admins of this group can help me delete that specific post.
XML syntax as string (2 replies)
microsoft.public.dotnet.xml
Hi I am trying to define string xml " ?xml version "1.0"? "; But it gives error messages. Can any help me define ?xml version "1.0"? as string... Thanks in advance Rahil
XSD question (4 replies)
microsoft.public.dotnet.xml
If this is the wrong forum, please post the correct forum name. I am trying to create a complex XSD. I would like to know if anyone has an idea how to specify certain elements based on an attribute. In other words: I have tag A which as an attribute of "class"(sorry this can't change due to people on the other side) If the "class" attribute is 1, then only "div" tags are allowed. If the "class" at...
XmlTextReader.Read() and ampersand? (2 replies)
microsoft.public.dotnet.xml
XmlTextReader reader new XmlTextReader ("c:/downloads/somedata.xml"); while (reader.Read()) { ....etc. } I've determined that the problem in the source XML is a node that contains an attribute that doesn't have the ampersand encoded as "&" item security "Common Stock (Class A, B & C)" How do I manage this because when the Read() method above reaches this portion of the XML document, I get a pa...
String TO xml (xml string) (2 replies, VIP)
microsoft.public.dotnet.xml
I am trying to take a string and convert it to a data source. The string is Xml that I am pulling out of sharepoint and looks like this: Field FromBaseType "TRUE" Type "Choice" Name "Status" ColName "nvarchar1" DisplayName "Status" CHOICES CHOICE Active /CHOICE CHOICE Resolved /CHOICE CHOICE Closed /CHOICE /CHOICES Default Active /Default /Field This is about all I have come up with but of course ...
escapeOutput and webmethod (4 replies, VIP)
microsoft.public.dotnet.xml
Hello All, I aplogize if this has already been answered however I couldn't find anything related to this... I have bunch of webservices written in vb.net returning native data types, due to constraints of the client I need to return data that has been output escaped i.e. when a string response is returned back by the service it automatically converts & to amp; and the other reserved chracters, in ...
Serialization of VB custom class.... (2 replies, VIP)
microsoft.public.dotnet.xml
Hi, I can serialize some data to a file using a custom class genrated from an .xsd schema via xsd.exe... However the file has a repeating ?xml version "1.0" tag, no root node, the xmlns repeats etc... What isn't it correcly formatted, whats gone wrong? ?xml version "1.0" encoding "utf 8"? purchaseOrder xmlns:xsd "http://www.w3.org/2001/XMLSchema" xmlns:xsi "http://www.w3.org/2001/XMLSchema instanc...
html to xhtml (5 replies)
microsoft.public.dotnet.xml
Hi everyone, Is there any clean way to convert multiple HTML pages to XHTML/XML format (pretty print & tag balancing) I used tidy library but its output is incorrect, Is there any solution given by .Net api ? Or using the .net XML library? I will be grateful to get any kind of idea/ reference. Thank you very much. Sharon
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification