473,595 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What does invalid character mean?

Hello,
I am fairly new to xml. I wanted to indicate in my dtd that the
element LINE_ITEM must contain one occurrence of the elements ISBN,
QUANTITY, and TITLE, but in no particular order. However, I get a
'Invalid character in content model' error when I try to validate in
IE 6.0 or Cooktop 2.5. The line from my "my.dtd" file that it is
complaining about is

<!ELEMENT LINE_ITEM (ISBN & QuANTITY & TITLE)>

The snippet of XML from my "my.xml" file is:

<LINE_ITEM ID="1">
<QUANTITY>1</QUANTITY>
<ISBN>003055372 5</ISBN>
<TITLE>Teachi ng Resources</TITLE>
</LINE_ITEM>

The manuals I've read say "&" is a vliad character for DTD
definitions, but for some reason, it is not working for me.

Any help is appreciated, Dave
Jul 20 '05 #1
3 5881
The ampersand (&) is used for entities. For your purposes, you want to say:

<!ELEMENT LINE_ITEM (ISBN, QUANTITY, TITLE)>

D. Alvarado wrote:
Hello,
I am fairly new to xml. I wanted to indicate in my dtd that the
element LINE_ITEM must contain one occurrence of the elements ISBN,
QUANTITY, and TITLE, but in no particular order. However, I get a
'Invalid character in content model' error when I try to validate in
IE 6.0 or Cooktop 2.5. The line from my "my.dtd" file that it is
complaining about is

<!ELEMENT LINE_ITEM (ISBN & QuANTITY & TITLE)>

The snippet of XML from my "my.xml" file is:

<LINE_ITEM ID="1">
<QUANTITY>1</QUANTITY>
<ISBN>003055372 5</ISBN>
<TITLE>Teachi ng Resources</TITLE>
</LINE_ITEM>

The manuals I've read say "&" is a vliad character for DTD
definitions, but for some reason, it is not working for me.

Any help is appreciated, Dave


Jul 20 '05 #2
D. Alvarado wrote:
Hello,
I am fairly new to xml. I wanted to indicate in my dtd that the
element LINE_ITEM must contain one occurrence of the elements ISBN,
QUANTITY, and TITLE, but in no particular order. However, I get a
'Invalid character in content model' error when I try to validate in
IE 6.0 or Cooktop 2.5. The line from my "my.dtd" file that it is
complaining about is

<!ELEMENT LINE_ITEM (ISBN & QuANTITY & TITLE)>
The ampersand is valid and has a meaning in SGML DTDs. XML DTDs don't
have this feature.
The manuals I've read say "&" is a vliad character for DTD
definitions, but for some reason, it is not working for me.


Is the manual you use about SGML?
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #3
Charles Fineman <cf************ **@yahoo.com> wrote in message news:<7f******* *************** ****@dcanet.all thenewsgroups.c om>...
The ampersand (&) is used for entities. For your purposes, you want to say:

<!ELEMENT LINE_ITEM (ISBN, QUANTITY, TITLE)>


Thanks for your reply, but this is not quite what I want to say. When
I tried this, I got validation errors if I put a QUANTITY element
before an ISBN element. I want to say that these three elements can
be included, but not necessarily in that order. Any ideas? Thanks
again -
Jul 20 '05 #4

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

Similar topics

2
5417
by: Don Clark | last post by:
Hello; Admittedly, I'm very new to HTML, and this is my first post to any newsgroup, so please go easy. I was looking at the html code for an email I received and noted an href statement that looked very unusual. The statement was: <a href=3D"http://www.%76%69t%2D%63%6F.com"> <INPUT TYPE=3D"submit" VALUE=3D"Order Here" style=3D"font-family: Verdana; color: #3F79C0; ">
5
1622
by: lkrubner | last post by:
I'm worried about idiot users that write long essays in Microsoft Word, then log into their accounts and bring up an HTML form and copy and paste the essay and hit submit. Or perhaps they do this using WordPerfect. Or perhaps they use MacWrite. I output everything from my site as UTF-8. I'd like to check the input for characters that are not UTF-8 and then turn the bad ones to an ASCII question mark. I could loop through a string as if...
4
1391
by: siliconmike | last post by:
All I know is that there are 8 bit numbers from 0 to 255 mapped to characters like A, B, C, D and some strange looking ones (like the ones used to make boxes in old PC text modes) all these being called ASCII characters. So, what in a nutshell does "character sets" mean and how are they helpful in displaying multiple languages ? Any simple explanation? Mike
6
1909
by: Seven Kast USA | last post by:
hi if we running a c program , that if u press ctrl +d or +z or +c , then program will closed.. what behind processing ......... by KAST
3
1196
by: notregister | last post by:
Selected& = Device_Display.ListIndex sometime i do see $ replacing the &, what does it mean also?
5
18470
by: Matthew Zhou | last post by:
I check the ISO 9899 standard, \r (carriage return) Movesthe active position to the initial position of the current line. What does it do? How to input? I tried to use Flex to check this pattern as below: %%
9
9548
by: Trent | last post by:
Here is the error while using Visual Studio 2005 Error 1 error LNK2019: unresolved external symbol "void __cdecl print(int,int,int,int,int,int,int,int)" (?print@@YAXHHHHHHHH@Z) referenced in function _main assign2.obj Thanks a lot ! Here is the code:
2
2462
by: David Thielen | last post by:
All of a sudden I'm getting it. This is running using VS 2005 in debug mode using the VS 2005 web server, not IIS. thanks - dave Server Error in '/store' Application. -------------------------------------------------------------------------------- Invalid character in a Base-64 string.
93
3607
by: lorlarz | last post by:
Here, let's see what you JavaScript programmers have got Here is a place to share your large or larger full-blown JavaScript applications: real.comp.lang.js.apps (a new google group) Here is the description of this open public newsgroup: A place where good full-length, full-featured, pure (or near-pure) JavaScript large and larger applications are described and their code shared and explained. The language used for browser programs...
0
7957
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7883
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8379
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8020
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6675
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5839
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5421
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2391
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 we have to send another system
1
1491
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.