This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Above is my XML file. In this way I will have thousands of attributes, I will have to retireve the data only for specific modelnumbers.
Below is my code which wrks fine and retireves all the models into a CSV file:
TransformerFactory factory = TransformerFactory.newInstance();
StreamSource streamSource = new StreamSource(styleSheetName);
Transformer transformer = factory.newTransformer(streamSource);
XMLReader reader = XMLReaderFactory.createXMLReader();
//sourceXmlReader and xsltResultWriter is passed as an inputstream and outputstream
InputSource sourceReader = new InputSource(sourceXmlReader);
Source source = new SAXSource(reader, sourceReader);
Result result = new StreamResult(xsltResultWriter);
for (String parameterName : this.getParamaters().keySet())
Nope. I read it again and I still don't understand what you want to know. Normally when somebody doesn't understand, it's your responsibility to fix that problem by providing more information. I suggest you try that in this case if you are interested in getting an answer.