473,386 Members | 1,726 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,386 software developers and data experts.

About xml:space="preserve"

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 <texttag, but somehow let it be know (without
downloading the unexistant so far XMLNS file).

How do I do that?
Jul 24 '06 #1
2 6029


Lloyd Dupont wrote:
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 <texttag, 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).

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jul 24 '06 #2
Thanks Martin!
That's all clear now!

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
"Martin Honnen" <ma*******@yahoo.dewrote in message
news:u%****************@TK2MSFTNGP03.phx.gbl...
>

Lloyd Dupont wrote:
>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 <texttag, 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).

--

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

Jul 25 '06 #3

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

Similar topics

3
by: Ray Tayek | last post by:
hi, trying to use an xslt to make an xslt. trying something like: <?xml version="1.0" encoding="UTF-8"?> <?xmlspysamplexml H:\java\projects\spy1\spy\inputDocumentMap.xml?> <xsl:stylesheet...
0
by: Andrew Tyson | last post by:
Hi, I am pulling my hair out trying to figure out a problem that I am having using FOP to generate PDFs that have embedded SVG graphics. The base 64 encoded SVG is embedded as an attribute...
0
by: Jan Keller | last post by:
Hello all, I am using an XmlTextReader and a DataSet to populate a DataGrid: ds = New DataSet xr = New XmlTextReader(path) ds.ReadXml(xr) xr.Close() dv = New DataView(ds.Tables.Item(0))
0
by: serge | last post by:
I have an XML file with an XSD file. When i am reading the XML file and putting its content into a DataSet I notice that the field that has a single space character is being converted to a field...
4
by: Jon | last post by:
Hi, I used XslCompiledTransform with the following Xsl file. The <xsl:text disable-output-escaping="yes"does not work when using XslCompiledTransform to do the trnasform (namely the output...
1
by: jiffers | last post by:
I'm trying to figure out how to define an element in RNC so that its contents are validated if a definition matches, othewise no validation is done. The example given in the tutorial seems to...
1
by: Miggiddy79 | last post by:
Does any body know how to fix this. I am trying to validate these html codes through the markup validation. I have 5 error messages: 1) Line 114, Column 15: there is no attribute "BACKGROUND" ....
8
by: howa | last post by:
Just found a funny things.. in HTML4's dtd, http://www.w3.org/TR/html4/strict.dtd language is not valid, i.e. <!ELEMENT SCRIPT - - %Script; -- script statements --> <!ATTLIST...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.