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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Root element is missing". What could it be?

Status
Not open for further replies.

PauloAndre

IS-IT--Management
Mar 22, 2002
3
BR
Hi all
I´m a programmer facing (what it seems) a big problem. I have 2 xml documents. I want the document1.xml to make a reference to the document2.xml.
First of all, I declared into the document1.xml the following tag:
<!DOCTYPE ejb-jar PUBLIC &quot; ... &quot; &quot; ... &quot; [
<!ENTITY document2 SYSTEM &quot;document2.xml&quot;> ]>

Then, to call the document2.xml, I did the following

&document2;

The problem is, when I try to execute it, I got the following erros:

&quot;Root element is missing&quot;
or
&quot;Relative URI &quot;document2.xml&quot;; can not be resolved without a document URI:-1:3&quot;

Does anyone have any idea of how to solve this? It would be very appreciated! Thanks!

Paulo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top