Home > Java Help > xml Parsing...

xml Parsing...



I am using java5.0-rc while compiling my program i am getting following messages...



Validation was turn on but an org.xml.sax.ErrorHandler was not set which is probably not what is desired. Parser will use a default ErrorHander to print the firt 10 errors pleas call the 'setErrorHandler' method to fix this.



Error: URI=null Line=1: Document root element is "Arial", Must Match DOCTYPE root "null"



Error: URI=null Line=1: Document is invalid, no grammar found.



Actualy i can't understand what's wrong with my program wich is using following xml file.



<?xml version = "1.0" encoding="utf-8" ?>

<Arial>

<F001>Folder</F001>

.........

.........

.........

.........

.........

.........

</Arial>




pls help me to resolve the problem, Thanx in advance.

    
Guest


Hi,

your xml file well formed. but not valid one. if you want valid one then you have to show and mention the location of DTD or Schema in your xml file.



i hopr you will get result now,

take care,

Subramanian.T

India.

Quote:
Originally Posted by corelanguage
I am using java5.0-rc while compiling my program i am getting following messages...



Validation was turn on but an org.xml.sax.ErrorHandler was not set which is probably not what is desired. Parser will use a default ErrorHander to print the firt 10 errors pleas call the 'setErrorHandler' method to fix this.



Error: URI=null Line=1: Document root element is "Arial", Must Match DOCTYPE root "null"



Error: URI=null Line=1: Document is invalid, no grammar found.



Actualy i can't understand what's wrong with my program wich is using following xml file.



<?xml version = "1.0" encoding="utf-8" ?>

<Arial>

<F001>Folder</F001>

.........

.........

.........

.........

.........

.........

</Arial>




pls help me to resolve the problem, Thanx in advance.

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2010 by Infoqu. All rights reserved