473,395 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Implementing XML Base?

I'm reading a document with the XmlTextReader, and I want to make it XML
Base aware, so I need to implement this somehow. What's the most
effective way of doing it?

I imagine having a variable that's keeping the current base URI, and
then look for an xml:base attribute at every new start element, and
update the variable if needed. Would that be all?

I know some have made useful extensions to the System.Xml namespace, but
I'm not interested in learning a new API now.

Gustaf
Jan 18 '06 #1
4 1199
* Gustaf Liljegren wrote in microsoft.public.dotnet.xml:
I'm reading a document with the XmlTextReader, and I want to make it XML
Base aware, so I need to implement this somehow. What's the most
effective way of doing it?


http://www.xmlmvp.org/
--
Björn Höhrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Jan 18 '06 #2
Bjoern Hoehrmann wrote:
I'm reading a document with the XmlTextReader, and I want to make it XML
Base aware, so I need to implement this somehow. What's the most
effective way of doing it?
http://www.xmlmvp.org/


Well, as I said, I'm not interested in learning an API for this, unless
it's really necessary.

Gustaf
Jan 18 '06 #3
* Gustaf Liljegren wrote in microsoft.public.dotnet.xml:
Bjoern Hoehrmann wrote:
I'm reading a document with the XmlTextReader, and I want to make it XML
Base aware, so I need to implement this somehow. What's the most
effective way of doing it?

http://www.xmlmvp.org/


Well, as I said, I'm not interested in learning an API for this, unless
it's really necessary.


Well, XmlBaseAwareXmlTextReader is equivalent to XmlTextReader except
that it supports xml:base, so this isn't a new API. And even if you make
your own API, you'll have to "learn" it...
--
Björn Höhrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Jan 18 '06 #4
Hello Bjoern ya smart @ss ;-)

I'm building an XML editor for RSS publishing. What can I learn and use from
the resources you refer to?

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Bjoern Hoehrmann" <bj****@hoehrmann.de> wrote in message
news:rv********************************@hive.bjoer n.hoehrmann.de...
* Gustaf Liljegren wrote in microsoft.public.dotnet.xml:
Bjoern Hoehrmann wrote:
I'm reading a document with the XmlTextReader, and I want to make it XML
Base aware, so I need to implement this somehow. What's the most
effective way of doing it?

http://www.xmlmvp.org/


Well, as I said, I'm not interested in learning an API for this, unless
it's really necessary.


Well, XmlBaseAwareXmlTextReader is equivalent to XmlTextReader except
that it supports xml:base, so this isn't a new API. And even if you make
your own API, you'll have to "learn" it...
--
Björn Höhrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/

Jan 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Thomas Heller | last post by:
I'm trying to implement __iter__ on an abstract base class while I don't know whether subclasses support that or not. Hope that makes sense, if not, this code should be clearer: class Base: def...
6
by: Kerry Sanders | last post by:
I am working on a project for work where I need a specialized type converter to convert the value of a string which is edited in a grid back to the underlying object type from the cell. The value...
3
by: Ivan Neganov | last post by:
Hi, I have a custom subclass of System.IO.Stream type. I wonder how to correctly implement the IDisposable pattern in this situation. The parent Stream type apparently uses explicit interface...
6
by: frank | last post by:
I am in the process of writing a fairly large ASP.NET web application and I am about to implement log-ons, permissions etc. I have never used any security with ASP.NET before; only classic ASP. ...
3
by: Frans Bouma | last post by:
Hi, I have a serious problem with VB.NET and a DataTable derived class and I can't figure out how to solve it. I have implemented it in C# where it works perfectly, but I can't port one...
1
by: ProjectNut | last post by:
what is the syntax for implementing an interface in a generic class that has a constrained base class example: class myclass<T>: mybase<T> where T: IComparable { } Now, I want myclass<T>...
4
by: phl | last post by:
hi, My question is: 1. To avoid possible memory leaks, when you use this pattern, after you have dealth with the unmanaged resources and before you take your object off the finalize queue,...
3
by: Daniel Kraft | last post by:
Hi, I usually program in C++, but for a special project I do have to code in C (because it may be ported to embedded-like platforms where no C++ compiler exists). I do want to realize some...
4
by: Mohamed Mansour | last post by:
Hello, What is the purpose of implementing the Observer Pattern if we can trigger an event easily? For example (from books), You have a "Forecaster" which notifies "Observable" when a...
1
by: aditi kauts | last post by:
Hi I am implementing security on Contact base smart card which follows scosta template. In card structure ef is directly under DF and DF is directly under MF. According to the template i am...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.