Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Good morning i have a problem: i ha

Status
Not open for further replies.

laziomania

Programmer
Jun 19, 2003
1
IT
Good morning i have a problem: i have an xml file and a DTD internal structure like this:

<?xml version=&quot;1.0&quot;?>
<!DOCTYPE RECORD [
<!ELEMENT RECORD (Progressivo, Attributo_sap, Lunghezza, Da, A, Codifica_java, Tipo_java, Property_set, Property, Tipo_property, Note )>
<!ELEMENT Progressivo (#PCDATA)>
<!ELEMENT Attributo_sap (#PCDATA)>
<!ELEMENT Lunghezza (#PCDATA)>
<!ELEMENT Da (#PCDATA)>
<!ELEMENT A (#PCDATA)>
<!ELEMENT Codifica_java (#PCDATA)>
<!ELEMENT Tipo_java (#PCDATA)>
<!ELEMENT Property_set (#PCDATA)>
<!ELEMENT Property (#PCDATA)>
<!ELEMENT Tipo_property (#PCDATA)>
<!ELEMENT Note (#PCDATA)>
]>

<RECORD>
<Progressivo>1</Progressivo>
<Attributo_sap>Titolo (Sig/S.ra)</Attributo_sap>
<Lunghezza>4</Lunghezza>
<Da>1</Da>
<A>4</A>
<Codifica_java>sTitolo</Codifica_java>
<Tipo_java>String</Tipo_java>
<Property_set>ENEL_EIP_Anagrafica</Property_set>
<Property>Titolo</Property>
<Tipo_property>text</Tipo_property>
<Note>&quot;&quot;</Note>
</RECORD>


The problem is that when i add an element after <Note>&quot;&quot;</Note>, for example <Hello>abcdefg</Hello>


.
.
.
<Tipo_property>text</Tipo_property>
<Note>&quot;&quot;</Note>
<Hello>abcdefg</Hello>
</RECORD>

and leave the old DTD, i don't have an error.
Why? How can i write the correct code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top