S
Shea Martin
I am reading in simple xml document, adding an element and writing it out.
<?xml version="1.0"?>
<!-- my comment -->
<shopping_list_doc>
<food_group name="Veggies">
<description>
the green ones
</description>
<item name="broccoli"/>
</food_group>
</shopping_list_doc>
But when I write out the document I get
<?xml version="1.0"?>
<!-- my comment
-->
<shopping_list_doc>
<food_group name="Veggies">
<description>
the green ones
</description<item name="broccoli"
/><item name="new veggie"
Is there a way to prevent the extra newline characters on closing brackets?
Or am I better to call an external command to do the formatting for me?
THanks,
~S
<?xml version="1.0"?>
<!-- my comment -->
<shopping_list_doc>
<food_group name="Veggies">
<description>
the green ones
</description>
<item name="broccoli"/>
</food_group>
</shopping_list_doc>
But when I write out the document I get
<?xml version="1.0"?>
<!-- my comment
-->
<shopping_list_doc>
<food_group name="Veggies">
<description>
the green ones
</description<item name="broccoli"
/><item name="new veggie"
</food_group
</shopping_list_doc
Is there a way to prevent the extra newline characters on closing brackets?
Or am I better to call an external command to do the formatting for me?
THanks,
~S