M
Marco Garutti
Hallo All,
I'm approaching xml for the first time.
My first example is this source code:
<?xml version="1.0"?>
<!DOCTYPE EMAIL [
<!ELEMENT EMAIL (TO, FROM, CC, SUBJECT, BODY)>
<!ELEMENT TO (#PCDATA)>
<!ELEMENT FROM (#PCDATA)>
<!ELEMENT SUBJECT (#PCDATA)>
<!ELEMENT BODY (#PCDATA)>
]>
<EMAIL>
<TO>[email protected]</TO>
<FROM>[email protected]</FROM>
<SUBJECT>My first DTD</SUBJECT>
<BODY>Hello, World</BODY>
</EMAIL>
but executing this code the result is bad:
<?xml version="1.0" ?>
<!DOCTYPE EMAIL (View Source for full doctype...)>
- <EMAIL>
<TO>[email protected]</TO>
<FROM>[email protected]</FROM>
<SUBJECT>My first DTD</SUBJECT>
<BODY>Hello, World</BODY>
</EMAIL>
What do you think I need or I havn't understood ?
Thanks in advice.
Marco.
I'm approaching xml for the first time.
My first example is this source code:
<?xml version="1.0"?>
<!DOCTYPE EMAIL [
<!ELEMENT EMAIL (TO, FROM, CC, SUBJECT, BODY)>
<!ELEMENT TO (#PCDATA)>
<!ELEMENT FROM (#PCDATA)>
<!ELEMENT SUBJECT (#PCDATA)>
<!ELEMENT BODY (#PCDATA)>
]>
<EMAIL>
<TO>[email protected]</TO>
<FROM>[email protected]</FROM>
<SUBJECT>My first DTD</SUBJECT>
<BODY>Hello, World</BODY>
</EMAIL>
but executing this code the result is bad:
<?xml version="1.0" ?>
<!DOCTYPE EMAIL (View Source for full doctype...)>
- <EMAIL>
<TO>[email protected]</TO>
<FROM>[email protected]</FROM>
<SUBJECT>My first DTD</SUBJECT>
<BODY>Hello, World</BODY>
</EMAIL>
What do you think I need or I havn't understood ?
Thanks in advice.
Marco.