How to convert Document object to Input Source ?
Posted on 2001-06-16
I am having a XML document objecy created on the fly. I need to validate it against Schema. I am using xerces 1.4.0. I have set features for the parser.Now i need to parse to validate the XML.
For this i need to call "parser.parse()". But parse() method takes "InputSource" as parameter. But i have Document object. How do i convert this Document object to "InputSource" for passing it to parse() method.
Can anybody help.