Paul Flew <paul.flew@optimadm.nospam.com> wrote:
[color=blue]
> I'm sure this is a very simple question, but can someone tell me whether the
> following is a well-formed XML document (not withstanding the lack of DTD):
>
><document>Some text <documentcomponent>Component Part</documentcomponent>
> some more text </document>[/color]
Yes, it is well-formed.
Why ask thousands of people around the world to spend grey-matter
cycles on a question easily answered with silicon-cycles?
ie. Why not run the document through an XML parser, and see what happens?
[color=blue]
> i.e. Embedding a tag within the contents of another tag (a la HTML)?[/color]
That is *not* embedding a tag within a tag.
Embedding a tag within a tag is not allowed in XML.
Embedding an element within an element is allowed though.
See the XML FAQ:
http://www.ucc.ie:8080/cocoon/xmlfaq#makeup
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas