split xml into separate files transperantly passing over the xsd

P

precious

my app parses a big xml file (my configuration)
i'm trying to split the xml file to files.
implementing the parsing using xerces in DOMparser.
i put a fromXML method in the class whose node i want to separate -

public void fromXML(Node element) {
if (element.hasAttribute("fileName")){
String fileName= element.getAttribute("fileName");
element = getDOMParser().parse(fileName).getDocumentElement();
}
... continue as if it were the same file
}

problem is my xml file is associated with a xsd (scheme) and i want
the element refrenced would transperantly obtain all scheme's\flags
applied to the big xml document... without me having to explicitly
associate the node with the scheme. the original call to the first xml
(with defines the flags from the parsing and which DOM parser to use)
is not in my module and i don't have access to change anything there.
i don't want to replicate code because i want changes to way it's
parsed to be transparent
please help!
ask question if i wasn't clear
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top