For Programmers: Free Programming Magazines  


Home > Archive > Java Help > May 2004 > is it possible to refrence xml node to a file?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author is it possible to refrence xml node to a file?
precious

2004-05-22, 5:32 pm

i'm trying to split my xml file to two files by refrencing one of the
inner nodes to a different file. i add a "fileName" attribute and then
in the parsing (using DOMparser) i use -
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: how can apply the xsd schema defined at the big file to
the node on the separate file?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com