joey mo

Greenhorn
+ Follow
since Mar 31, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by joey mo

Thank you.
yes i was getting them mixed up :S

just wondering also if this is possible to..
set a limiting on how many times element can be made

because everytime i try <xs:element option minoccur="10" maxoccur="20"/> i get errors in my parser saying cannot put that in global element.
my namespace ended up being the problem.. but my schema doesnt seem to be active.

here is a snipent that is meant to restrict value of option but doesnt seem to do so..



and my xml looks like this
im getting unknown element for every single element tag in my xml..

im also getting this error Message: The content of an element information item does not match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)

id first like to understand what these errors mean
So i could do something like

<!element root (people)>
<!element people (people+,people?,people?,people?,people?)

would this just a make it so there is 1 person and maxium of 5?
i have a few questions to ask

in Schema i know its possible to use minoccurs and maxoccurs but is there a way to do something similar in DTD?

and another thing

how can you apply date and a zipcode format in dtd?
I dont know how i can explain it better then in the first post.

between <option>(This space here) </option> the only values i want accepted are the ones i choose so for example male or female. i need someway to do that without a schema.

i know its possible to give the attribute a name, but ive been told it is possible with the <!ELEMENET option (male|female)* >
Ok thanks guys, so the only way i can do anything close in dtd is so store information in the attributes? like type=option1 etc?
Yes but instead of using a schema i want to only use a DTD

or eqaully efficient in DTD XML
Hey guys new to these forums.

just wondering if its possible to restrict the "input" of a xml field.

for example

<root>
<option>
testing (i want to restrict this so only option1 or option2 will parse)
</option>


Testing is what i want to restrict, i know there a ways to restrict the value and type of a attribute but this isnt what im wanting to do

thanks for any help!