Hi All,
I have below xml file...
and i want to split this xml file in multiple document using XSLT.
Then i will apply xsl in Java Transformation as below...
How can i do it ?
Thanks in Advance.
I have below xml file...
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <T0020 xsi:schemaLocation="http://www.safersys.org/namespaces/T0020V1 T0020V1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.safersys.org/namespaces/T0020V1"> <IRP_ACCOUNT> ..... </IRP_ACCOUNT> <IRP_ACCOUNT> ..... </IRP_ACCOUNT> <IRP_ACCOUNT> ..... </IRP_ACCOUNT> </T0020>
Then i will apply xsl in Java Transformation as below...
Code:
TransformerFactory tFactory = TransformerFactory.newInstance(); Source xslSource = new StreamSource(xslFilePath); Transformer trans = tFactory.newTransformer(xslSource); trans.transform(new StreamSource(xmlFileName), new StreamResult(split xml files ));
Thanks in Advance.
Comment