[jdom-interest] XMLOutputer b5 seems to output differently than B4
Alex Chaffee
guru at edamame.stinky.com
Tue Oct 10 14:29:22 PDT 2000
Dino, please read the API docs for any objects that are behaving
differently with b5. You'll see that XMLOutputter has a radically
improved set of options, and the default settings for them are
probably causing the lack of indentation. You can easily change this
by calling the correct combinaion of setTrimText(), setIndent(), etc.
Enjoy -
- Alex
On Tue, Oct 10, 2000 at 08:07:34PM +0100, Dino Fancellu wrote:
> The first sample is what b4 outputs, the second is b5. B5 is rather ugly.
> What gives? Is this intentional?
>
>
> <proposal id="pro1">
> <control id="cnt1">
> <control_timestamp id="cnt1c1">20000804144944</control_timestamp>
> <ifas_internal_case_reference_number
> id="cnt1c2">372</ifas_internal_case_reference_number>
> <user_identifier id="cnt1c3">EMPLOYER</user_identifier>
> <service_provider_identifier
> id="cnt1c4">SPC</service_provider_identifier>
> <service_provider_proposal_reference_no
> id="cnt1c5">1</service_provider_proposal_reference_no>
> <product_provider_identifier
> id="cnt1c6">SCOTAM</product_provider_identifier>
> <message_version_number id="cnt1c7">1.1</message_version_number>
> <message_identifier id="cnt1c8">Proposal</message_identifier>
> <drn_current_date id="cnt1c9">20000804</drn_current_date>
> <drn_current_time id="cnt1c10">144944</drn_current_time>
> <message_type id="cnt1c11">Add Pension Member</message_type>
> </control>
> <person id="p1">
> <marital_status id="p1c1">Co-habitant</marital_status>
> <planned_age_of_retirement id="p1c2">65</planned_age_of_retirement>
> <sex id="p1c3">Male</sex>
> <date_of_birth id="p1c4">19761003</date_of_birth>
> <title id="p1c5">Mr</title>
> <surname id="p1c6">Wright</surname>
> <forenames id="p1c7">Will Charles</forenames>
> <national_insurance_number
> id="p1c8">FD543545D</national_insurance_number>
> <person_tax_district id="p1c9">Southhampton</person_tax_district>
> <person_tax_reference_number
> id="p1c10">SEH321</person_tax_reference_number>
> </person>
> <communication_channel id="com1">
> <email_address id="com1c1">employee at employee.com</email_address>
> <mobile_telephone_number
> id="com1c2">0654213584</mobile_telephone_number>
> <telephone_number id="com1c3">0208475412</telephone_number>
> <address_line_1 id="com1c4">34 Employee Rd</address_line_1>
> <address_line_2 id="com1c5">Employeefield</address_line_2>
> <address_line_3 id="com1c6">Eeham</address_line_3>
> <address_line_4 id="com1c7">London</address_line_4>
> <postcode id="com1c8">EE12 4RD</postcode>
> </communication_channel>
> <organisation_communication_channel_rel id="ocr1" subject="p1"
> object="com1" />
> <employment_contract id="ec1">
> <employment_contract_start_date
> id="ec1c1">20000717</employment_contract_start_date>
> <employment_contract_end_date
> id="ec1c2">20001017</employment_contract_end_date>
> <employment_earnings id="ec1c3">
> <earnings_amount id="ec1c4">30000</earnings_amount>
> <earnings_amount_type id="ec1c5">Gross Pensionable
> Salary</earnings_amount_type>
> </employment_earnings>
> </employment_contract>
> <person_employment_contract_rel id="per1" subject="p1" object="ec1" />
> <life_pension_investment_contract id="lpi1">
> <product_type id="lpi1c1">Pension</product_type>
> <product_sub_type id="lpi1c2">Group Personal Pension</product_sub_type>
> <insurer_product_name id="lpi1c3">The Group Personal
> Pension</insurer_product_name>
> <insurer_product_id id="lpi1c4">F54321</insurer_product_id>
> <lpi_contract_type id="lpi1c5">Proposal</lpi_contract_type>
> <protection_level id="lpi1c6">Standard</protection_level>
> </life_pension_investment_contract>
> <life_pension_investment_contract id="lpi2">
> <product_type id="lpi2c1">Pension</product_type>
> <product_sub_type id="lpi2c2">Group Personal Pension</product_sub_type>
> <insurer_product_name id="lpi2c3">The Group Personal
> Pension</insurer_product_name>
> <insurer_product_id id="lpi2c4">ref Name</insurer_product_id>
> <tpspfc id="lpi2c5">
> <insurerContractId id="lpi2c6">F12345</insurerContractId>
> </tpspfc>
> </life_pension_investment_contract>
> <lpi_contract_rel id="llr1" subject="lpi2" object="lpi1">
> <contract_relationship_type
> id="llr1c1">Member</contract_relationship_type>
> </lpi_contract_rel>
> <person_lpi_contract_role id="prl1" subject="p1" object="lpi1">
> <person_lpi_contract_role_type id="prl1c1">Main Policy
> Holder</person_lpi_contract_role_type>
> </person_lpi_contract_role>
> <money_in id="mi1" lpi_contract_rel="lpi2">
> <money_in_type id="mi1c1">Gross Premium</money_in_type>
> <money_in_payment_day id="mi1c2">25</money_in_payment_day>
> <money_in_start_date id="mi1c3">20000925240000</money_in_start_date>
> <money_in_frequency id="mi1c4">Four Weekly</money_in_frequency>
> <money_in_payment_method id="mi1c5">Direct
> Debit</money_in_payment_method>
> </money_in>
> </proposal>
>
> ==========================
>
> <proposal id="pro1"><control id="cnt1"><control_timestamp
> id="cnt1c1">20000804144944</control_timestamp>
> <ifas_internal_case_reference_number
> id="cnt1c2">372</ifas_internal_case_reference_number>
> <user_identifier id="cnt1c3">EMPLOYER</user_identifier>
> <service_provider_identifier id="cnt1c4">SPC</service_provider_identifier>
> <service_provider_proposal_reference_no
> id="cnt1c5">1</service_provider_proposal_reference_no>
> <product_provider_identifier
> id="cnt1c6">SCOTAM</product_provider_identifier>
> <message_version_number id="cnt1c7">1.1</message_version_number>
> <message_identifier id="cnt1c8">Proposal</message_identifier>
> <drn_current_date id="cnt1c9">20000804</drn_current_date>
> <drn_current_time id="cnt1c10">144944</drn_current_time>
> <message_type id="cnt1c11">Add Pension Member</message_type>
> </control><person id="p1"><marital_status
> id="p1c1">Co-habitant</marital_status>
> <planned_age_of_retirement id="p1c2">65</planned_age_of_retirement>
> <sex id="p1c3">Male</sex>
> <date_of_birth id="p1c4">19761003</date_of_birth>
> <title id="p1c5">Mr</title>
> <surname id="p1c6">Wright</surname>
> <forenames id="p1c7">Will Charles</forenames>
> <national_insurance_number id="p1c8">FD543545D</national_insurance_number>
> <person_tax_district id="p1c9">Southhampton</person_tax_district>
> <person_tax_reference_number id="p1c10">SEH321</person_tax_reference_number>
> </person><communication_channel id="com1"><email_address
> id="com1c1">employee at employee.com</email_address>
> <mobile_telephone_number id="com1c2">0654213584</mobile_telephone_number>
> <telephone_number id="com1c3">0208475412</telephone_number>
> <address_line_1 id="com1c4">34 Employee Rd</address_line_1>
> <address_line_2 id="com1c5">Employeefield</address_line_2>
> <address_line_3 id="com1c6">Eeham</address_line_3>
> <address_line_4 id="com1c7">London</address_line_4>
> <postcode id="com1c8">EE12 4RD</postcode>
> </communication_channel><organisation_communication_channel_rel id="ocr1"
> subject="p1" object="com1" /><employment_contract
> id="ec1"><employment_contract_start_date
> id="ec1c1">20000717</employment_contract_start_date>
> <employment_contract_end_date
> id="ec1c2">20001017</employment_contract_end_date>
> <employment_earnings id="ec1c3"><earnings_amount
> id="ec1c4">30000</earnings_amount>
> <earnings_amount_type id="ec1c5"> Gross Pensionable
> Salary</earnings_amount_type>
> </employment_earnings>
> </employment_contract><person_employment_contract_rel id="per1" subject="p1"
> object="ec1" /><life_pension_investment_contract id="lpi1"><product_type
> id="lpi1c1">Pension</product_type>
> <product_sub_type id="lpi1c2">Group Personal Pension</product_sub_type>
> <insurer_product_name id="lpi1c3">The Group Personal
> Pension</insurer_product_name>
> <insurer_product_id id="lpi1c4">F54321</insurer_product_id>
> <lpi_contract_type id="lpi1c5">Proposal</lpi_contract_type>
> <protection_level id="lpi1c6">Standard</protection_level>
> </life_pension_investment_contract><life_pension_investment_contract
> id="lpi2"><product_type id="lpi2c1">Pension</product_type>
> <product_sub_type id="lpi2c2">Group Personal Pension</product_sub_type>
> <insurer_product_name id="lpi2c3">The Group Personal
> Pension</insurer_product_name>
> <insurer_product_id id="lpi2c4">ref Name</insurer_product_id>
> <tpspfc id="lpi2c5"><insurerContractId
> id="lpi2c6">F12345</insurerContractId>
> </tpspfc>
> </life_pension_investment_contract><lpi_contract_rel id="llr1"
> subject="lpi2" object="lpi1"><contract_relationship_type
> id="llr1c1">Member</contract_relationship_type>
> </lpi_contract_rel><person_lpi_contract_role id="prl1" subject="p1"
> object="lpi1"><person_lpi_contract_role_type id="prl1c1">Main Policy
> Holder</person_lpi_contract_role_type>
> </person_lpi_contract_role><money_in id="mi1"
> lpi_contract_rel="lpi2"><money_in_type id="mi1c1">Gross
> Premium</money_in_type>
> <money_in_payment_day id="mi1c2">25</money_in_payment_day>
> <money_in_start_date id="mi1c3">20000925240000</money_in_start_date>
> <money_in_frequency id="mi1c4">Four Weekly</money_in_frequency>
> <money_in_payment_method id="mi1c5">Direct
> Debit</money_in_payment_method></proposal>
>
>
> Dino.
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
--
Alex Chaffee mailto:alex at jguru.com
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology http://www.purpletech.com/
Curator of Stinky Art Collective http://www.stinky.com/
More information about the jdom-interest
mailing list