all groups > dotnet xml > may 2005 > threads for may 15 - 21, 2005
Filter by week: 1 2 3 4 5
Accessing multiple xml files and transforming them in to a master listing
Posted by me at 5/21/2005 11:57:39 AM
Hello,
I have serveral xml files that will have the same formatting, like this:
<bio>
<title>xxxxx</title>
<info>yadayadayada</info>
<source>Bill Gates</source>
<site>www.msn.com</site>
<timedate>5/1/2005</timedate>
</bio>
I have a master xml file listing the xml files:
<... more >>
How to disable automatic dtd validation in XmlDocument?
Posted by Fahad Ashfaque at 5/21/2005 9:13:22 AM
Hello,
I am getting an xml response from some server which I need to parse. Problem
is the xml data contains DTD declaration and the XmlDocument.LoadXml() tries
to find the dtd under C:\WINNT\System32 and throws an error.
How could i disable this automatic validation?
Thanks,
Fahad A... more >>
Creating hyperlinks
Posted by me at 5/20/2005 5:39:16 PM
Hi,
I am wondering if you can transform 2 xml nodes that is a web address in to
a <a href> tag in a transformed xml/xslt. Using below as the reference:
<bios>
<bio>
<title>zzzzz</title>
<info>blah blah blah</info>
<source>Abe Lincoln</source>
<site>www.yahoo.com</site>
<bio>
.....
.... more >>
Using XPath with namespaces
Posted by orange at 5/20/2005 11:56:55 AM
Hello,
I have been trying to get data from an xml file with a namespace. I
have followed the example in the MSDN, but I get no data in t he
XPathNodeIterator, but the file has the data I am trying to extract.
...
XPathNavigator navigator = xmlDoc.CreateNavigator();
// xpathQuery = "/Produ... more >>
Appending Node to Large XML File
Posted by Jonathan Taylor at 5/20/2005 12:00:00 AM
I have a large XML file, that is too large to read in to XmlDocument.
I need to append data to this XML file without creating a new file, since I
don't want to have two copies of the large file on the server.
I've not seen any example that works so far, even with google. Can anyone
help ?... more >>
XML TreeNode.Parent property when using 2.0 TreeView?
Posted by clintonG at 5/19/2005 9:43:36 PM
How do I get a TreeNode.Parent property when using the 2.0 TreeView control?
When the data source is an XML file there may be redundant names in the
tree. For example, when a child node with the value of 'name' is selected I
don't have a clue how to get the name of its parent which may be 'pers... more >>
Problem with .NET Beta2 upgrade, with XSD traversal (LocalElements issue!!) :-(
Posted by Uma Abhyankar at 5/19/2005 6:35:25 PM
Hello,
I had a program in .NET Beta1, where in I was programmatically traversing
the Xml Schema using the given code snippet.
However today with migration to Beta2, I am facing a compilation issue that
LocalElements property on XmlSchemaComplexType not found. I now dont know
how to trave... more >>
Converting escape characters for xml (C++)
Posted by anat at 5/19/2005 1:52:55 PM
Hi,
How do I convert escape characters (">", "&" etc.) in a string that I would
like to save in an xml (in C++)?
How do I convert the string back, to include the special characters?
I prefer using a function that converts all relevant characters rather than
replacing specific characters.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XML Document
Posted by Jonathan Taylor at 5/19/2005 11:59:09 AM
I have a list of products in an xml file I want to modify the document by
adding, removing and editing items.
I'm developing on the Compact Framework and as a result memory is an issue.
I don't really want to build a DOM of the XML using XML Document, since it
is not really needed and it w... more >>
Reading the value of an "xsi:type" attribute [unfortunate, but necessary cross-posting]
Posted by Carl Lindmark at 5/19/2005 11:36:47 AM
*Cross-posting from microsoft.public.dotnet.languages.csharp, since I
believe the question is better suited in this XML group*
Hello all,
I'm having some problems understanding all the ins and outs with datasets
and datatables (and navigating through the filled datatable)...
Just when I ... more >>
[XmlInclude(typeof(System.Drawing.Font))]
Posted by DapperDanH NO[at]SPAM nospam.nospam at 5/19/2005 11:24:13 AM
Hello,
I am learning how to use the XmlSerializer. I have a class that has a
member of type
System.Drawing.Font such as:
[XmlInclude(typeof(System.Drawing.Font))]
[XmlRoot("ProModelChartFX")]
public class MyClass
{
Font font;
public Font Font
{
get{return font;}
... more >>
(Beginner) XsdObjectGen and null dates
Posted by SteveC at 5/19/2005 10:07:21 AM
I've used XsdObjectGen (1.36) to create some C# classes, all seemed
fine
Deserialized some test XML into the class, again seemed to work Ok, but
then I noticed that any of the DateTime properties of the class which
didn't have a value in the XML were returning a value of "now"
I tried the d... more >>
Help with reading from XML file...
Posted by Terry Olsen at 5/18/2005 6:21:32 PM
I'm using the following to pull a string from an XML Log file:
Public Sub ReadXMLFile()
Dim xmlDoc As New XmlDocument
xmlDoc.Load("d:\test.xml")
Dim DriveError As String
=xmlDoc.SelectSingleNode("/joblog/backup/set/directory/directory/directory/drive_error").InnerText
MsgBox... more >>
xsd.exe generated classnames?
Posted by Bill Cohagan at 5/18/2005 5:09:40 PM
Is there a way to control generated classnames when generating classes from
an XSD using xsd.exe? When generating typed datasets it's possible to
provide some direction via the "codegen" namespace by adding attributes to
the XSD itself. These same attributes don't seem to work for class
generat... more >>
in .NET, how to manipulate xml like this? thanks!
Posted by davidw at 5/18/2005 2:13:14 PM
<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f4010-65b3-11d1-a29f-00aa00c14882/"
xmlns:c="xml:" xmlns:a="DAV:">
<a:response>
<a:href>http://????/log.doc</a:href>
<a:propstat>
......
they all have prefix, What I had tried is this:
xdRequestBody=new XmlDocument();
xdRequestBod... more >>
searching for xml nodes
Posted by helpful sql at 5/18/2005 2:07:57 PM
Hi all,
Following is a sample code from my xml file.
<w:body>
<ns0:Mpi>
<ns0:User>
<ns0:Address1>
</ns0:Address1>
</ns0:User>
</ns0:Mpi>
</w:body>
I first need to reference the User node and I am able to achieve it using
the following line. When this line executes, I do ... more >>
SQL to well formatted XML file via .NET
Posted by Benjatado at 5/18/2005 10:11:06 AM
I am trying to create several .xml files, mirrored from my SQL database that
are shaped according to an XSD schema. However, I have hit a brick wall!
Droving through several materials on how to perform this function has
resulted in some slightly jarring results!
Basically, I would like to cr... more >>
newbie needs help
Posted by Jarod at 5/18/2005 9:49:05 AM
Hey my child elements look like this:
<MessageElement>
<User value="Tadek" />
<Message value="hello helo" />
</MessageElement><MessageElement>
<User value="Tadek" />
<Message value="ryby byby " />
</MessageElement>
My problem is I don't know how to write another elements ( nodes ... more >>
XmlSchemaImport, XmlSchema's and derived type
Posted by Rumen Traykov via .NET 247 at 5/18/2005 6:23:10 AM
Have somebody had already the problem of having to write more than one XmlSchema,
where some of these schemas have imports to others and respectively derived types?
The imports cannot be resolved until I dont save all schemas to disk, but I cannot
do this because I get an error for the derived ty... more >>
XML The data at the root level is invalid. Line 1, position 1.
Posted by Korivo at 5/17/2005 12:51:07 PM
Im getting this error while trying to read a xml file that i receive from a
POST
heres the code:
Dim MyXmlReader As XmlTextReader
Dim strNodeResult As String
Dim NodeType As XmlNodeType
Dim objwriter As StreamWriter
Try
MyXmlReader = New Xm... more >>
Serializing of inherited Classes
Posted by iucon at 5/17/2005 10:18:08 AM
Hello.
I'm trying to serialize an inherited Class by a Webservice. Here ist a
Code-Snippet of the Classes I try to serialize:
// Base-Class
public class Test
{
private string _Argument1;
public string Argument1
{
get { return _Argument1; }
set { _Argument1 = value; }
}
}
... more >>
XSLT question
Posted by RJN at 5/17/2005 8:02:03 AM
Hi
Can XSLT be applied for transforming .txt files or are they applicable
only for xml to xml transformation.
Currently all the clients send file to a server in one particular
format. The format of the file which the server accepts is going to
change. So we need to build an intermediate ... more >>
Convert XmlDocument to XpathDocument
Posted by Fahad Ashfaque at 5/17/2005 2:49:30 AM
Hi,
I've an object of XmlDocument, I need to pass it to some function which
takes XpathDocument object, How could I convert? There is not Conversion
Operator overload like that.
Your reply might help me a lot.
Thanks,
Fahad... more >>
Finding out the default namespace of an XML document
Posted by Steve Terepin at 5/17/2005 12:00:00 AM
I'm reading in an XML file with might be in either a 'new' format which
defines a default namespace, like this :
<rootElement xmlns:some-url>
<otherstuff/>
</rootElement>
.... or might be in an older format without a default namespace :
<rootElement>
<differentstuff>
</rootElement... more >>
Transforming part of the XML
Posted by fix at 5/16/2005 10:44:14 PM
Hi all,
I am trying to transform part of the XML in a file using XSLT. I select
my node by a XPathNavigator and pass it to an XslTranform to Transform
that. But unfortunately it transforms the whole XML document instead of
part of it. Is there any way that I can transform only the part sele... more >>
Problem with XML file?
Posted by Olav Tollefsen at 5/16/2005 12:00:00 AM
I'm using the following code to create an Xml document to be saved by the
browser (IE):
MemoryStream stream = new MemoryStream();
OrderManager.ExportToXml(stream); // Creates Xml
by using XmlTextWriter to the stream
Response.Clear();
Res... more >>
passing node set through document function to extension object
Posted by Oleksandr Brovko at 5/16/2005 12:00:00 AM
Code sample below demonstrates following:
We have sample extension object with 2 methods
TestMethod - takes XPathNodeIterator as a parameter
TestMethod2 - takes string as a parameter
also we have CustomXmlResolver, stylesheet takes <XML>SourceDoc</XML> as
source XML document
also syle... more >>
problems using XML in .NET
Posted by Miguel Oliveira at 5/16/2005 12:00:00 AM
Hello,
I'm trying to use XML functionalities to my project. The main idea is to
populate menus, dropdowns, and layout text strings in to XML files to reduce
database consumption.
Please tell me if i'm doing it wrong:
- I've created a complex type in a XSD file, rather then a simple sql ... more >>
Slow reading xml file
Posted by JezB at 5/16/2005 12:00:00 AM
I'm opening an xml file with the statement
XPathDocument xPathDocument = new XPathDocument(fileLocation);
and then scanning the structure using an XPathNavigator. This works but
loading the document is tediously slow, since the xml file can be pretty
large. What is a quick alternative ?
... more >>
Adding namespace to an XML string.
Posted by Don at 5/15/2005 11:48:52 PM
If I have a well-formed XML document in a string, what can I do to get a
namespace added to it? What class, properties, and methods can I use?
Thanks,
Don
... more >>
Specifying the Default Namespace
Posted by JT at 5/15/2005 8:26:02 PM
Hi all,
I have a pretty basic question... I have a method (below) which uses
ExecuteXMLReader to load the output from a FOR XML Explicit stored procedure
into an XML document, and then save the document to a file. It works well.
Now, I am trying to add namespace support, and want my namesp... more >>
|