| Using multiple XSLT files? (2 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi People, I'm investigating the option of having an asp.net page get the data from a SQL database and generate the xml and being transformed into HTML via XSLT. But that's not the question. The question is using multiple XSLT files on the same XML document to produce 1 HTML page. Since I have to provide a way to have multiple designs(ie, more than just colour schemes) for the same type of data. I... |
|
| Use Access 2002 generated XSL with .NET server side? (2 replies) |
| ASPFriends.com 'aspngxml' list |
| Summary: want to use Access 2002 generated xsl files for complex web reports served by .NET web page. Details: We're serving some reports using XSL transforms (of dataset generated XML) from server side in a .Net web application. The XSL files are hand coded. The reports are simple (no logic required) but large with 200 fields placed precisely with labels on the page. No XSL editor that we have tr... |
|
| XPath expression (6 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi all, I am using XPath for the first time today, and I am having some trouble figuring how to do this: I want to get the value of the page attribute of the last body element in my document, which is a child of the news container element. I have an XML doc with multiple body elements. I want to retrieve the page attribute of the last body element in the page. How can I do that? I thought that the... |
|
| System.Xml.XmlReader... Where is it? (3 replies) |
| ASPFriends.com 'aspngxml' list |
| This message, which was originally sent to "aspngbeta", has been moved to "aspngxml" mailing list by the List Master I have seen several examples of the XML reader class being used but when I try to compile these examples it complains that it cannot find the defnintion for referenced type 'System.Xml.XmlReader'... Thanks in advance... Paul |
|
| XML -> StreamWriter -> String Variables (9 replies, VIP) |
| ASPFriends.com 'aspngxml' list |
| This message, which was originally sent to "aspngbeta", has been moved to "aspngxml" mailing list by the List Master Hello All, I have a function that reads a remote XML file and converts it to a string. I can then view this string in my browser. Is it possible to manipulate this string the same way I would with a local XML file? I know I could use StreamWriter to write a local copy of the XML fil... |
|
| Relational XML Data (9 replies) |
| ASPFriends.com 'aspngxml' list |
| Hello All. I am still very new to XML, hence all of the questions. I have a relational XML file that I am trying to bind to a datagrid or two. I guess a good example would be a resume. My question is how can I access the Data inside of the Experience tags using a datagrid. In the past (OK a couple of hours ago) I used property name "Columns" ASP:BoundColum DataField "Name"/ ... But I can't seem to... |
|
| Html to XML to Xsl (6 replies) |
| ASPFriends.com 'aspngxml' list |
| Hello folks, I'm developing some dynamic web pages using .net/XML/XSL and I ran into a problem trying to display HTML data using XSL... My data is stored in a SQL database using a datatype of "vchar", although, the data itself is meant to be HTML. In my .net control, I call an object that queries the database an returns a dataset of product names, and HTML product descriptions. My control then con... |
|
| XML Child Relationships: Help Requested (4 replies) |
| ASPFriends.com 'aspngxml' list |
| Hello, I am relatively new to XML. I read a great tutorial on this site (http://www.c sharpcorner.com/xml/ReadingXmlUsingXmlDocument.asp ) by Bulent Ozkir and I had a question about childnodes and XML relationships. I slightly modified the example: public void ProcessXML( String xmlFileName) { XmlDocument doc new XmlDocument( ); doc.Load(HttpContext.Current.Server.MapPath(xmlFileName)); XmlNodeLis... |
|
| Databinding from SQL 2000 XML queries (4 replies) |
| ASPFriends.com 'aspngxml' list |
| Has anyone done an XML query over HTTP to SQL 2000 and bound the data to a control (datagrid)? For example, I can run this query from Internet Explorer: http://localserver/SQLRoot?sql&#Se;lect * from customers FOR XML AUTO and it will return an XML doc of results back to the browser. Any ideas on how to execute this? I am aware that I could create a "normal" ADO.NET SQLCommand and SQLConnection, e... |
|
| .NET XSLT not respecting <xsl:output method="html"> (3 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi, A colleague of mine is attempting to use the .NET XSL stuff to do some transforming of XML into HTML. The problem is that the .NET transformer seems to insist on putting ?xml... into the document, even when told to output as HTML. Is this a bug or is it a feature that needs a workaround that we are not aware of? Included below is the source files used: **Tester.cs** namespace XslTester { using... |
|
| MoveChildren in Beta2 ? (4 replies) |
| ASPFriends.com 'aspngxml' list |
| Does anyone worked with Xml in Beta2 ? I couldn't find any methods or classes that make this little beta1 code into Beta 2 code. objNav.MoveChildren(TreePosition.LastChild,objNav2); Please help me... Best Regards Johan SOLUTION DEVELOPER "There are typically three problems in any software projects: people,people and people." Gerald Weinberg Emcat e Business Solutions AB Ekonomiv&#E4;gen 4 S 436 33... |
|
| How do I retreive XML nodes? (8 replies, VIP) |
| ASPFriends.com 'aspngxml' list |
| Hey all, I want to create a .net webservice that will retrieve the values of several XML nodes in an XML file and then send them to a client over SOAP. My question is, how do I retrieve XML node values as pure, transferable XML, without putting them into a dataset or datagrid? I'm still relatively new to .NET and webservices. |
|
| XSL File being held by WWW service (5 replies, VIP) |
| ASPFriends.com 'aspngxml' list |
| Hello, I am doing a little basic ASP.NET in C#. I want to create a quick page to read an XML and XSL file off the disk and perform and XSLT transform on them. Simple right? The problem is that when I execute the page the first time, the XSL file is now being held by the WWW service. I cannot make edits to the XSL without restarting the WWW service. This can't be right?! Here is the code snippet I ... |
|
| how does the method XPathNavigator.GetAttribute work ? (3 replies) |
| ASPFriends.com 'aspngxml' list |
| With the Betta 1, I use the method GetAttribute of the class DocumentNavigator like this : value myDocumentNavigator.GetAttribute ("myNameSpace:attribute"); But with Betta 2, the specification of the method GetAttribute of the class XPathNavigator is not the same, it is : GetAttribute (localName, namespaceURI) I don't arrive to use correctly this new method. So does somone can say me (for the attr... |
|
| <asp:xml> question (5 replies) |
| ASPFriends.com 'aspngxml' list |
| This message, which was originally sent to "aspngdata", has been moved to "aspngxml" mailing list by the List Master Hi all Is anybody out there working with asp:xml web control? When I try this asp:xml runat "server" transformsource "x.xsl" documentsource "x.xml" / it works fine without any problem. Buttttt when I get the xml document from the dataset (btw, I found only one example in the net reg... |
|
| XPathNavigator (Beta2) x DocumentNavigator (Beta1) (2 replies, VIP) |
| ASPFriends.com 'aspngxml' list |
| In a Beta1 code I have: DocumentNavigator1.Insert(System.Xml.TreePosition.FirstChild,XmlNodeType.Element,Profile.Text,"",""); How do I write this in Beta2??? I start to use the XPathNavigator to read the XmlDocument but there is no way to write in the XML with this class... Thanks.... Milton Terra milton@opus software.com.br Analista Programador Opus Software www.opus software.com.br |
|
| XML Hierarchical Menus (6 replies, VIP) |
| ASPFriends.com 'aspngxml' list |
| some months ago I asked here if the "microsofties" on the list could contact Chris Lovett about his article "A Practical Comparison of XSLT and ASP.NET" (http://msdn.microsoft.com/library/default.asp?url /library/en us/dnexxml/html/xml04162001.asp) and ask him to publish the source code of his article and they were gentle enough to contact and to convince Chris to post his code on the msdn site...... |
|
| How to convert XmlReader to XmlDocument the easy way? (2 replies, VIP) |
| ASPFriends.com 'aspngxml' list |
| Hello all, I knew that there were a lot of technique we can use to convert XmlReader to XmlDocument, maybe we can loop through the XmlReader and add the nodes to the new XmlNodes etc etc. However, I wonder if there is a built in function which will do all the things for us, maybe something like XmlDocument oDoc new XmlDocument( xmlReader ) or oDoc xmlReader.ToXmlDocument(). I just don't have too m... |
|
| Extracting a branch (5 replies) |
| ASPFriends.com 'aspngxml' list |
| Let's say I have an xml file with the following: stuff states state val "NY" text "New York" / state val "CT" text "Connecticut" / state val "NJ" text "New Jersey" / /states countries country val "USA" text "United States" / country val "CA" text "Canada" / /countries stuff and I want to pull out just " states " and bind them to a dropdown. What's the best way to do that? I'm getting lost with all... |
|
| XML problem (2 replies) |
| ASPFriends.com 'aspngxml' list |
| Does anyone know the Xml Exception : "Only white space characters should be used." ? What does it mean ? This exception happens sometimes when I call the method "XmlDocument.Save" or or the property "XmlDocument.OuterXml". |
|
| Invalid Byte Error (4 replies) |
| ASPFriends.com 'aspngxml' list |
| I have an issue reading an XML document containing special characters. I have written a function in C# that writes an XML doc from a SQL database which works fine, but the document contains special characters such as &#AE;, &#E2;, and &#80; that causes an "Invalid Byte" error. Does anyone have a solution either in the function that writes the document or the function that reads that would solve my... |
|
| Getting string output from XSD Schema (4 replies, VIP) |
| ASPFriends.com 'aspngxml' list |
| I need to dynamically create XML Schemas and store them in a database. I'm looking at the various objects provided by .Net. One of these is System.XML.Schema. From the examples, I can generate the schema, but I can't find a way to get the schema out, into a string variable that can then be stored in the db. The write method seems to deal mostly with outputs. Am I missing something? Any suggestions... |
|
| XML serialization question (3 replies) |
| ASPFriends.com 'aspngxml' list |
| Hi, I'm writing a web service that returns an xml document, no soap or anything fancy there. Basically I've got a class that I'm serializing up and sending back, and this seems to be working fine. However, I'm having some difficulty sending back one piece. I've got a string of XHTML thats returned from a COM object, and I'm trying to return it to the browser. At first I tried making it a public st... |
|
| xsl:script error (4 replies) |
| ASPFriends.com 'aspngxml' list |
| HI, When i use the following xsl file, i get the following error Microsoft VBScript compilation error Expected ')' line 2, col 28 (line is offset from the xsl:script tag). Function Page Init(Sender as Object,E as EventArgs) ?xml version "1.0"? xsl:stylesheet xmlns sl "http://www.w3.org/TR/WD xsl" xsl:template match "/" xsl:eval language "VBScript" Page Init() [xcm/xsl:eval form runat 'server' ID '... |
|
| & in attributes won't allow validation (7 replies, VIP) |
| ASPFriends.com 'aspngxml' list |
| How do you force an XmlTextReader to read an ampersand correctly, without expecting a semicolon? I need to read this: search text "A&P 1988, p. 394, 21" hyperlink matchRef "394" 1988#Page394 /hyperlink hyperlink matchRef "21" 1988#Page21 /hyperlink /search but I get this error because a ; is expected following A&P: Unhandled Exception: System.Xml.XmlException: This is an unexpected token. Expe cte... |
|