all groups > dotnet xml > april 2004 > threads for april 22 - 28, 2004
Filter by week: 1 2 3 4 5
Newbie xpath Question
Posted by cab0san NO[at]SPAM hotmail.com at 4/28/2004 10:40:47 PM
I'm new to this, so I've been reading about namespaces and xpath
queries.
I am trying to write a dotnet program that will change the value of a
node. I am getting the file from another vendor, so I can't control
the format.
Here's a sample
================================================... more >>
Huge Spreadsheet Input
Posted by cdars NO[at]SPAM hotmail.com at 4/28/2004 9:34:58 PM
Dear all,
I am working on a re-development project. The objective is to replace
an old "system", which make use of local MS Excel, with a new
web-based application.
Platform: SQL2K, Windows Server 2K3, ASP.NET
My users are damn familiar with MS Excel. They can work fine with huge
spreads... more >>
XML Serialization Bug?
Posted by AP at 4/28/2004 4:42:36 PM
Hello,
I'm using .NET 1.1. I have a class that has these two members:
public bool FurtherActionsRequired;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool FurtherActionsRequiredSpecified;
If I serialize the class as is, neither of the above items get serialized.
If I remov... more >>
PreviousSibling not working
Posted by asadikhan NO[at]SPAM hotmail.com at 4/28/2004 1:49:01 PM
I am trying to get the PreviousSibling function work. But I keep
getting the error (Error accessing XML). Here is my code:
---------------------------------------------------------------------------
private i as integer
private strOutput as string = ""
sub page_load (obj as object, e as e... more >>
Locating xmlns nodes in XML documents (for XML document metrics)
Posted by shawnk at 4/28/2004 1:01:07 PM
I've been writing an XML document analyzer that reads XML document
and tracks the metrics of the document. Statistics such as a node count fo
each type of XML node are printed out
I am trying to locate 'xmlns' nodes using the XPath (not DOM or SAX) API
Unfortunately the XPathNavigator concept o... more >>
schema error
Posted by fivemagic at 4/28/2004 11:26:05 AM
Hi all !
My app is a asp .net page that validate a xml using a schema. But it only works (validate the xml file) when i replace the namespace "http://tempuri.org/" in xml and xsd files with a physical path of my app "c:\inetpub\wwwroot\xml\".
How can i use the virtual path ?
Thank's for a... more >>
Property Type Conversion
Posted by Jimmy Seow at 4/28/2004 10:04:15 AM
Dear All,
Hope somebody can help me with this.
I have created a class and have got it to serialize and deserialize using
XmlSerialization without any problems. I've also read the documentation on
the XML attribute classes such as XmlElement and XmlRoot etc as well as
XmlAttributeOverrides.
... more >>
Avoiding XML serialization namespace substitution?
Posted by AP at 4/27/2004 2:46:07 PM
Hi,
I have a class that I wish to serialize to XML, part of which looks like
this:
public class TitleNotification {
[XmlAttributeAttribute(Namespace="xsi",
AttributeName="noNameSpaceSchemaLocation")]
public string NoNameSpaceSchemaLocation =
http://www.pdr.com\nhttps://extw3c.pd... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Validation error The 'xsi:noNameSpaceSchemaLocation' attribute is not declared
Posted by AP at 4/27/2004 12:41:32 PM
Hi, I'm getting the following error trying to validate an xml document
against a schema:
The 'xsi:noNameSpaceSchemaLocation' attribute is not declared
My xml file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<TitleNotification xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi... more >>
Validation problem.
Posted by ash at 4/27/2004 5:46:03 AM
Hi
I am some webservice project. where it take the inout as the xml and it will validate that xml with the xsd
I have put that sechema in the particular location where I can access that xsd using internetexploere.. I mean to say from IE if i go to the URL http://localhost/my.xsd , it will be disp... more >>
xml schema and 2D arrays
Posted by Neil at 4/26/2004 4:38:53 PM
Hi,
I have got to transfer some data into a c# project from an old one that was
written in delphi. I am new to XML, but it looks idea for transfering this
data around. I have written a schema for this data using the tools in visual
studio, my problem is that i dont know how to represent the ar... more >>
Mapping Datasets in an XmlDataDocument
Posted by Mark Bosley at 4/26/2004 3:17:09 PM
I have a multiple table dataset that I am attempting access thru =
XmlDataDocument, and I have read a bit about this (like Rocky Lhotka's =
article), but I am attempting something outside of the samples I have =
seen.
I can take some Xml like this
<DataSet>
<DriveOption Available=3D"4... more >>
How to prevent line breaks in XML file?
Posted by les at 4/25/2004 9:47:27 PM
I am creating XML from SQL2000 using a vb.net page, then posting it to
a remote server as a string.
The remote server requires that the xml contain no line breaks, but
there are some ntext fields in the database that contain long text
with line breaks.
How do I get rid of the line breaks? ... more >>
xml-export in vb.net
Posted by curtis m. west at 4/25/2004 4:27:19 AM
hello NG
i try to create a little generic vb.net function for exporting access-tables
to
xml-files.
---===>>> CUT IN <<<===---
Function fncXmlExport(ByVal strDBpath As String, ByVal strTableName As
String, ByVal strXmlFileName As String)
Dim objDataSet As New System.Data.DataSet
Dim ob... more >>
Web Services simulator
Posted by PJ via .NET 247 at 4/24/2004 5:54:59 PM
I'm really hoping someone can point me in a direction=2E
We're doing some work for a mjaor bank in the UK using Microsoft=
=2ENET=2E
They have provided us a WSDL file=2E We have generated a C# file=
and then imported this into a C++ Managed DLL=2E
Here comes the problem=2E
1) Ther... more >>
XSD to SQL converter
Posted by Peter at 4/24/2004 6:56:02 AM
Do you have any idea about subject
... more >>
XmlTextReader and C# using statement - Does this work okay?
Posted by Russell Mangel at 4/23/2004 11:17:02 PM
Is it possible to use the using statement with XmlTextReader?
I tryed to use it, but it gives me the error message:
Cannot implicitly convert type 'System.Xml.XmlTextReader' to
'System.IDisposable'
Is there something I am doing wrong?
// This no worky
using(XmlTextReader xtr = new XmlTextR... more >>
Is there any way to get min/maxOccurs during validation?
Posted by boogs NO[at]SPAM youngpup.net at 4/23/2004 10:21:17 PM
I understand that I can get the SchemaType from XmlValidatingReader
during Read() and that is cool. But is there any way to get the
current XmlSchemaElement (or XmlSchemaAttribute for that matter)?
I need this because I am setting up my UI dynamically based on the
schema, and I need to know wh... more >>
Edit XML using ASP.NET
Posted by Eric at 4/23/2004 4:28:18 PM
Good afternoon,
Quick and what I hope is an easy question... I have an XML file that is
holding constant values. On occasion there will be times where some of
those values will need to be updated. Is it possible to do this
programatically with ASP.NET?
As an example, a system status indic... more >>
How Do I parse this XML document, most efficiently?
Posted by Russell Mangel at 4/23/2004 4:21:23 PM
What would be the best way to parse this XML document?
I want to avoid using XMLDocument.
I don't know if I should use XMLTextReader, or Xpath classes.
There is only one element <MessageStore> element in the document, "always"
at the end of the document.
There will be thousands of <Messages> ... more >>
XML for non-Web developers
Posted by jtnim NO[at]SPAM hotmail.com at 4/23/2004 6:04:12 AM
First of all, I don't know anything about XML. I develop software for
Windows platforms, but not web applications. What I want is to find
out what XML has to offer for me. All the books and other resources
I've encountered deal with XML in web applications. Are there books or
resources that conc... more >>
SelectNodes in Office.Interop.Word
Posted by don at 4/23/2004 4:11:02 AM
In the standard XML library, SelectNodes takes an XMLNamespaceMgr object as a second argument. In Interop.Word, SelectNodes has a formal parameter list with the second parameter being a string called a "Prefix Mapping" which presumably is some kind of string serving in place of the namespace manage... more >>
Return xml
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 4/23/2004 3:32:04 AM
The following function is used in my webservice which
returns a dataset.
I now need to return the dataset as xml and have no idea
how to do it.
Can anyone help ?
Thanks in Advance
[code]
Private Function GetDataSetXML(ByVal strSQL As String) As
dataset
'1. Create a connectio... more >>
constraint not declared
Posted by bartverstraete77 NO[at]SPAM hotmail.com at 4/23/2004 2:23:14 AM
If I try to load a xml schema in a dataset I get this error:
The 'CDSKey1' identity constraint is not declated. An error occurred
at file:///C:/Doc.../CDLib.xsd, (36, 4).
Here is the schema:
<?xml version="1.0" standalone="yes" ?>
<xsd:schema id="CDLib" targetNamespace="CDLib" xmlns=""
xml... more >>
read and display xml data
Posted by chris ogunsalu via .NET 247 at 4/22/2004 9:56:33 PM
(Type your message here)
does anyone have some good example of
How to read xml into a recordset and display in fields on page. for each node in the xml file i only want to display certain information . Which may some not be present.
I have tried the following
If ds.Tables("msc_data").Row... more >>
ASP.net DataSet WriteXml error in C#
Posted by Greg R at 4/22/2004 8:21:01 PM
mydataset.WriteXml(strPath + "/my.xml"); produces this error
[ArgumentException: URI formats are not supported.
System.IO.Path.GetFullPathInternal(String path) +27
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync,... more >>
Converting Delimited Text File into XML
Posted by Padmaja at 4/22/2004 12:51:04 PM
Hello
I want to convert a huge delimited text file (of appr 85MB) directly into XML. I dont want to loop through the text file and write as xml, as it is very large file and taking much time. Can any one help me, how to convert
Thanks in advance for all your help
Best Rgds
Padmaja.... more >>
XPath query that gets elements whose subelements have an attribute with a particular value
Posted by Novice at 4/22/2004 12:31:03 PM
Hi all, I'm having some trouble with a XPath query I would like to make
I have the following simplified XML
<A><B><C name="Test"></C><C name="Test2"></C></B><B><C name="Test"></C></B></A
I would like to return all B elements that have a C sub-element that have a name with a particular value
F... more >>
Node.text
Posted by Newbie at 4/22/2004 11:26:03 AM
Hi
Making the switch to .net from VB6, and I noticed that the XMLNode object does not expose a text property. How do I write the text value of an element(vb6 - nod.Text = ....)? BTW I have googled may different combinations, and finding an answer to this is harder than it looks. I promise I am not... more >>
Opinions: Xselerator
Posted by solex at 4/22/2004 8:43:57 AM
Hello,
I have been using Xselerator to learn XSLT and XPATH and found the tool to
be very good, I was wondering what other tools exist in this price range any
suggestions?
Thanks,
Dan
... more >>
|