Hi Friends,
I'm facing one issue with write method of XMLWriter.
My aim is to converts a single line of string (which is a valid xml) into the formatted xml.
I'm using dom4j 1.5.2
I written one method that accepts the input as unformatted string and returns the xml formatted string.
I'm using XMLWriter class write(Document doc) method which writes on OutputStream either System.out or a File
But I required to store the String and writing into a file is restricted. So I decided to use PipeWriter-PipeReader (any ulternate is welcomed) to read the output stream.
Problem is that if my string is too big Apx. 15000 characters then execution of write method never ends. No Exeption is occuring, it just go infinite.
Please help me by analyzing the following source code and suggestting the solution.
I just need a formatted xml to show in a text area. Any alternate will also work.
Source Code
--------------------------------------
import org.dom4j.Document;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.XMLWriter;
import java.io.*;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.XMLWriter;
import java.io.*;
public class FormatXML
{
public static String xmlDocToString(Document document)
{
StringBuffer strFormattedXML = new StringBuffer();
try
{
PipedWriter pipeOut = new PipedWriter();
PipedReader pipeIn = new PipedReader(pipeOut);
PrintWriter out = new PrintWriter(pipeOut);
OutputFormat format = OutputFormat.createPrettyPrint();
XMLWriter writer = new XMLWriter( pipeOut, format );
// It works, if OutputStream is System.out and not PipedWriter
//XMLWriter writer = new XMLWriter( System.out, format );
System.out.println("Writing starts... but it never ends and goes infinite");
writer.write( document );
System.out.println("Writing should end.. but it never comes here");
pipeOut.flush();
pipeOut.close();
BufferedReader in = new BufferedReader(pipeIn);
String input;
// Storing the formatted xml into the string
while ((input = in.readLine()) != null)
{
strFormattedXML.append(input +"\n");
}
in.close();
}
catch (Exception e)
{
System.out.println("Exception " + e);
}
return strFormattedXML.toString();
}
//-------------------------------------------------------------------------
public static void main(String args[]) throws Exception
{
//String strRequest = "<cntInfo xmlns=\"urn:kcaa-service\"><ServiceInfo xmlns=\"//xml/common_type\"><DateTime xmlns=\"\">2005.09.22 at 09:56:21 IST</DateTime><Guid xmlns=\"\">0987672</Guid><SessionGuid xmlns=\"\">cntdevteam:05Ki856DxUss10</SessionGuid></ServiceInfo><Identity xmlns=\"//xml/kcaa_type\"><Identity xmlns=\"\">138501</Identity><Listing xmlns=\"\"><From>1</From><To>15</To></Listing></Identity></cntInfo>";
String strRequest = "<myContractSummary xmlns=\"urn:cnt-service\"><ServiceInfo xmlns=\"//xml/common_type\"><DateTime xmlns=\"\">2005.09.30 at 09:40:01 IST</DateTime><Guid xmlns=\"\">dl2-aIpDv62BTbrz0-qZi5m</Guid></ServiceInfo><ContractSummaryInfo xmlns=\"//xml/csm_type\">< GACId xmlns=\"\">6768</GACId><GACCode xmlns=\"\">000010A</GACCode><ClientName xmlns=\"\">SUJATHA </ClientName><AssociatedContracts xmlns=\"\"/><IssueDate xmlns=\"\">09/09/2004</IssueDate><ClientSpecInfo xmlns=\"\"><TextContents> COMMENTS ONLY Mentioned!!!!!!!!!</TextContents><Documents><Documents><DocumentID>1</DocumentID><DocumentName>NO DOCS</DocumentName><DocumentURL>WWW.YAHOO.COM</DocumentURL></Documents><Documents><DocumentName>My Doc</DocumentName>" +
"<DocumentURL>my.yahoo.com</DocumentURL></Documents></Documents></ClientSpecInfo><Products xmlns=\"\"><Products><TypeId>12</TypeId><Type>GIC-C/E</Type><Code>MC</Code><Description>GIC - Callable/Extendable</Description></Products><Products><TypeId>13</TypeId><Type>GIC-C/F</Type><Code>MH</Code><Description>GIC - Cap/Flr (w/-w/o callble/extendble)</Description></Products><Products/><Products/><Products/><Products/><Products/></Products><Contacts xmlns=\"\"><Contacts><SequenceNo>1</SequenceNo><Name>Sujatha Malik</Name><Title>Pension Benefit Consultant</Title><Address>ADD</Address><Phone/><Fax/><Email/></Contacts><Contacts><SequenceNo>2</SequenceNo>" +
"<Name>Ravi Jhon</Name><Title>Consultant</Title><Address>Add</Address><Phone/><Fax/><Email/></Contacts><Contacts/><Contacts/>" +
"<Contacts/><Contacts/><Contacts/><Contacts/><Contacts/><Contacts/><Contacts/><Contacts/></Contacts><AnnuityProducts xmlns=\"\">" +
"<PaymentInfo><PaymentDueDay>2</PaymentDueDay><PaymentDueDayOther/><PaymentMethod>6</PaymentMethod><CalculationMethod>3</CalculationMethod>" +
"<ContractStatus>1</ContractStatus><DiscontinuationDate/></PaymentInfo><BranchInformation><FTBranches>1000</FTBranches><GPAYPaymentAccCodes>" +
"<GPAYPaymentAccCodes><Key>2</Key><Value>123-45</Value></GPAYPaymentAccCodes></GPAYPaymentAccCodes><GPAYCheckBranches>No Branch</GPAYCheckBranches>" +
"<GPAYSpecialBranches>No Branch</GPAYSpecialBranches></BranchInformation><ExtraContractualPayments><FlowThrough>-1</FlowThrough><FlowThroughPaymentsDescription>" +
"<PaymentsDescription><SequenceNo>1</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>2</SequenceNo>" +
"<AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>3</SequenceNo><AccountNo>0</AccountNo><AccountDescription/>" +
"</PaymentsDescription><PaymentsDescription><SequenceNo>4</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription>" +
"<SequenceNo>5</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>6</SequenceNo><AccountNo>0</AccountNo>" +
"<AccountDescription/></PaymentsDescription></FlowThroughPaymentsDescription><InsMedDeductions>-1</InsMedDeductions><MedicalDeductionsPaymentsDescription><PaymentsDescription>" +
"<SequenceNo>1</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>2</SequenceNo><AccountNo>0</AccountNo><AccountDescription/>" +
"</PaymentsDescription><PaymentsDescription><SequenceNo>3</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>4</SequenceNo>" +
"<AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>5</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription>" +
"<PaymentsDescription><SequenceNo>6</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription></MedicalDeductionsPaymentsDescription><BillFrequency>2</BillFrequency>" +
"<BillFrequencyOther/><COLAIncrease>1</COLAIncrease><COLAIncreaseDate>No idea</COLAIncreaseDate><COLAAppliedAs>9</COLAAppliedAs><COLAAppliedBy>11</COLAAppliedBy></ExtraContractualPayments>" +
"<RetirementOptions><PostRetirement><NormalRetirementAge>65</NormalRetirementAge><EarliestRetirementAge>55</EarliestRetirementAge><ERAFormsParts>not applicable</ERAFormsParts><ERISA>1</ERISA>" +
"<ERISAFormsParts>not applicable</ERISAFormsParts><REA>0</REA><REAFormsParts/><SLA>1</SLA><SLAOptions><SLAOptions>47</SLAOptions></SLAOptions><JS>1</JS><JSOptions><JSOptions>51</JSOptions></JSOptions>" +
"<JSOptionOther/><JSFormsParts/><CC>1</CC><CCOptions><CCOptions>56</CCOptions></CCOptions><CCOptionOther/><CCFormsParts/><SS>1</SS><LumpSums>1</LumpSums><LumpSumsFormsParts>No Comments!!!!!!</LumpSumsFormsParts>" +
"<Other>1</Other><OtherText>No Comments!!!!!!</OtherText><PlanContributory>-1</PlanContributory><CashSurrenderValue>0</CashSurrenderValue><CashSurrenderFormsParts>No Comments!!!!!!</CashSurrenderFormsParts>" +
"<ChecksSent><ChecksSent>62</ChecksSent><ChecksSent>64</ChecksSent></ChecksSent></PostRetirement><PreRetirement><SurvivorSpouseOptions/><Payee>39</Payee><EligibleFormsParts>No Comments!!!!!!</EligibleFormsParts>" +
"<Automatic>1</Automatic><EEElect>-1</EEElect><Waive>1</Waive></PreRetirement><DeathBenefits><DeathBenefitsPaid>1</DeathBenefitsPaid><DeathBenefitOptions><DeathBenefitOptions>40</DeathBenefitOptions>" +
"<DeathBenefitOptions>42</DeathBenefitOptions></DeathBenefitOptions></DeathBenefits><DeferredRetirement><BenefitsStop>0</BenefitsStop><DeferRetirement>-1</DeferRetirement><BenefitIncrease>0</BenefitIncrease>" +
"</DeferredRetirement><Amendments><AmendmentsHandled>35</AmendmentsHandled><HowOffen>fortnightly</HowOffen><AmendmentsHandledOther/></Amendments></RetirementOptions><Certificates><CertificatesProduced>1</CertificatesProduced>" +
"<StopDate>01/09/2005</StopDate></Certificates><Reports><Reports><JobName>Simple job</JobName><ReportTime>Morning </ReportTime><Description>Full report displayed</Description></Reports><Reports><JobName/><ReportTime/><Description/>" +
"</Reports><Reports><JobName/><ReportTime/><Description/></Reports><Reports><JobName/><ReportTime/><Description/></Reports></Reports><ClientSpecificLetters><TextContents>No Comments!!!!!!</TextContents><Documents><Documents>" +
"<DocumentID>1</DocumentID><DocumentName>No Comments!!!!!!</DocumentName><DocumentURL>www.hotmail.com</DocumentURL></Documents></Documents></ClientSpecificLetters></AnnuityProducts><InvestmentMgmtProducts xmlns=\"\"> ;" +
"<DocumentationReceived><DocumentationReceived>31</DocumentationReceived><DocumentationReceived>33</DocumentationReceived></DocumentationReceived><MMGIC><ResetRateDate>19/06, 25/06</ResetRateDate><CurIntRate>19.60</CurIntRate>" +
"<CurIntRateType>0</CurIntRateType><BasicPoints>0.0</BasicPoints><ExpenseDeducted>1</ExpenseDeducted><DepositsExpected><DepositsExpected><DepositAmount>1000.00</DepositAmount><DepositDate>09/09/2004</DepositDate></DepositsExpected>" +
"<DepositsExpected/><DepositsExpected/></DepositsExpected><RecurringContribFrom>08/11/2004</RecurringContribFrom><RecurringContribThrough>08/04/2005</RecurringContribThrough><ExpectedAmount>1000.00</ExpectedAmount>" +
"<ExpectedAmountFreq>16</ExpectedAmountFreq><Withdrawals>2</Withdrawals><WithdrawalsOther/><MaturityData>No Comments!!!!!!</MaturityData><InterestTakedowns>No Comments!!!!!!</InterestTakedowns></MMGIC><SeparateAccounts>" +
"<FTBranches>01,11,10,00,</FTBranches><ExpensesHandled>20</ExpensesHandled><DPM>1</DPM><SeparateAccountsUsed><SeparateAccountsUsed><AccountName>12</AccountName><ValuedDaily>1</ValuedDaily><FTBranch>1</FTBranch>" +
"<SplitPercentage>100.00</SplitPercentage></SeparateAccountsUsed><SeparateAccountsUsed><AccountName>0</AccountName><ValuedDaily>0</ValuedDaily><FTBranch>0</FTBranch></SeparateAccountsUsed><SeparateAccountsUsed>" +
"<AccountName>0</AccountName><ValuedDaily>0</ValuedDaily><FTBranch>0</FTBranch></SeparateAccountsUsed><SeparateAccountsUsed><AccountName>0</AccountName><ValuedDaily>0</ValuedDaily><FTBranch>0</FTBranch></SeparateAccountsUsed>" +
"<SeparateAccountsUsed><AccountName>0</AccountName><ValuedDaily>0</ValuedDaily><FTBranch>0</FTBranch></SeparateAccountsUsed></SeparateAccountsUsed></SeparateAccounts><IPG><GACFinancialContact>2</GACFinancialContact>" +
"<GACFinancialContactOther/><InitiativeAccept>1</InitiativeAccept><IPGTypes><IPGTypes>59</IPGTypes><IPGTypes>61</IPGTypes><IPGTypes>59</IPGTypes><IPGTypes>61</IPGTypes><IPGTypes>59</IPGTypes><IPGTypes>61</IPGTypes>" +
"<IPGTypes>59</IPGTypes><IPGTypes>61</IPGTypes></IPGTypes><PaymentFundUsed>1</PaymentFundUsed><HarrisTrust>1</HarrisTrust><GenGenAccReportComments>No Comments!!!!!!</GenGenAccReportComments>" +
"<GAReportCaseCloseDate>09/12/2004</GAReportCaseCloseDate><GAReportCaseStatus>No Comments!!!!!!</GAReportCaseStatus><ExpensesCalculated>22</ExpensesCalculated><ExpensesComments>No Comments!!!!!!</ExpensesComments>" +
"<StatementsProduced>23</StatementsProduced><StatementsComments>No Comments!!!!!!</StatementsComments><PayingBenefitsBranch>No Comments!!!!!!</PayingBenefitsBranch><IPGSeparateAccounts><IPGSeparateAccounts>" +
"<AccountName>12</AccountName><Branch>3</Branch></IPGSeparateAccounts><IPGSeparateAccounts/><IPGSeparateAccounts/><IPGSeparateAccounts/><IPGSeparateAccounts/></IPGSeparateAccounts>" +
"<SpecialInstructions>No Comments!!!!!!</SpecialInstructions><AddGenAccReportComments>No Comments!!!!!!</AddGenAccReportComments></IPG></InvestmentMgmtProducts><Statements xmlns=\"\">" +
"<FaxStatements>1</FaxStatements><FaxTo>No Comments!!!!!!</FaxTo><Fax>36731273837</Fax><DueDate>No Comments!!!!!!</DueDate></Statements><Wires xmlns=\"\"><LineNo>37236</LineNo>" +
"<ClientIdentifier>No Comments!!!!!!</ClientIdentifier></Wires><FORM5500 xmlns=\"\"><PlanYear>2004-2005</PlanYear><PreparedBy>26</PreparedBy></FORM5500><SpecialServicesSummary xmlns=\"\">" +
"<SpecialServicesSummary><SpecialServiceTypes><SpecialServiceTypes>29</SpecialServiceTypes></SpecialServiceTypes><AdminUnit>1</AdminUnit><IT>0</IT><AddtionalChargesAllowed>0</AddtionalChargesAllowed>" +
"<AmountCharged>1000.00</AmountCharged><ServiceReportType>No Comments!!!!!!</ServiceReportType></SpecialServicesSummary><SpecialServicesSummary><SpecialServiceTypes><SpecialServiceTypes>28</SpecialServiceTypes>" +
"</SpecialServiceTypes><AdminUnit>1</AdminUnit><IT>0</IT><AddtionalChargesAllowed>1</AddtionalChargesAllowed><AmountCharged>500.00</AmountCharged><ServiceReportType>No Comments!!!!!!</ServiceReportType>" +
"</SpecialServicesSummary></SpecialServicesSummary><CreatedBy xmlns=\"\">XYZ</CreatedBy><ModifiedBy xmlns=\"\">XYZ</ModifiedBy><CreatedDate xmlns=\"\">08/09/2005 06:55:58 AM</CreatedDate>" +
"<ContractSummaryHistory xmlns=\"\"><ContractSummaryList><ModifiedBy>Abc DEF</ModifiedBy><ModifiedDate>09/22/2005 12:26:16 AM</ModifiedDate></ContractSummaryList></ContractSummaryHistory></ContractSummaryInfo></myContractSummary>";
org.dom4j.Document document = org.dom4j.DocumentHelper.parseText(strRequest);
String srrFormatted = FormatXML.xmlDocToString(document);
System.out.println(srrFormatted);
}
{
//String strRequest = "<cntInfo xmlns=\"urn:kcaa-service\"><ServiceInfo xmlns=\"//xml/common_type\"><DateTime xmlns=\"\">2005.09.22 at 09:56:21 IST</DateTime><Guid xmlns=\"\">0987672</Guid><SessionGuid xmlns=\"\">cntdevteam:05Ki856DxUss10</SessionGuid></ServiceInfo><Identity xmlns=\"//xml/kcaa_type\"><Identity xmlns=\"\">138501</Identity><Listing xmlns=\"\"><From>1</From><To>15</To></Listing></Identity></cntInfo>";
String strRequest = "<myContractSummary xmlns=\"urn:cnt-service\"><ServiceInfo xmlns=\"//xml/common_type\"><DateTime xmlns=\"\">2005.09.30 at 09:40:01 IST</DateTime><Guid xmlns=\"\">dl2-aIpDv62BTbrz0-qZi5m</Guid></ServiceInfo><ContractSummaryInfo xmlns=\"//xml/csm_type\">< GACId xmlns=\"\">6768</GACId><GACCode xmlns=\"\">000010A</GACCode><ClientName xmlns=\"\">SUJATHA </ClientName><AssociatedContracts xmlns=\"\"/><IssueDate xmlns=\"\">09/09/2004</IssueDate><ClientSpecInfo xmlns=\"\"><TextContents> COMMENTS ONLY Mentioned!!!!!!!!!</TextContents><Documents><Documents><DocumentID>1</DocumentID><DocumentName>NO DOCS</DocumentName><DocumentURL>WWW.YAHOO.COM</DocumentURL></Documents><Documents><DocumentName>My Doc</DocumentName>" +
"<DocumentURL>my.yahoo.com</DocumentURL></Documents></Documents></ClientSpecInfo><Products xmlns=\"\"><Products><TypeId>12</TypeId><Type>GIC-C/E</Type><Code>MC</Code><Description>GIC - Callable/Extendable</Description></Products><Products><TypeId>13</TypeId><Type>GIC-C/F</Type><Code>MH</Code><Description>GIC - Cap/Flr (w/-w/o callble/extendble)</Description></Products><Products/><Products/><Products/><Products/><Products/></Products><Contacts xmlns=\"\"><Contacts><SequenceNo>1</SequenceNo><Name>Sujatha Malik</Name><Title>Pension Benefit Consultant</Title><Address>ADD</Address><Phone/><Fax/><Email/></Contacts><Contacts><SequenceNo>2</SequenceNo>" +
"<Name>Ravi Jhon</Name><Title>Consultant</Title><Address>Add</Address><Phone/><Fax/><Email/></Contacts><Contacts/><Contacts/>" +
"<Contacts/><Contacts/><Contacts/><Contacts/><Contacts/><Contacts/><Contacts/><Contacts/></Contacts><AnnuityProducts xmlns=\"\">" +
"<PaymentInfo><PaymentDueDay>2</PaymentDueDay><PaymentDueDayOther/><PaymentMethod>6</PaymentMethod><CalculationMethod>3</CalculationMethod>" +
"<ContractStatus>1</ContractStatus><DiscontinuationDate/></PaymentInfo><BranchInformation><FTBranches>1000</FTBranches><GPAYPaymentAccCodes>" +
"<GPAYPaymentAccCodes><Key>2</Key><Value>123-45</Value></GPAYPaymentAccCodes></GPAYPaymentAccCodes><GPAYCheckBranches>No Branch</GPAYCheckBranches>" +
"<GPAYSpecialBranches>No Branch</GPAYSpecialBranches></BranchInformation><ExtraContractualPayments><FlowThrough>-1</FlowThrough><FlowThroughPaymentsDescription>" +
"<PaymentsDescription><SequenceNo>1</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>2</SequenceNo>" +
"<AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>3</SequenceNo><AccountNo>0</AccountNo><AccountDescription/>" +
"</PaymentsDescription><PaymentsDescription><SequenceNo>4</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription>" +
"<SequenceNo>5</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>6</SequenceNo><AccountNo>0</AccountNo>" +
"<AccountDescription/></PaymentsDescription></FlowThroughPaymentsDescription><InsMedDeductions>-1</InsMedDeductions><MedicalDeductionsPaymentsDescription><PaymentsDescription>" +
"<SequenceNo>1</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>2</SequenceNo><AccountNo>0</AccountNo><AccountDescription/>" +
"</PaymentsDescription><PaymentsDescription><SequenceNo>3</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>4</SequenceNo>" +
"<AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription><PaymentsDescription><SequenceNo>5</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription>" +
"<PaymentsDescription><SequenceNo>6</SequenceNo><AccountNo>0</AccountNo><AccountDescription/></PaymentsDescription></MedicalDeductionsPaymentsDescription><BillFrequency>2</BillFrequency>" +
"<BillFrequencyOther/><COLAIncrease>1</COLAIncrease><COLAIncreaseDate>No idea</COLAIncreaseDate><COLAAppliedAs>9</COLAAppliedAs><COLAAppliedBy>11</COLAAppliedBy></ExtraContractualPayments>" +
"<RetirementOptions><PostRetirement><NormalRetirementAge>65</NormalRetirementAge><EarliestRetirementAge>55</EarliestRetirementAge><ERAFormsParts>not applicable</ERAFormsParts><ERISA>1</ERISA>" +
"<ERISAFormsParts>not applicable</ERISAFormsParts><REA>0</REA><REAFormsParts/><SLA>1</SLA><SLAOptions><SLAOptions>47</SLAOptions></SLAOptions><JS>1</JS><JSOptions><JSOptions>51</JSOptions></JSOptions>" +
"<JSOptionOther/><JSFormsParts/><CC>1</CC><CCOptions><CCOptions>56</CCOptions></CCOptions><CCOptionOther/><CCFormsParts/><SS>1</SS><LumpSums>1</LumpSums><LumpSumsFormsParts>No Comments!!!!!!</LumpSumsFormsParts>" +
"<Other>1</Other><OtherText>No Comments!!!!!!</OtherText><PlanContributory>-1</PlanContributory><CashSurrenderValue>0</CashSurrenderValue><CashSurrenderFormsParts>No Comments!!!!!!</CashSurrenderFormsParts>" +
"<ChecksSent><ChecksSent>62</ChecksSent><ChecksSent>64</ChecksSent></ChecksSent></PostRetirement><PreRetirement><SurvivorSpouseOptions/><Payee>39</Payee><EligibleFormsParts>No Comments!!!!!!</EligibleFormsParts>" +
"<Automatic>1</Automatic><EEElect>-1</EEElect><Waive>1</Waive></PreRetirement><DeathBenefits><DeathBenefitsPaid>1</DeathBenefitsPaid><DeathBenefitOptions><DeathBenefitOptions>40</DeathBenefitOptions>" +
"<DeathBenefitOptions>42</DeathBenefitOptions></DeathBenefitOptions></DeathBenefits><DeferredRetirement><BenefitsStop>0</BenefitsStop><DeferRetirement>-1</DeferRetirement><BenefitIncrease>0</BenefitIncrease>" +
"</DeferredRetirement><Amendments><AmendmentsHandled>35</AmendmentsHandled><HowOffen>fortnightly</HowOffen><AmendmentsHandledOther/></Amendments></RetirementOptions><Certificates><CertificatesProduced>1</CertificatesProduced>" +
"<StopDate>01/09/2005</StopDate></Certificates><Reports><Reports><JobName>Simple job</JobName><ReportTime>Morning </ReportTime><Description>Full report displayed</Description></Reports><Reports><JobName/><ReportTime/><Description/>" +
"</Reports><Reports><JobName/><ReportTime/><Description/></Reports><Reports><JobName/><ReportTime/><Description/></Reports></Reports><ClientSpecificLetters><TextContents>No Comments!!!!!!</TextContents><Documents><Documents>" +
"<DocumentID>1</DocumentID><DocumentName>No Comments!!!!!!</DocumentName><DocumentURL>www.hotmail.com</DocumentURL></Documents></Documents></ClientSpecificLetters></AnnuityProducts><InvestmentMgmtProducts xmlns=\"\"> ;" +
"<DocumentationReceived><DocumentationReceived>31</DocumentationReceived><DocumentationReceived>33</DocumentationReceived></DocumentationReceived><MMGIC><ResetRateDate>19/06, 25/06</ResetRateDate><CurIntRate>19.60</CurIntRate>" +
"<CurIntRateType>0</CurIntRateType><BasicPoints>0.0</BasicPoints><ExpenseDeducted>1</ExpenseDeducted><DepositsExpected><DepositsExpected><DepositAmount>1000.00</DepositAmount><DepositDate>09/09/2004</DepositDate></DepositsExpected>" +
"<DepositsExpected/><DepositsExpected/></DepositsExpected><RecurringContribFrom>08/11/2004</RecurringContribFrom><RecurringContribThrough>08/04/2005</RecurringContribThrough><ExpectedAmount>1000.00</ExpectedAmount>" +
"<ExpectedAmountFreq>16</ExpectedAmountFreq><Withdrawals>2</Withdrawals><WithdrawalsOther/><MaturityData>No Comments!!!!!!</MaturityData><InterestTakedowns>No Comments!!!!!!</InterestTakedowns></MMGIC><SeparateAccounts>" +
"<FTBranches>01,11,10,00,</FTBranches><ExpensesHandled>20</ExpensesHandled><DPM>1</DPM><SeparateAccountsUsed><SeparateAccountsUsed><AccountName>12</AccountName><ValuedDaily>1</ValuedDaily><FTBranch>1</FTBranch>" +
"<SplitPercentage>100.00</SplitPercentage></SeparateAccountsUsed><SeparateAccountsUsed><AccountName>0</AccountName><ValuedDaily>0</ValuedDaily><FTBranch>0</FTBranch></SeparateAccountsUsed><SeparateAccountsUsed>" +
"<AccountName>0</AccountName><ValuedDaily>0</ValuedDaily><FTBranch>0</FTBranch></SeparateAccountsUsed><SeparateAccountsUsed><AccountName>0</AccountName><ValuedDaily>0</ValuedDaily><FTBranch>0</FTBranch></SeparateAccountsUsed>" +
"<SeparateAccountsUsed><AccountName>0</AccountName><ValuedDaily>0</ValuedDaily><FTBranch>0</FTBranch></SeparateAccountsUsed></SeparateAccountsUsed></SeparateAccounts><IPG><GACFinancialContact>2</GACFinancialContact>" +
"<GACFinancialContactOther/><InitiativeAccept>1</InitiativeAccept><IPGTypes><IPGTypes>59</IPGTypes><IPGTypes>61</IPGTypes><IPGTypes>59</IPGTypes><IPGTypes>61</IPGTypes><IPGTypes>59</IPGTypes><IPGTypes>61</IPGTypes>" +
"<IPGTypes>59</IPGTypes><IPGTypes>61</IPGTypes></IPGTypes><PaymentFundUsed>1</PaymentFundUsed><HarrisTrust>1</HarrisTrust><GenGenAccReportComments>No Comments!!!!!!</GenGenAccReportComments>" +
"<GAReportCaseCloseDate>09/12/2004</GAReportCaseCloseDate><GAReportCaseStatus>No Comments!!!!!!</GAReportCaseStatus><ExpensesCalculated>22</ExpensesCalculated><ExpensesComments>No Comments!!!!!!</ExpensesComments>" +
"<StatementsProduced>23</StatementsProduced><StatementsComments>No Comments!!!!!!</StatementsComments><PayingBenefitsBranch>No Comments!!!!!!</PayingBenefitsBranch><IPGSeparateAccounts><IPGSeparateAccounts>" +
"<AccountName>12</AccountName><Branch>3</Branch></IPGSeparateAccounts><IPGSeparateAccounts/><IPGSeparateAccounts/><IPGSeparateAccounts/><IPGSeparateAccounts/></IPGSeparateAccounts>" +
"<SpecialInstructions>No Comments!!!!!!</SpecialInstructions><AddGenAccReportComments>No Comments!!!!!!</AddGenAccReportComments></IPG></InvestmentMgmtProducts><Statements xmlns=\"\">" +
"<FaxStatements>1</FaxStatements><FaxTo>No Comments!!!!!!</FaxTo><Fax>36731273837</Fax><DueDate>No Comments!!!!!!</DueDate></Statements><Wires xmlns=\"\"><LineNo>37236</LineNo>" +
"<ClientIdentifier>No Comments!!!!!!</ClientIdentifier></Wires><FORM5500 xmlns=\"\"><PlanYear>2004-2005</PlanYear><PreparedBy>26</PreparedBy></FORM5500><SpecialServicesSummary xmlns=\"\">" +
"<SpecialServicesSummary><SpecialServiceTypes><SpecialServiceTypes>29</SpecialServiceTypes></SpecialServiceTypes><AdminUnit>1</AdminUnit><IT>0</IT><AddtionalChargesAllowed>0</AddtionalChargesAllowed>" +
"<AmountCharged>1000.00</AmountCharged><ServiceReportType>No Comments!!!!!!</ServiceReportType></SpecialServicesSummary><SpecialServicesSummary><SpecialServiceTypes><SpecialServiceTypes>28</SpecialServiceTypes>" +
"</SpecialServiceTypes><AdminUnit>1</AdminUnit><IT>0</IT><AddtionalChargesAllowed>1</AddtionalChargesAllowed><AmountCharged>500.00</AmountCharged><ServiceReportType>No Comments!!!!!!</ServiceReportType>" +
"</SpecialServicesSummary></SpecialServicesSummary><CreatedBy xmlns=\"\">XYZ</CreatedBy><ModifiedBy xmlns=\"\">XYZ</ModifiedBy><CreatedDate xmlns=\"\">08/09/2005 06:55:58 AM</CreatedDate>" +
"<ContractSummaryHistory xmlns=\"\"><ContractSummaryList><ModifiedBy>Abc DEF</ModifiedBy><ModifiedDate>09/22/2005 12:26:16 AM</ModifiedDate></ContractSummaryList></ContractSummaryHistory></ContractSummaryInfo></myContractSummary>";
org.dom4j.Document document = org.dom4j.DocumentHelper.parseText(strRequest);
String srrFormatted = FormatXML.xmlDocToString(document);
System.out.println(srrFormatted);
}
//-------------------------------------------------------------------
}
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.