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
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