all groups > dotnet xml > january 2004
Filter by week: 1 2 3 4 5
Change XmlDocument Function to XPathDocument Function
Posted by j_jim_lewis NO[at]SPAM hotmail.com at 1/31/2004 12:01:43 PM
After everything I have read and some of my own testing I am convinced
that XPathDocument are more efficient if you are only using XML for
read only and not modifying the XML. However, I have been having
problems doing same procedures I do with XPathDocuments in
XPathDocuments. I have a config... more >>
how change title in xml asp.net page?
Posted by adam2001usa NO[at]SPAM hotmail.com at 1/31/2004 9:52:57 AM
Hi. I want to spawn a new page and load a xml document from memory.
I would like to display this page with the default stylesheet, and
nothing else. I would also like to set the title.
If anyone could direct me to a code sample it would be much
appreciated.
Thanks.
Adam Smith... more >>
Remove escape characters in XML generated by XMLSerializer ?
Posted by PMCG at 1/31/2004 8:16:07 AM
Hi
I am using the XMLSerializer class to serialize a custom class into a memory stream whose contents i then pass to a MSSQL SP that uses the sp_xml_preparedocument SP, i can serialize the class but get secape characters in the XML when i read from the memory stream. I do not know much about encodi... more >>
TreeView2Xml
Posted by thanigai at 1/30/2004 5:44:49 PM
how to Convert TreeView Nodes to an XML File?
... more >>
Form and XmlRootElement
Posted by Richard Grimes at 1/30/2004 3:12:57 PM
I have an XML file with no namespaces defined:
<data>
<textItems>
<add name="test" value="test value"/>
</textItems>
</data>
I can map this to a class with:
[XmlRoot]
public class data
{
[XmlArray("textItems", Form=XmlSchemaFor.Unqualified)]
[XmlArrayItem("add", ty... more >>
how to use xmlresolver for doing xml transforms
Posted by rocio at 1/30/2004 2:38:41 PM
I'm trying ti use the example in
http://support.microsoft.com/default.aspx?scid=kb;en-us;330587#appliesto but
doe s not work. I keep getting the error
Public WriteOnly Property XmlResolver() as...is obsolete: Pass XmlResolver
as Transfer() method.
does anyone know of a good example to do th... more >>
instantiation of xmlserializer gives me error in [randomname].dll
Posted by Gary Brewer at 1/30/2004 12:49:58 PM
Below are my classes generated using XSD.EXE from XML/XSLT
When I do
XmlSerializer xmls=new XmlSerializer(typeof(events[]));
I get
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
mscorlib.dll
Additional information: File or assembly name d4xnc6_... more >>
Suggestions on Importing XML Document
Posted by R Jones at 1/29/2004 10:57:39 PM
All,
I'm trying to automate the import of an XML document into an Access
application. Unfortunately Access cannot properly read the document. When
it attempts to bring in the document it creates partial data structures and
does not import any data.
I have tried to bring this document into... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Error: There is no Unicode byte order mark. Cannot switch to Unicode
Posted by Jim P. at 1/29/2004 9:22:21 PM
I have a client server set of apps that can connect through socets and send
data back and forth. I'm trying to get it to send XML messages back and
both. Currently it works as string data. I collect all of the incoming data
to a string but when I try to parse the incoming XML I get the followin... more >>
Adding DocumentType to XML-File
Posted by Daniel Frohberg at 1/29/2004 3:59:52 PM
Hello,
does anybody have an example of how to create a simple "DOCTYPE" declaration
such as:
<!DOCTYPE BMECAT SYSTEM "bmecat_new_catalog_1_2.dtd">
I have an DataSet (dsCatalog), created with VS DataSet designer, which I'd
filled with data. After that I like to
add this declaration in lin... more >>
Error:An unexpected end of file parsing CDATA has occurred.
Posted by sunilbhujle NO[at]SPAM yahoo.com at 1/29/2004 1:07:10 PM
I am creating a XML document which opens fine in IE. Implies MSXML
thinks it is a well formed document.
But when I try to load this document in VB.net using the following
code
Dim doc As New XmlDocument
doc.Load("C:\Projects\SQLXML\corc.xml")
I get the following error:
"System.Xml.XmlExce... more >>
Hot to call C# function inside XSLT ?
Posted by Maxim Kazitov at 1/29/2004 12:21:55 PM
Hi,
Is it possible to call C# function inside XSLT ?
Thanks,
Max
... more >>
MSXML2 to Load xml document using ISO-8859-1 encoding
Posted by Neet at 1/29/2004 11:41:13 AM
HI
My application connects to the UPS server which returns an ISO-8859-1 encoded XML response. I need a part of this response, ie. the AccessLicenseAgreement , which i need to display in my application and then return to the UPS server with the next request. Their server matches what they sent me w... more >>
<xsl:if> problem
Posted by francois.gagnon NO[at]SPAM sls.gouv.qc-dot-ca.no-spam.invalid at 1/29/2004 11:00:50 AM
I tried to do this :
<xsl:if test="ToutCompris">
some output
</xsl:if>
ToutCompris is a boolean element in my XML file
My problem is the output is parse even when ToutCompris is false
I tried <xsl:if test="ToutCompris = true"> and it does'nt work
either
What's the right way to do this... more >>
Using Variables in XPath Expression
Posted by ms236 NO[at]SPAM evansville-dot-edu.no-spam.invalid at 1/28/2004 8:59:36 PM
I have a textBox that contains a string values. I need to take this
string and use it as criteria for an XPath Expression. Here's what I
have. Why isn't it working???
string s = textBox1.Text;
XPathExpression expr;
expr = myXPathNavigator.Compile("/NewDataSet/note[@to=$s]");... more >>
Using Variables in XPath Expression
Posted by ms236 NO[at]SPAM evansville-dot-edu.no-spam.invalid at 1/28/2004 8:59:34 PM
I have a textBox that contains a string values. I need to take this
string and use it as criteria for an XPath Expression. Here's what I
have. Why isn't it working???
string s = textBox1.Text;
XPathExpression expr;
expr = myXPathNavigator.Compile("/NewDataSet/note[@to=$s]");... more >>
i want to kill xmlreader and all her children
Posted by x0td0x NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/28/2004 5:03:23 PM
please reply via email to this post to x0td0x@hotmail.com
i need some code that will generate code to read the xml file it is
reading
for example
input:
<book>
<bk:title>the wind</bk:title>
<bk:content
type="text">howl</bk:content>
</book>output: (xtw=xmltextwriter)
[code:1:10bb0ab988]xt... more >>
What's wrong with my XSL
Posted by francois.gagnon NO[at]SPAM sls.gouv.qc-dot-ca.no-spam.invalid at 1/28/2004 4:01:45 PM
I get no output from this file:
<?xml version="1.0" standalone="yes"?>
<Specials xmlns="http://tempuri.org/Specials.xsd">
<Trip>
<ID>0</ID>
<Lieux>Canada</Lieux>
<Hotel>Clarendon</Hotel>
<Depart>1er janvier</Depart>
<Duree>1 semaine</Duree>
<Prix>450$</Prix>
<... more >>
Q: How to send/receive XmlDocument objects via a message queue?
Posted by Robert Rossney at 1/28/2004 3:36:57 PM
I'm trying to send and receive XmlDocument objects using the
System.Messaging.dll functions. The code I've written follows, as best I
can tell, the methodology used in the sample code for the
XmlMessageFormatter class. But it isn't working -- specifically, receiving
isn't working. What am I d... more >>
validating xml with dtd
Posted by thanigai at 1/28/2004 1:21:15 PM
i want to validate xml element's attribute. that attribute is declared in
DTD as required. how can i check that attribute or element is required or
not by using DTD?
... more >>
How to bind to external XML source - please help!
Posted by bdurkin NO[at]SPAM stevedurkinltd-dot-com.no-spam.invalid at 1/28/2004 12:00:57 PM
Hi,
I have the following external XML file
http://www.autolocate.co.uk/usedcar/search/lifestyle.asp?dealersubscriberid=100540&output=xml
What I want to do is bind the values in the "ManCode" section to a
drop down list. My code is as follows
Private Sub Page_Load(ByVal sender A... more >>
How to change the the attribute's name???
Posted by Isz at 1/28/2004 10:51:21 AM
Hi Group:
I would like to know if it is possible to change the name of an
attribute to something else. My setup is like this: I have serveral SQL
tables that I nest and join so that it all outputs into a nice XML file
for the purpose of populating a flash navigation menu.
<NewDataSet> ... more >>
Selecting a namespace-prefixed node
Posted by Dag at 1/28/2004 1:46:13 AM
Hi
I am pretty much an xml beginner; hopefully someone can easily answer this one... I want to select a node representing a worksheet in an xml document for the Office Web Components spreadsheet. The file uses xml namespaces, of which I know very little. But it does seem clear that I can't select ... more >>
Write XML to object not a file
Posted by Jim P. at 1/27/2004 9:50:15 PM
Still new to .Net so bare with me. Working on a client/server app. But
I'm trying to build an XML file on the fly (without writing to a file) using
data from my application. This info includes IP address, Port, GUID, etc.
I can write to a file with no problem. But I want to output to some ... more >>
Serialization. Customize output.
Posted by Mark at 1/27/2004 5:46:50 PM
Hello,
What I am trying todo is use .NET serialization to take a Guid property =
that is an attribute in the XML document and have its output to be the =
same as Guid.NewGuid().ToString().ToUpper().Replace("-","") =20
I have a working copy of this type of class that will work generating an =... more >>
Problems getting xsl:key to work....
Posted by Marc Scheuner [MVP ADSI] at 1/27/2004 12:39:06 PM
Folks,
I'm struggling with XSLT key's and stuff.... anybody out there who
*REALLY* understands this stuff???
Okay, my XML file looks something like this (partially):
<?xml version="1.0" encoding="ISO-8859-1"?>
<report>
<meta>
<structure>
<title seq="4" text="Foo" />
<title se... more >>
XLM & XSL - Links
Posted by Paulo Guedes at 1/26/2004 5:33:28 PM
Hi!
Working with only one xml file and one xsl, is it possible to make a link
through xsl to another tag in the same xml file?
Eg: i'm displaying the contents of a tag in a sinlge webpage. I want to make
a link to display only the contents of another tag.
Is it possible? Do you know where... more >>
xml validation against dtd
Posted by Jon L. Lovesky at 1/26/2004 3:15:28 PM
Hello
I need to validate xml files against dtd files, however the xml files I will
receive will not have the correct path to the dtd on my end. The declaration
in the xml is not qualified, it's just the dtd filename, so I figure I can
always copy the xml file to the same directory as the dtd t... more >>
Save SVG as JPG?
Posted by Steven Livingstone at 1/26/2004 2:50:28 PM
I have a C#/Xslt utility creating a relatively large SVG diagram from a
bunch of Xml sources I have.
This is cool for those who have SVG plugins installed, but I also want to
support downlevel browsers with a JPG equivalent of the SVG output.
Anyone know of any way I can make this conversion i... more >>
Setting Namespace Prefix on an Element...
Posted by Hollywood at 1/26/2004 1:29:35 PM
I'm using XML serialization to produce the following XML document:
<TestDoc xmlns:srd="some-url">
<Additional>
<Security>
<srd:Login>login_id</srd:Login>
<srd:Password>password</srd:Password>
</Security>
</Additional>
</TestDoc>
from this ... more >>
Validate XML Schema
Posted by davidanoble NO[at]SPAM hotmail.com at 1/26/2004 11:04:41 AM
Can anyone point me to some code or tell me a simple way to validate a
UK postcode (or email address or another simple example) ?
I have the Schema set up already. Now I just want to write some
validation (in VB.Net or C#)code to trap for this error.
<xs:element name="PostCode">
<xs:... more >>
Calling all xsl/ado .net experts!
Posted by suzy at 1/26/2004 10:47:21 AM
Hello, just a quick question which I hope has a simple answer...
I have an SP which performs an inner join on 2 tables (User and UserStatus)
and I used the dataset's .GetXml() method to return the following:
<User>
<UserId>1</UserId>
<UserStatusId>1</UserStatusId>
<UserType>1... more >>
XML >> XSL
Posted by zurg at 1/26/2004 10:44:17 AM
Hi All!
I'm completly green at using XML/XSL and have a small problem...
I have a XML file that is generated by my application. It looks like this:
<PLANETS>
<PLANET>
<NAME>Eartch</PLANET>
<INFO>
<COLOR>Blue</COLOR>
<WEIGHT>168732372</WEIGHT>
... more >>
Simple Xpath question
Posted by Ot at 1/25/2004 8:43:24 AM
I posted this to the wrong group. It went to m.p.dotnet.languages.vb.
Ooops.
--------------------------------------------------------------------
I have this tiny problem. I have learned that an xpath expression can be
bounded by either single or double quotation marks.
But sometimes I ... more >>
Xml Attribute..id problem??
Posted by smita at 1/24/2004 6:05:36 PM
Hi,
I have an xml file as below
<root>
<table id =1>
<user>abc</user>
<age>25</age>
</table>
<table id = 2>
<user>xyz</user>
<age>45</age>
</table>
.....
.....
</root>
What I want is this id attribute to increment automatically.
So I declared it of type "ID" ..but how do i ... more >>
Hiding Gridlines ?
Posted by Shreyas Madwanna at 1/23/2004 4:18:31 PM
Hi Gurus,
I have an xml and xsl file. The xsl transforms the xml file to
give an html output.
Now using filesystem object I am saving the html output as a
word document but the word document is showing gridlines.
I am not able to find a way to hide these grid... more >>
rtf / html style sheets for Xsl?
Posted by New World Order Pigs at 1/23/2004 3:23:32 PM
Are there (somewhere) existing style sheets for Xsl translations for
RTF->HTML and HTML->RTF? I would imagine they must exist and I'd be
extremely interested in them if they do.
Thanks forever,
NWOP.
... more >>
Does XSD <Import> work?
Posted by Stephen Edgecombe at 1/23/2004 12:24:54 PM
Hi
Environment: Visual Studio .NET 2003 (vb)
I am developing an XSD Schema and want to include some building blocks from
another source, so they have a different namespace.
- If I use an <Include> the Schema doesn't show any of the Elements from the
include Schema. But that's to be expecte... more >>
XmlValidatingReader problem
Posted by Mark Collins at 1/23/2004 5:36:07 AM
Hi
I am encoutering a problem during the validation of an XML document
when using 'XmlValidingReader'.
My setup is as follows.
I have a schema 'Document.xsd' which is imported into a further schema
'DerivedDocument.xsd'. Our xml sample 'Instancedoc.xml' uses
'DerivedDocument.xsd' as its... more >>
Inherited Schema/ XmlValidatingReader problem.
Posted by mark_emerson_collins NO[at]SPAM hotmail.com at 1/23/2004 5:28:17 AM
Hi
I am encoutering a problem during the validation of an XML document
when using 'XmlValidingReader'.
My setup is as follows.
I have a schema 'Document.xsd' which is imported into a further schema
'DerivedDocument.xsd'. Our xml sample 'Instancedoc.xml' uses
'DerivedDocument.xsd' as its... more >>
How? Writing the results of a XSL transformation to a string rather than to File
Posted by Stuart at 1/23/2004 3:21:07 AM
I am a bit of a newbie to C# and would like help with the following.
I am bringing in a dataset and transforming that dataset using an XSL style sheet to generate text. This text does in fact contains SQL statements (DBCC commands etc) which I want to capture and run on a SQL Server instance. At ... more >>
XSLT and XML Schema
Posted by Ash Hart at 1/23/2004 2:46:08 AM
Hi Friends,
We have a peculiar situation here, where in we have to translate a set of xml documents using xslt and we only have schemas available. How do we use XSLT here? Please advice.
Ash... more >>
Referencing specific method overloads in a <see> tag
Posted by Alex VanderWoude at 1/23/2004 12:31:20 AM
I am using the XML documentation feature of VS.NET. Several of my classes
have overloaded methods. I would like to create a <see> tag that refers to
a specific overload (as opposed to the general overview of them all). How
can I do this?
For example, imagine that there are two overloads ... more >>
formatting xml document dynamically
Posted by Miki Szinegh at 1/22/2004 8:27:17 PM
Hello All,
I have an asp.net search application that brings up a datagrid of results,
with one of the fields being a hyperlink to an XML document, of which there
are thousands. By clicking this link, the browser loads the XML document in
its raw form.
My question is, how do I use some of these ... more >>
looping through XML nodes
Posted by Praveen Naregal at 1/22/2004 6:47:21 PM
hello all,
I have a problem. I have an XML file like below one.I want to loop through
node by node and store or display the data .
Can anybody give me a sample piece of c# code?
Thanks & Regards,
Praveen
<?xml version="1.0" encoding="utf-8" ?>
<book id=1>
<name>abc</name>
... more >>
Formatting White Space
Posted by Ot at 1/22/2004 12:07:41 PM
I have an xml document similar to this
<all>
<one>
<options attr1="1" attr2="2" />
<item name="a name" attr1="1" />
<item name="another" attr1="2"/>
</one>
<two>
<options attr1="1" attr2="2" />
<item name="a name" attr1="1" />
<... more >>
SelectSingleNode..Not Working..???
Posted by smita at 1/22/2004 11:18:31 AM
Hi,
I have an Xml file in which i am storing the usernames and password and
some other user details. The file contains data as shown below..
<?xml version="1.0" encoding="utf-8"?>
<RoleTables xmlns="http://tempuri.org/UserPass.xsd">
<Table>
<username>Arun</username>
<password>... more >>
CDATA and XmlNode
Posted by Leszek at 1/22/2004 10:00:42 AM
Hello,
I have the following code:
// Read the XML document from the hard-drive.
XmlDocument doc = new XmlDocument();
doc.Load("doc.xml");
// Create the document's root.
XmlElement root = doc.DocumentElement;
// Filter the node we want.
... more >>
XML Serialisation & Circular References
Posted by Earth Worm Jim at 1/21/2004 2:53:28 PM
I have been able to get simple circular references to be serialized in xml
by using the ImportTypeMapping method on the SoapReflectionImporter class.
But I am unable to serialise circular references when the circular reference
is contained with in a collection class, specifically I am using a ... more >>
XML Parsing
Posted by Sandy at 1/21/2004 12:41:09 PM
I have an xml string exactly as follows:
<ownerid name="Anderson, Eric" dsc="0" type="8">{CF9F4762-89CE-4470-8019-D208724883BD}</ownerid>
this comes from our CRM Database. This was returned when I asked for ownerid. I would like to display in a textbox or datagrid just the name. I know how... more >>
|