all groups > dotnet xml > april 2004
Filter by week: 1 2 3 4 5
Problem using XPathDocument
Posted by Atul at 4/30/2004 7:33:31 PM
Hi,
I am getting XmlException while running the following code:
string sConfigXPath = Constants.CONST_CONFIG_XPATH +
"[@"+Constants.CONST_CONFIG_TYPE_ID + "="+this.iType + "]";
string sConfigFile = Constants.CONST_CONFIG_FILE_LOCATION; //Returns me
the physical path @"C:\Temp\MyXml.xml"
... more >>
XML Schema Validation + Deserialization
Posted by shonend NO[at]SPAM yahoo.com at 4/30/2004 7:56:15 AM
I would like to perform a 2-pass XML reading from a stream. Once using
the Validating reader, just to confirm the validity against the
schema, and next time to do a reading to extract the data. Actually,
second time I do a deserialization, the data from XML is fed directly
to an object.
The p... more >>
XML validation
Posted by smith at 4/30/2004 3:36:02 AM
Hi
I am doing some simle validation of xml aganist xsd
in the xml the schmalocation will be "http://localhost/books.xsd"
But the validater is throughing exception like
"The remote server returned an error: (401) Unauthorized.. An error occurred at , (1, 40).
What I think is we have to do... more >>
XSLT Transform in .net, xsl:element attributes not generated
Posted by Wayne Lian via .NET 247 at 4/29/2004 9:52:59 PM
Hi all, Just wonder anyone have encountered this problem before?=
I tried using XMLSPY debugger and I can get the correct output=
for my XSLT transformation, however in =2Enet, after=
transformation the attributes I put inside xsl:element tag=
cannot be generated=2E
Part of the XML data:
... more >>
Serializing XmlNamespaceManager
Posted by Dan via .NET 247 at 4/29/2004 5:50:56 PM
Hi All,
Is it possible to serialize an instance of XmlNamespaceManager? =
I'd like to use it to manage a collection of namespaces and save=
that collection for later use but when attempting to serialize=
it, I get an error message indicating that XmlNamespaceManager=
is not serializable=2... more >>
Specified array type is not recognized in web service response
Posted by Tomi Laamanen at 4/29/2004 5:16:04 AM
we have problems in WebService -> .NET response
Response look OK in XMLSpy and tcpTrace
<m:AGW014N1Response xmlns:m="urn:com-softwareag-entirex-rpc:AGW014N1"><ArrayOfMAA SOAP-ENC:arrayType="MAA[100]" xsi:type="SOAP-ENC:Array"><MAA><MAATUNNUS xsi:type="xsd:string">AT</MAATUNNUS><MAANIMI xsi:type... more >>
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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
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 >>
Working with an Embedded XML File
Posted by Jay Douglas at 4/21/2004 5:26:32 PM
Hello all,
I have a basic XML file of which I set the Build Action to "Embedded
Resource" The XML file is simple:
<root>
<item>
<name>Test Name</name>
<description>Test Description</description>
</item>
</root>
I'm having a heck of a time reading the xml file embedded... more >>
Getting the xml from the Request object
Posted by markeboy at 4/21/2004 5:01:02 PM
We are converting a JScript app to .Ne
Previously, on the servers we were using MSXML2.DomDocument.4.
and using the load method to retrieve the incoming XML from the CLIENT as follows
mydoc.load(Request)
This line now fails advising of an incorrect argument. How should we be handling this i... more >>
Validating XML with XSD's
Posted by Matt at 4/21/2004 3:45:17 PM
I have written a small app that uses the XmlValidationReader and a customer
ValidationEventHandler function. When I validate the XML I get detail
structured information like child is not defined or structure is invalid but
now I am getting into facets. I am working with data lengths and I have
... more >>
Parse Xml Schema
Posted by shearne NO[at]SPAM tssg.org at 4/21/2004 3:25:50 PM
I have a Xml schema like the this:
....
<schema xmlns = "http://www.w3.org/2001/XMLSchema"
targetNamespace = "http://www.ipdr.org/namespaces/ipdr"
xmlns:ipdr = "http://www.ipdr.org/namespaces/ipdr"
version = "3.0"
elementFormDefault = "qualified"
attributeFormDefault = "unqualifie... more >>
The age old debate of Attributes vs. Elements
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 4/21/2004 1:46:15 PM
Hi all, I have to decide on an XML structure going forward. The
structure is going to house a large amount of data. In the past I've
always just used the philosophy of "when in doubt use elements" - but
I just read this article:
http://msdn.microsoft.com/library/default.asp?URL=/library/en-us/... more >>
HOWTO Overcome missing namespace declaration in root node
Posted by David B. Bitton at 4/21/2004 9:59:50 AM
I am having a problem deserializing XML when the root node is missing a
namespace declaration. My Type has an XmlTypeAttribute with a namespace
defined. If I attempt to deserialize the XML, I get the dreaded
<elementname xmlns=''> was not expected
exception. If I comment out the XmlTypeAt... more >>
in-browser XML editors?
Posted by darrel at 4/21/2004 9:31:29 AM
We're building components for our in-house CMS. We're doing a lot with SQL
database, but we decided to build out main site structure as an XML file.
This XML file stores the navigation hierarchy and bits of meta data that we
use throughout the site. Right now, we, the developers, are maintaining ... more >>
SelectSingleNode and XPath question
Posted by Dave at 4/20/2004 12:11:03 PM
Is it possible to get
<codes><code id="4"><name>abc</name></code></codes
from the XML below in single SelectSingleNode/xPath expression step OR is going to have to be a multi=step process of using SelectNodes with an XPath expression to return all the nodes with "code id = 4", iterate the NodeLi... more >>
XML Cleaner
Posted by Matthew Wieder at 4/20/2004 11:06:49 AM
I was hoping that someone could point me in the right direction. I'm
looking to develop a tool that will run an XML file against an XSD
schema and if a node doesn't conform to the schema, remove that node
from the xml (or output a new xml without that node) and continue
through the whole do... more >>
Using .NET XmlDocument Class, How to use a xpath expression on xml document which has a default namespace
Posted by Seong-Tae Jeong at 4/20/2004 10:33:34 AM
for example, xml document is below, It has a default namespace
"xmlns='qwer://test'".
string xmlText = "<test
xmlns='http://test'><clear/><clear/></test>";
I would like to select node list "clear" with XPath Expression.
XmlDocument xmlDoc = new XmlDocument();
... more >>
XML Serializing unknown objects
Posted by Chris Smith at 4/19/2004 11:01:43 PM
I bet this question has been asked quite a bit, but if someone can point me
in the right direction, I would be very grateful.
I would like to write a assembly (dll) that one of the functions will act as
a task router. This router will take different objects of many types, and
pass that object ... more >>
Web Service 500 error
Posted by JP at 4/19/2004 2:21:06 PM
I have a web service that returns a XML dataset, but when i invoke the WS, i get the http 500 internal server error msg
The stored procedure retrives data just fine in .NEt environment and in Enterprise Manager. The user in the connection string has permission to execute the SP.
Any ideas?
... more >>
Problems with Deserialization.. There is an error in XML document (1, 2).
Posted by AA at 4/19/2004 2:14:20 PM
I want to Deserialize this simple xml...
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
<SubmitReq =
xmlns=3D"http://www.3gpp.org/... more >>
Tricky XPath query - Part 2
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 4/19/2004 12:10:44 PM
Hey all, I've attempted to simplify my question (or at least the XML
that is part of my example in my question):
I have the following XML:
<A>
<B><C><D>
I want to query the data in this node for the element B
</D></C><E>
I also want to query the data in this node for t... more >>
|