I am including one xml file into other:
main.xml
-------------------------------------------------
suppose below is the foo.xml
-----------------------------------------------
xsd for foo.xml is shiporder.xsd.
Now i parsed the main.xml using dom, since there is no xsd defined for main.xml hence during dom parser validation i was getting following exception:
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'root'.
can someone please let me know how to write an xsd for the main.xml so that I can parse the main.xml. I tried to write the same however not sure how to deal with "<!DOCTYPE
doc " in xsd.
(there is already an xsd for foo.xml which i think have to include in main.xsd)