all groups > dotnet xml > july 2005
Filter by week: 1 2 3 4 5
archival of newsfeeds?
Posted by cody at 7/29/2005 10:13:15 AM
I want to program a feedreader which is able to archive all messages so that
I can view messages from weeks or months ago.
The question is now *how* to archive them. Since the feeds can have
different formats do I have to convert them in my own format? Is it better
to store them in a database ... more >>
Are you the XML expert I need?
Posted by Wim Hoogenraad at 7/29/2005 12:00:00 AM
Dear developer,
Do you often wonder who built a certain website and how it is done? And who
manages that website right now?
Strange, but developers usually stay anonymous while they should present
themselfs to get more orders.
We have been working on a website to change this situation:
Web... more >>
Can't load xml containing \v
Posted by Harry Keck at 7/27/2005 2:35:03 PM
I have an xml document that I am trying to load, which contains RTF text. I
get the error, "{"'\v', hexadecimal value 0x0B, is an invalid character. Line
1, position 24." }" when I call this code.
System.Xml.XmlDocument xmlNewDocument = new System.Xml.XmlDocument();
xmlNewDocument.LoadXml("... more >>
XML validation problem (substitutionGroup)
Posted by Michael Skulsky at 7/27/2005 11:38:40 AM
Hi all,
I've got the following validation problem. There are 2 schemas and a
document:
-----------------------------------------------------------------
bar.xsd
======
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns:bar="urn:bar" targetNamespace="urn:bar"
xmlns="http://www.w3.org... more >>
Finding & Updating nodes within a CDATA section
Posted by Paul J Lay at 7/25/2005 10:25:23 AM
BlankI seem to be able to find and update nodes and attributes fairly =
well using the XmlDocument class thanks the great support I received on =
this newgroup. However, I a can't seem to locate properties contained =
with a CDATA section. Is this possible? I have attached a small =
example. ... more >>
XML for programing
Posted by cynthia helfen at 7/25/2005 8:37:11 AM
How can i use XML in my C++ applications?
cynthia.helfen@livepharm.com... more >>
How to perform xsl Transformation in Memory
Posted by kuangzhang NO[at]SPAM gmail.com at 7/25/2005 8:01:14 AM
I have an database that stores both the XSL and XML data and would like
to transform the two upon request from the user.
I have created a aspx page that takes the XMLDocID and XSLDocID as
parameter.
private void Page_Load(object sender, System.EventArgs e)
{
string XML = dsXML.Tab... more >>
traversing 2 trees at the same time
Posted by alfred at 7/25/2005 5:09:02 AM
Hi
my question is on traversing a tree with DOM. how would I be able to
traverse 2 trees at the same time. I have 2 XML documents, with similar
nodes. I would like to traverse 1 xml document, if I found a node that
matches another node in the other document, I would like to update attrib... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Help with transforming file
Posted by Aaron at 7/24/2005 11:45:09 AM
Hello,
I want to transform html tags with in the xml file when it use the asp:xml
tag, how would I do this?
Here is the example of the xslt file:
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<xsl:output method="xml" indent="... more >>
ems
Posted by Javier at 7/23/2005 11:42:02 AM
Hello:
I have a problem with encoding. I get information from a web page, and
sometimes it contains "strange" symbols like "á" and "é", and these come
encoding like "& a a c u t e ;", "& e a c u t e ;" and similar.
The problem is that i use this information in XMLDocument object, I load the... more >>
deprecated XML technologies?
Posted by ian at 7/23/2005 5:55:49 AM
XML is a huge area with so many related technologies, xpath,xsl, etc,
have any been deprecated or replaced with something better? For example,
I believe that DTD's are no longer popular (although my tiny mind has
already forgotten the new sexier way of specifying a schema).
As you can tell, it'... more >>
attribute names
Posted by ian at 7/23/2005 5:50:52 AM
Hi, I posted this on the general c# newsgroup a while ago and didn't get
a reply, so dug about and found you all here :)
------Original message----------
I'm using VS2005 latest beta, playing around with XML. I wanted a
solution to the question I've seen asked many times which is "How do I
... more >>
simple rdf to html doesn't work
Posted by cody at 7/23/2005 3:30:26 AM
I have the following feed which I want to convert to html:
http://www.heise.de/newsticker/heise.rdf but it does not work, I only see
the html elements empty as if it found no elements in the xml file, whereas
the feed http://www.golem.de/rss.php?feed=RSS1.0 works perfectly although I
annot s... more >>
What am I doing in XML?
Posted by futureofai NO[at]SPAM gmail.com at 7/23/2005 3:28:39 AM
Hi
Sorry to ask this kind of a question. Basically I will be creating a
program in .Net that can obtain instructions from other programs
written in any other language. The instructions will come to me in text
files that are created by the other programs. The text files will all
contain XML ba... more >>
XML Data Islands - use of DSO
Posted by intrader at 7/23/2005 2:34:14 AM
Is it possible to perform two way Data Binding (at the client) using and
XML DSO?
I am interested in dynamic update of a web page (including update of the
data source - the source for the XML).
Thanks... more >>
Any thing like this in .NET?
Posted by smartkid at 7/22/2005 6:37:17 PM
The XML Schema Infoset Model is a reference library that provides an API for
use with any code that examines, creates or modifies W3C XML Schema
(standalone or as part of other artifacts, such as XForms or WSDL
documents).
http://eclipse.org/emf/xsd.php
Thanks
... more >>
SelectNodes starts-with XPath help
Posted by Larry Viezel at 7/22/2005 3:43:23 PM
I have the following XML:
<folder name="global">
<folder name="_images">
<file name="creative_apply_txt.jpg" />
<file name="creative_culture_txt.jpg" />
<file name="push_btn_submit.gif" />
</folder>
<folder name="en">
<folder name="_images">
<file name="creative_apply_txt.j... more >>
C# XML Documentation Tool
Posted by ME at 7/21/2005 11:59:39 PM
I am trying to find a comprehensive addin for Visual Studio .Net 2003 that
will help with documenting my code. In particular I am looking for a GUI of
some kind that could make it easier (and faster) to supply more complete
comments for multiple comment tags (<summary>, <seealso>, <exception>... more >>
create element at location defined by xpath
Posted by richlm at 7/21/2005 12:00:00 AM
I use node.SelectNode(...) to locate a particular element/attribute in my
document.
If it doesn't exist I get a null reference.
Is there a simple way to create the "missing" element/attribute defined by
my (arbitrary) xpath expression?
I can imagine doing this by string-parse of my xpath ... more >>
XmlDocument xsi: Problem
Posted by Mark Jerde at 7/20/2005 4:01:08 PM
I've been looking through MSDN, books and googling for a couple hours but
haven't found the solution yet. I'm using CSharp in VS .NET 2003.
I'm trying to use XmlDocument to save XML files that are valid to a schema
I've developed. I want the root element to look like this:
<TestCase xmln... more >>
query with xpath
Posted by jsh02_nova at 7/20/2005 12:10:33 PM
When I load my xml file that has a xml schema declared for it into a
xmldocument class and try to select nodes using a xpath statement, I can
only select the top node which is the document.
When I remove the xml schema declaration then any of my xpath statements
can select any node that I wa... more >>
Find records that do not conform to schema
Posted by Cowboy (Gregory A. Beamer) - MVP at 7/20/2005 9:10:01 AM
We have an application right now that determines if an XML document sent in
conforms to schema. What we have now been asked to do is add functionality
that creates an exception report for all records that do not conform to our
schema (XSD). One of the team members has built some functionality ... more >>
Regular exression validation
Posted by AGGoogle at 7/20/2005 7:23:09 AM
I have a regular expression for email validation that I can validate
using the XMLSPY but using the actual code (validating reader .NET) it
fails.
This is what my pattern looks like
<xs:pattern
value="([\w,_,-]*[.]*[\w,_,-])+@[\w,_,-]+[.]+[a-zA-Z]{2,4}"/>
XmlValidatingReader reade... more >>
Optimizing size of generated XML
Posted by Nick Gilbert at 7/20/2005 12:00:00 AM
Hi,
I have to send an array of prices for a list of products over XML.
Currently my XML data looks like this:
<ArrayOfProd>
<Prod Code="productcode001">
<Prices>
<P F="2005-01-01" T="2005-09-09" Q="10" V="27.50" />
<P F="2005-01-01" T="2005-09-09" Q="10" V="27.50" ... more >>
RSS aggregator library
Posted by Imran Aziz at 7/20/2005 12:00:00 AM
Hello All,
I am new to CSharp and given the task to create an RSS aggregator, I have
come across RSS.net but have not been able to compile the library as yet,
can anyone please point me to a peace of code or library that I can
integrate in my ASP.net C# application to manage RSS aggregation?... more >>
Select Nodes
Posted by Paul J Lay at 7/19/2005 3:50:40 PM
I am using the XmlDocument Select Nodes method and it seems to work OK
except that it returns embedded nodes in the collection when I only want the
nodes that are not embedded. For example I have a statement as follows:
nodes = doc.SelectNodes(\\Node1\\Node\\DesiredNode);
It gives me back... more >>
DOM sorting elements by name?
Posted by Andy at 7/19/2005 1:01:39 PM
Hi all,
I'm writing a program which transforms an SGML document to XML, which I
then pull elements out of.
At a certain point, I have the following Xml snippit:
<affliates>
<person>Bob</person>
<xaff refid="ABC" />
<person>Karen</person>
<xaff refid="ABC" />
<xaff refi... more >>
XML and Databases
Posted by asad at 7/19/2005 6:47:05 AM
hello, my question is that what is the benefit of getting any RDBMS data into
an XML file ?. Is this better then displaying data directly from database?
please tell me.
Thanks.
have a good day.... more >>
Best approach to splitting 1 file containing multiple xml docs
Posted by Andy Britcliffe at 7/19/2005 1:40:02 AM
Hi
I'm faced with the situation where I could have a single physical file that
could contain multiplie XML documents e.g
file.txt contains the following:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE doc SYSTEM "1.0b.dtd">
<doc transmission-date="20050715T154340Z" >
<blah seq="... more >>
Finding an element by name in a schema
Posted by Greg Allen at 7/19/2005 12:00:00 AM
Is there an easy way to find an element by name given a XmlSchema object?
Or do I have to parse the entire schema myself to search for it?
Do I somehow need to use XmlSchemaXPath? If so, how?
Thanks,
-- Greg
... more >>
Store compressed binary files with XML
Posted by dtorg at 7/18/2005 1:35:02 PM
I utilize XML to represent my data files. I also have several binary files I
want to attach to the XML file in compressed (zip) format. I prefer to keep
these in binary format to save space. To you have any suggestions? Note: I am
using the DotNet framework 2.0.
--
David T... more >>
SelectNodes Xpath Contains - Getting XSLT Unknown Function error
Posted by tschulken NO[at]SPAM gmail.com at 7/18/2005 6:57:44 AM
I am trying to get certain nodes within an xml doc that contain certain
text (similar to a SQL LIKE). In doing so I am using the XPATH Contains
function and have not been successful. When I run I get the following
error:
System.Xml.XPath.XPathException: XsltContext is needed for this query
beca... more >>
Setting innertext value with XMLSerializer
Posted by Paul Duncan at 7/16/2005 5:36:19 PM
Hi.
The question is: How do I set the value of PageElement to the innertext
'Hello World' in my xml when I use XMLSerializer?
My source xml is:
<book>
<page number="1">Hello World</page>
</book>
My source classes are:
<xmlroot("book")> Public class Book()
<xmlIgnore()> P... more >>
xsd.exe
Posted by Scott M. at 7/16/2005 12:00:00 AM
Is xsd.exe an managed assembly? Can I use it on a machine that does not
have the .NET Framework? I want to use it for its ability to take .dtd's
and convert them to .xsd's.
Thanks.
... more >>
"There was an error reflecting type" When I have two attributes specified.
Posted by Q. John Chen at 7/15/2005 11:40:28 AM
E.G.
class ABC
{
// CAN ONLY HAVE ONE OF the FOLLOWING ATTRIBUTES
[XmlElement(ElementName = "PREFIX")]
[XmlElementAttribute(IsNullable = false)]
public string Prefix = null;
[XmlElement(ElementName = "FIRST_NAME")]
public string FirstName;
public void Save... more >>
Help with XML/XPATH
Posted by baggy at 7/14/2005 8:02:41 AM
Hi,
I have the following XML:-
<X1>
<Props>
<Prop xsi:type=\"text\" Name=\"N1\"><Value>TestUser</Value></Prop>
<Prop xsi:type=\"bool\" Name=\"flag\"><Value>0</Value></Prop>
<Prop xsi:type=\"int\" Name=\"numemp\"><Value>100</Value></Prop>
</Props>
</X1>
I want to extract jus... more >>
Encountering Error: This is an unexpected token. The expected token is 'NAME'.
Posted by SaCompGeek at 7/14/2005 7:58:33 AM
I have a class that defines a Key/Name value collection that i
generated by and XML Element with multiple attributes. The attribute
are used to create the collection of 'Binate' objects. This is writte
in VB.NET 1.1.
I have this class in a Win32 test application and it works fine. Whe
I p... more >>
unknown xslt function "format-dateTime"
Posted by cody at 7/14/2005 12:00:00 AM
Iam using Beta2 of VS2005 and getting the error "Error 4 'format-dateTime()'
is an unknown XSLT function" at the following line:
<xsl:value-of select="format-dateTime($pubDate,'[FNn] [D] [MNn] [Y]
[h]:[m01] [PN]')" />
how can I get around this?
... more >>
Loosing schema information while converting DataSet to XML
Posted by Wolfgang Woznik at 7/14/2005 12:00:00 AM
Hello,
I have a Client/Server system based on a single generic communication method
using XML (as done in MS Project-Server or SharePoint-WebServices).
To transfer DataSets I'am using XmlDataDocument.
This works fine.
However the created XmlDataDocument does not contain schema information,... more >>
Defining relations in XML Schema
Posted by George Homorozeanu at 7/13/2005 5:15:13 PM
Hi,
I have a question related to the XML-Schema definition. Is it posible to
define relations between elements? The following is my XML Schema:
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="Country" type="Countries"/>
... more >>
displaying xml document
Posted by stotty NO[at]SPAM gmail.com at 7/13/2005 1:10:23 PM
I have a string which contains an xml document in my app.
Does anyone know of an easy way to display XML data in a browser, with
nice
indentations between nodes, and maybe even the +/- controls that IE
uses
when displaying XML?
Matt
... more >>
default namespace and xpath
Posted by David Thielen at 7/13/2005 12:39:07 PM
Hi;
I set up my xml as follows:
XmlDocument xml = new XmlDocument();
xml.Load(File.Open("data.xml", FileMode.Open, FileAccess.Read));
XmlNamespaceManager context = new XmlNamespaceManager(xml.NameTable);
context.AddNamespace("", "http://www.test.org");
context.AddNamespace("sns", "http:... more >>
Find unique entries
Posted by Turtle at 7/13/2005 11:17:19 AM
I have an xml file which represents a data table with several fields.
I want to extract a list of unique entries in one particular field.
What's the best way to do this?
TIA!
- Turtle
... more >>
how to read XML with entities using C#
Posted by Mark at 7/13/2005 10:59:55 AM
Hi there,
I have two xml files, one is a master file and the other is just a fragment
of xml. Master xml file uses 'DOCTYPE' to define the other file as an
entity. Then, the master uses entity references that are supposed to be
expanded into real content at parsing time. Examples are provi... more >>
NonSerialized attribute not working?
Posted by Timo at 7/13/2005 8:53:19 AM
When I use XML serialization to serialize a collection of MyObject, all of
the public fields of the object are being serialized, even those I've given
the <NonSerialized()> attribute.
<Serializable()> Public Class MyObject
Public FieldID As String
Public ParentId As String
Public ItemId... more >>
Trying to convert from VBScript to VB.NET to work in my ASP.NET app
Posted by klj_mcsd NO[at]SPAM hotmail.com at 7/13/2005 7:20:19 AM
Trying to convert from VBScript to VB.NET to work in my ASP.NET app
Set stream = server.CreateObject("ADODB.Stream")
stream.Type = adTypeBinary
stream.Open
stream.LoadFromFile Server.MapPath(filename)
contents = stream.read
' Write stream to Response object
Res... more >>
Buffer bug with XmlTextReader
Posted by Kjeld at 7/13/2005 5:46:02 AM
My scenario:
I'm using an XmlTextReader to Deserialize serveral classes from a single xml
document. Every class i pass the source stream, containing the xml.
Each class subsequently creates an XmlTextReader object with that stream as
input.
However, the second class that performs this operati... more >>
XslTransform is obsolete?
Posted by cody at 7/13/2005 2:15:16 AM
Iam using Beta2 of VS2005 and got this strange message:
Warning 1 'System.Xml.Xsl.XslTransform' is obsolete: 'This class has been
deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead.
http://go.microsoft.com/fwlink/?linkid=14202'
G:\Coder\Projects\CSharp\WebbrowserTest\Webbrow... more >>
I can write schema annotations but I can't read them...
Posted by Rein Petersen at 7/12/2005 1:09:11 PM
I was wondering if anyone else had experienced a similar issue where it
is possible to write xs:annotation elements to a schema (verified in
the resulting document streamed to the filesystem) but I cannot read
them when I System.Xml.Schema.Read() [static] the document back from
the filesystem. I... more >>
corrupted xml file
Posted by rick at 7/12/2005 7:26:16 AM
I have a web.config file that contains some application specific information.
I want to edit that data. I created an xml schema file using program
xsd.exe. I then read that file into a dataset (ReadXml). I located an update
the data (all is well) but after I re-create the xml file (WriteXml... more >>
|