all groups > dotnet xml > january 2006 >
You're in the

dotnet xml

group:

Implementing XML Base?



Implementing XML Base? Gustaf Liljegren
1/18/2006 4:55:37 AM
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?

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.

Re: Implementing XML Base? Bjoern Hoehrmann
1/18/2006 6:02:47 AM
* Gustaf Liljegren wrote in microsoft.public.dotnet.xml:
[quoted text, click to view]

http://www.xmlmvp.org/
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
Re: Implementing XML Base? Gustaf Liljegren
1/18/2006 6:50:03 AM
[quoted text, click to view]

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

Re: Implementing XML Base? Bjoern Hoehrmann
1/18/2006 7:30:58 AM
* Gustaf Liljegren wrote in microsoft.public.dotnet.xml:
[quoted text, click to view]

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:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
Re: Implementing XML Base? clintonG
1/18/2006 3:10:26 PM
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/


[quoted text, click to view]

AddThis Social Bookmark Button