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

required elements in a DTD

Dormilich
8,658 Expert Mod 8TB
Hi,

I want to define that of a group of elements at least one is required. my current method was working in PHP 4 but now I've got a problem with PHP 5 DOMDocument::validate().
DTD snippet
Expand|Select|Wrap|Line Numbers
  1. <!ELEMENT datei         (file | (file?, xsl, xml?, par?))>
(<datei> may have up to 4 child elements of what either <file> or <xsl> must be present)

in PHP 5 I get the warning:
Expand|Select|Wrap|Line Numbers
  1. Warning: DOMDocument::load() [domdocument.load]: 
  2. Content model of datei is not determinist: (file | (file? , xsl , xml? , par?)) 
  3. in /Users/Alexander/Sites/kbl5/system/xml/main.struktur.xml, line: 18 
  4. in /Users/Alexander/Sites/kbl5/test.php on line 3
is there any way I can define this DTD part differently?

thanks

PS: file codes see http://bytes.com/answers/xml/857093-...validating-dtd
Dec 3 '08 #1
2 1099
JamieHowarth0
533 Expert 512MB
Moved to PHP as this is not an HTML question.

codegecko
Moderator in ASP, HTML/CSS
Dec 3 '08 #2
Dormilich
8,658 Expert Mod 8TB
I know that the base problem lies within PHP, but I thought I could get help on the DTD matter in the HTML forum. maybe I didn't make that clear enough.

Dormi
Dec 3 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Buck Rogers | last post by:
Hi guys! Love your work! The below program is from K&R2, p22. ================================= #include <stdio.h> /* count digits, white space, others */ main() {
3
by: CindyRob | last post by:
I am using .NET framework 1.1 SP1, .NET framework SDK 1.1 SP1, with hotfix 82202, Visual studio .NET 2003 with hotfix 823639. I have generated a proxy class using wsdl.exe from a schema that has an...
6
by: =?Utf-8?B?TUNN?= | last post by:
The following sections appears in my web.config file. <configuration> <system.web> <compilation> <assemblies> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral,...
37
by: viki1967 | last post by:
Hi all. I have this simple form. I need if checkbox C_1 is selected: 1) field name="n_1" is required and accept only numbers; 2) field name="n_2" is required and accept only numbers; I...
0
by: malsh1358 | last post by:
Hi I need check required elements and attributes in JAXB java classes , if there are any value for them place it , otherwise place default value in xml file , because of it I upgrade JAXB2.0 to...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.