all groups > dotnet xml > april 2004 > threads for april 1 - 7, 2004
Filter by week: 1 2 3 4 5
Displaying XML document in ASP.NET page using XSL Transform
Posted by banderbe NO[at]SPAM yahoo.com at 4/7/2004 7:20:58 PM
I have an XML document that I am trying to display in my ASP.NET page.
I am using an XSL Transform to display repeating XML data in a
specific format.
It reads the data, and displays it on my page, but there's a problem.
It runs all the data together on one line.
The XSL file is as foll... more >>
The validate schema menu (VS.NET 2002)
Posted by Julian Hershel at 4/7/2004 7:06:25 PM
Hi.
Does the Validate Schema menu option interpret any feature of a .xsd file? I
am trying to test a simple extension from a complextype, but when I try to
validate my XML file, the validation complains.
This is my .xsd file:
<?xml version="1.0" ?>
<xs:schema id="Sent" targetNamespace="h... more >>
Data access from a web server
Posted by James at 4/7/2004 6:41:04 PM
All data for my company is stored on an internet web server, hosted by discountasp.net, and a web service is used for both Windows and web clients to retreive and modify it. I'm using a Microsoft Access .mdb file. A local server is not used because, although only a small business, not all employees ... more >>
Web Service Security
Posted by James at 4/7/2004 6:16:02 PM
I'm currently using a basic web service for my Windows and web clients to access a Microsoft Access database on the web server. All works fine, but I'm worried about security. Without any precautions, anyone could use the web service to access or even modify information in the database. This, obviou... more >>
Conditionally render during serialization
Posted by Noah Subrin at 4/7/2004 3:25:16 PM
Hello,
I have a class like the following
public class person
public FirstName as string
public LastName as string
end class
I am serializing the class. I want to conditionally not render a property if
it is blank. For example if LastName = "", I don't want to display it.
... more >>
Making sure an Element Group contains elements with either two attributes or one attribute
Posted by Anthony Williams at 4/7/2004 1:52:40 PM
Hi all,
I'm trying to put together an XSD for an XML type I'm experimenting with.
I was just wondering whether it's possible for me to validate whether an
image element, which I've defined in my XSD, can be enforced to contain
either one named attribute, or two other named attributes.
M... more >>
XML documents and Web Forms - Some guidance please...
Posted by Russell Wyatt at 4/7/2004 10:47:50 AM
Hello
I have an idea of what I want to do, but I'm not entirely sure how to do it,
whether it's a practical or good idea and which components to use. Maybe
someone here can point me in the right direction.
OK the objective is to invite our customers to examine the data we hold on
their comp... more >>
Navigating DOM with XPath in .NET
Posted by scorpion74 at 4/7/2004 9:21:10 AM
I have following xml file and I want to read <EquipmentClass> tag and it's Text.This xml file implements B2MML schema and hence xml file structure is not the usual one.Does anybody know how to ahieve the result?I tried using "SelectNodes" method but it doesn't work
<?xml version = "1.0" encoding =... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
shared source System.Xml
Posted by Stefan Lischke at 4/6/2004 11:57:56 PM
Hi,
I downloaded the shared source cli and change XPathParser from internal
to public and added a
public static void test(){}
method. Then i put the new compiled System.Xml.dll into the visual
studio .net reference list of a small ConsoleApplication.
i called the method via:
XPath... more >>
RSS Syndication with VS.NET 2003
Posted by xml-coder at 4/6/2004 10:17:16 PM
Hi All,
I've heard a lot about RSS Feeds and weblogs, is there a good book or a site
around that focuses on RSS and Weblogs with some how to's?
Thanks,
T
... more >>
XSLT Transform options
Posted by Paul Hatcher at 4/6/2004 9:25:30 PM
Hi
Is it possible to control the node style that XslTransform uses to output
XML?
I'm trying to convert a file from XML to RDF and if I do the transform in
XmlSpy I get the following
<mySchema rdf:resource='fred' />
but if I use the XslTransform class I get
<mySchema rdf:resource='f... more >>
Transforming with a variable document
Posted by Cathie at 4/6/2004 6:26:43 PM
Hi All,
I am trying to get my style sheet to work. It works fine in IE but I can't
get it to work in .net.
Below is the function I use for transforming, where advancedOptionsFile is
the path to the file containing an XML document required by the
transformation, and xmlSimplified is the XML... more >>
How to reference to a part of the XML doc?
Posted by panzy at 4/6/2004 1:14:19 PM
Hi,
I have this structure:
<a>
<repeated_part>
<just_the_same_thing_and_more/>
</repeated_part>
</a>
<b>
<repeated_part>
<just_the_same_thing_and_more/>
</repeated_part>
</b>
Is it possible to refactor this at text doc level to something like this:
... more >>
How to parse many many xmls
Posted by Powell at 4/6/2004 9:16:05 AM
I have a requirement to return some information from a large number of xml files
I have tried XSLT, which quickly gets overwhelmed. Found references to XQuery and it seems like it might work
I found reference to the Microsoft XQuery demo (the site seems to be down), and was able finally to find ... more >>
Dataset.WriteXml how to force empty elements for DBNull Value in Columns ?
Posted by apa57 NO[at]SPAM hotmail.com at 4/6/2004 4:36:19 AM
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 specif... more >>
"xe" -- Wat is it?
Posted by karthik at 4/5/2004 9:01:05 PM
Hi all
Is there an element/concept in XML which stands by the keyword "XE". In other words does this keyword ("XE") has anything to do with XML.
Thanks for your answer in advance,
regards
karthik.... more >>
write XML with line feeds?
Posted by Arthur Hoornweg at 4/5/2004 1:00:57 PM
Hello World,
any idea how I can convince MSXML.IXMLDOMDocument to
save the XML files using CR/LF?
I need to manually edit the XML files and it's
awkward if everything is in one huge line.
--
Arthur Hoornweg
(please remove the ".net" from my e-mail address)
... more >>
Using ASP.NET to transform the XML and pass variables to XSLT
Posted by darrel at 4/5/2004 11:05:51 AM
I think I've gotten the hang of XML and XSLT...at least enough to produce
the results I'm looking for.
I now need to take the next step and use ASP.NET (using VB.NET) to take the
xml and send it to the xslt along with a parameter and get xhtml returned.
The catch is that I'm not finding any ... more >>
How can I manipulate the schema of a dataset ?
Posted by apa57 NO[at]SPAM hotmail.com at 4/5/2004 8:40:54 AM
I have the problem that when I write XML from a dataset I get certain
columns that are empty not as empty elements, rather not at all. To
avoid that I thought I can go to the dataset and easily manipulate the
schema in the way that I force a minoccurs 1 to make the empty
elements to appear in my... more >>
Loading XmlDocument with a file on network?
Posted by Dave at 4/5/2004 6:46:05 AM
Can you load an XmlDocument with a file located on a network share? I thought maybe the XmlResolver could be used
XmlUrlResolver resolver = new XmlUrlResolver()
resolver.Credentials = CredentialCache.DefaultCredentials
// Create and load the XmlDocument
XmlDocument doc = new XmlDocument()
doc... more >>
removeNamedItem problem
Posted by Julius Mong at 4/4/2004 2:05:14 PM
Dear all,
I'm trying to search for "width" and "height" in the root node in an SVG doc
and remove them accordingly, what I don't understand is if I did the
following code, it'll only remove "width" (the earlier in the attr list) in
<svg ... width="..." height="..." > and height is left untouch... more >>
SQL and XML
Posted by nobody at 4/4/2004 11:59:16 AM
I know you can use Dataset.ReadXML, Dataset.ReadXMLSchema, and
Dataset.WriteXML to use an XML file as a datasource. My question is can you
do SQL against an XML datasource? Since you're using the Dataset, you're
bypassing the DataAdapter, and I don't see an OleDb provider listed in
Server Expl... more >>
XSLT returning '' is an invalid QName when converting Attributes to Elements
Posted by Stephan Brunner at 4/3/2004 7:14:37 PM
Hi
I have created two flavors of an XSLT stylesheet to transform all attributes
of an XML document to elements:
They both work as expected with MSXML and XMLSPY but throw an exception
=========================
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xml... more >>
Proper way to store Form size in an XML config file? (Is this approach good?)
Posted by johnfofawn NO[at]SPAM hotmail.com at 4/3/2004 3:54:55 PM
Hi,
I need to store the size of my form in a config file. I was saving
this in the registry, but I need it in a config file now.
I came up with the following code. The part I'm not so sure about is
where I call form.Height.ToString(). Should I be making use of some
better built-in serializa... more >>
SelectNodes correct order?
Posted by Adam Smith at 4/2/2004 4:43:05 PM
If I use XmlNode.SelectNodes() in my program and then use
foreach XmlNode node in XmlNodeList am I guaranteed to get the nodes in
the order in which they appear in the original xml document source?
Thanks in advance.
Adam Smith
*** Sent via Developersdex http://www.developersdex.com ***
... more >>
Validating against XML Schema question.
Posted by AP at 4/2/2004 3:13:02 PM
Hello,
I'm trying to use .NET to validate incoming XML documents against the
appropriate schema in our database. I do not want to use the document's
schemaLocation attribute to validate for various reasons, but rather check
against a schema that I pull from a database and add to the reader's s... more >>
newbie syntax ? = adding values inside html quotes
Posted by darrel at 4/2/2004 1:45:15 PM
I'm trying to pull a value into an ahref and am stumbling all over the
syntax.
I first tried this:
<a href="<xsl:value-of select="linkURL"/>">
To no avail. I then tried escaping the quotes (") but, again, nogo. I
know I'm missing something obvious.
-Darrel
... more >>
XPath Call Quit Working
Posted by Bob at 4/2/2004 1:26:04 PM
Below is some code that use to work. Now it is not and I have yet to figure out why. I want to select the nodes to a nodelist and remove them from the dom. The only thing I can figure is it broke when I added my schema.
XML
<?xml version="1.0" encoding="utf-8"?><IADSNOTES xmlns="notes.xsd" c... more >>
need help understanding PARAMs
Posted by darrel at 4/2/2004 1:18:20 PM
I eventually want to pass a variable to my XSLT file, but, for now, I'm just
trying to be able to declare it globally in the XSLT file itself.
So, I added this to the top of the page:
<xsl:param name="currentPage">5</xsl:param>
BTW, this is a menu I'm creating and, as such, need to know wh... more >>
putting HTML into XSL files
Posted by Novice at 4/2/2004 10:06:07 AM
Hi all, from every example I've ever seen on using XSL files, the user is able to put HTML into the XSL file
Well, I'm making use of the XPathDocument and XSLTransform classes to transform some XML content into HTML. I would like to include "img" tags and potentially "br" tags in the XSL file, bu... more >>
How do you nest templates in XSLT?
Posted by darrel at 4/2/2004 10:03:00 AM
I know you CAN'T nest templates, so what would be the logic to use
otherwise?
Here's what I am doing:
I have a template set to match a specific node based on one of it's
elements.
If it finds it, it renders it. I then want to see if that node has any
children. If it does have children, r... more >>
XslTransform.Transform fails when xsl contains node-set() Function
Posted by John Sever at 4/2/2004 4:39:07 AM
My transform in cludes a variable that holds a node set from the node-set()
extension function. It the transformation works fine when using MSXML2 or
msxsl.exe but not in VB.Net.
My code looks something like this:
Dim XP as New XPathDocument(XMLFileName)
Dim XSLT as New XslTransform
XSLT.... more >>
Accessing the schema type value from XSLT ...
Posted by NaraendiraKumar R. R. at 4/2/2004 12:02:54 AM
Folks,
Have any of you figured out a way in .NET 1.1 to access the scheme type of a
Xml node from XSLT? Appreciate any pointers or code snippets that you can
provide.
After some extensive research (& head-scratching) I understand I need the
PSVI(Post Schema Validated Infoset). I can't seem... more >>
XML Validating Reader problem
Posted by Raghu R at 4/1/2004 9:47:17 PM
From: "R. Raghuraman" <raghuraman@infosys.com>
Subject: Problem with XMLValidatingReader?
Date: 01 April 2004 11:46
Hi,
I have a large xml file to process (~ 70 mb). I am trying to use
XMLValidating reader. The first step was to try out the example in
quickstart samples with minor modifica... more >>
Source code of System.Xml
Posted by Stefan Lischke at 4/1/2004 4:10:06 PM
Hi there,
I'm still implementing the XML pub/sub System i told in my last mail.
But i think i have to reeinvent the wheel when using Microsoft .Net
Where can i get the Source Code of XPathExpression and the way .net
handles XML in XPathDocument? As i told in my last mail, i want to
imple... more >>
Validating XML file against an XSD schema
Posted by simon ames at 4/1/2004 2:21:24 PM
I have an XML file i'd like to validate against an XSD schema.
I'm creating the XML on the fly in an ASP.NET page and need to validate it
aginst the schema to ensure its well formed.
How do i do this?
Thanks in advance...
Simon Ames
... more >>
Filter XML to pass to XSL and import into my control?
Posted by darrel at 4/1/2004 2:02:04 PM
I'm still struggling to figure out the big-picture concept of how to go
about building a web site menu from an xml file.
The XML file contains the full site structure (the site map, so-to-speak).
Based on the current page of the site, I want to be able to do the
following:
get node that per... more >>
XML parsing error: Invalid unicode character value for this platform
Posted by richbward NO[at]SPAM hotmail.com at 4/1/2004 1:51:22 PM
I've seen a couple other posts on this but no real answers. I'm
trying to do a bulk insert and everything is fine until I run the
objCom.ExecuteNonQuery() statement at which point I get the XML
parsing error. Of course, it would be easy to simply wrap unicode
characters with CDATA <![CDATA[ &#... more >>
XPath problem with two xmlns
Posted by Gismo at 4/1/2004 1:21:53 PM
I have got file raport.rld which is an XML file generated by MS Reporting
Services.
The problem is:
in this file are tags from two different namespaces
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefini
tion"
xmlns:rd="http://schemas.microsoft.com/SQLServer/rep... more >>
when creating an xml document from a dataset
Posted by Tom Vukovich at 4/1/2004 1:15:25 PM
and returning the xml to the requesting web page, how do you insert the XML
declaration?
ds.EnforceConstraints = False
Response.ContentType = "text/xml"
ds.WriteXml(Response.OutputStream, XmlWriteMode.IgnoreSchema)
I would like to add
<?xml version="1.0" ?>
to the top of the response... more >>
Nube here..using asp.net but never tried xml and xsl
Posted by sparks at 4/1/2004 1:04:27 PM
Is there a book for beginners of xml/xsl describling getting
started with this in the .net envoronment
any that people like that is LOL
thanks big time for any and all info
sparks
... more >>
|