Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

About xml:space="preserve"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Dupont - 24 Jul 2006 14:55 GMT
I am "defining" an XML schema.
In fact I'm not really writing any schema but I am writing an XML writer and
reader for my data.
It's all custom XML and I would like it to be XML tool friendly.

I will have an element, lets call it <text/> which will be in the document
in great quantity and it should always have:
xml:space="preserve"
on.

Now, for the sake of clarity and being compact, I would like to omit this
declaration on every <text> tag, but somehow let it be know (without
downloading the unexistant so far XMLNS file).

How do I do that?
Martin Honnen - 24 Jul 2006 15:07 GMT
> I am "defining" an XML schema.
> In fact I'm not really writing any schema but I am writing an XML writer and
[quoted text clipped - 9 lines]
> declaration on every <text> tag, but somehow let it be know (without
> downloading the unexistant so far XMLNS file).

You would need a schema or DTD that defines that attribute value as
fixed for that text element. Then you need to make sure the XML
parser(s) used to process the XML support schema or DTD processing and
have it enabled when the XML is parsed (for instance with .NET 2.0 DTD
processing is disabled by default).

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/

Lloyd Dupont - 25 Jul 2006 01:32 GMT
Thanks Martin!
That's all clear now!

Signature

Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>

>
>> I am "defining" an XML schema.
[quoted text clipped - 16 lines]
> when the XML is parsed (for instance with .NET 2.0 DTD processing is
> disabled by default).

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.