Hi Brendan,
I think that's an example of <Author> having
non-well-formed content, not an example of <Author> having an illegal
string value. Certainly if the "<" is escaped then <Author> is
legal:
<Author> <tag/>
</Author>
I'm not sure what the answer is.
/Roger
From: Brendan
[mailto:melbourne.research@gmail.com]
Sent: Friday, February 09,
2007 1:29 PM
To: Costello, Roger L.
Subject: Re: [xml-dev]
Brain Teaser: Element Author is of type xsd:string, what's an illegal value of
Author?
What about
<Author> <tag/>
</Author>
Isn't an element a non-string value, and therefore
illegal?
Brendan Macmillan
<xsd:element
name="Author" type="xsd:string" />
<?xml
version="1.0"?>
<Book>
<Author>...</Author>
</Book>
Question:
what is an invalid (non-string) value for <Author>?