473,466 Members | 1,366 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Basic XML questions...

Hi,

I have couple of simple questions about XML that I cannot find answers
to in the book I looked at and in the search I did on internet. Can
anyone help me with these?

1- Why is XML case sensitive?
2- Why does not XML allow tag minimization?
3- Why must XML document elements be properly nested?
4- Can you put binary data in a CDATA section?
5- Is there any limit to the length of an element or attribute name?
6- Where do you declare entities?
7- In XML, which takes precedence, the internal DTD or the external
DTD?

TIA,
Unal.
Jul 20 '05 #1
3 1657
In article <23**************************@posting.google.com >,
Unal <un********@yahoo.com> wrote:
I have couple of simple questions about XML that I cannot find answers
to in the book I looked at and in the search I did on internet.


These do not seem like plausible questions for a real user to ask.
On the contrary, they look just like homework exercises.

In any case, you can find most of the answers in the XML specification
itself.

-- Richard
Jul 20 '05 #2
On 29 Oct 2004 10:44:30 -0700, un********@yahoo.com (Unal) wrote:
Hi,

I have couple of simple questions about XML that I cannot find answers
to in the book I looked at and in the search I did on internet. Can
anyone help me with these?

1- Why is XML case sensitive?
2- Why does not XML allow tag minimization? I don't know.. maybe because XML is an SGML instance?
3- Why must XML document elements be properly nested?
4- Can you put binary data in a CDATA section? This certainly is answered a zillion places, and even in this newsgroup!..
err after that harangue, I hope this is correct.. yes you can but it has to be encoded to be
valid XML text... sort of like bin2hex does.5- Is there any limit to the length of an element or attribute name? Maybe this is implementation dependent.. seems the perfect place to look for an answer is the spec.6- Where do you declare entities?
7- In XML, which takes precedence, the internal DTD or the external
DTD? I've never used an internal DTD..
try making a test document and find out.
TIA,
Unal.

HTH
Jul 20 '05 #3
Unal wrote:
Hi,

I have couple of simple questions about XML that I cannot find answers
to in the book I looked at and in the search I did on internet. Can
anyone help me with these?
Did you try reading the FAQ at http://www.ucc.ie/xml ?
1- Why is XML case sensitive?
So that languages using alphabets which have no case can be used. If we had
allowed case-insensitivity, it would preclude some people from using it.
(Actually it was more complex than that, but it will suffice).
2- Why does not XML allow tag minimization?
To make it easier to write programs for.
3- Why must XML document elements be properly nested?
Ditto.
4- Can you put binary data in a CDATA section?
No. Use UUencoding or Base64 or something like.
5- Is there any limit to the length of an element or attribute name?
In theory, no. In the formal definitions, 999999999 I think. In practice, I
suspect many systems will explode into little pieces of pink goo if you try
to make them read strings longer than their virtual memory maxima.
6- Where do you declare entities?
In the DTD or internal subset.
7- In XML, which takes precedence, the internal DTD or the external
DTD?


The internal subset is read and processed before the external subset.
That way you can include declarations (eg of entities) which will
prevent others of the same name from being used, and thus take precedence.
Many large DTDs use this to allow on-the-fly modifications by overriding
portions of the external subset whose use or non-use is controlled by a
Parameter Entity.

///Peter
--
"The cat in the box is both a wave and a particle"
-- Terry Pratchett, introducing quantum physics in _The Authentic Cat_
Jul 20 '05 #4

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

Similar topics

2
by: AK | last post by:
I don't want any part of the previous discussion on Visual Basic versus Visual Basic.Net. My query is about using Visual Basic for Applications; and whether it is better to use Visual Basic 6 or...
8
by: Orange Free | last post by:
I want to create a program that will ask a user a series of questions and then generate a Microsoft Word document whose content is dictated by the answers. I am not a professional programmer, and...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
2
by: Steven O. | last post by:
First, this may not be the correct newsgroup. I have some relatively basic questions on SQL. I tried to find a newsgroup that was specifically just about SQL, and was surprised to find that all...
4
by: Ramesh | last post by:
hi, Let me ask some basic questions. Can anybody explain me about the following questions: 1. When we have to create sn key? Whenever we compiled Component we have to create or it is a one time...
3
by: Jim H | last post by:
If there is a site someone can point me to that answers such basic questions, rather than taking up support's time posting answers, please let me know. I've developed C# .NET, unmanaged C++, and...
2
by: Fay Yocum | last post by:
BEWARE beginner questions!! I have some experience in Access but never as much as I want or need. I have decided to get in on VB.Net. I would only rate myself in Access as a...
0
by: software2006 | last post by:
ASP And Visual Basic Interview questions and answers I have listed over 100 ASP and Visual Basic interview questions and answers in my website...
4
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
2
by: LayneMitch via WebmasterKB.com | last post by:
Hello. This is a basic quiz. Only about 3 questions. I'm having issue with the answer key which stays on a certain value regardless of acknowledging that you have the correct answer for the...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.