E
enyetor
I'm migrating data into a content management system and in order to use
the import tool provided I need to change the format of a large xml
file and convert each entry to a seperate xml file.
This is what I have now:
<?xml version="1.0" encoding="UTF-8" ?>
<dataroot xmlns
d="urn:schemas-microsoft-com
fficedata"
generated="2005-04-18T12:05:51">
<Checklist>
<ID>1</ID>
<Category>stuff</Category>
<Type>stuff</Type>
<Item>stuff</Item>
<Steps>stuff</Steps>
</Checklist>
<Checklist>
<ID>2</ID>
<Category>stuff</Category>
<Type>stuff</Type>
<Item>stuff</Item>
<Steps>stuff</Steps>
</Checklist>
<Checklist>
<ID>3</ID>
<Category>stuff</Category>
<Type>stuff</Type>
<Item>stuff</Item>
<Steps>stuff</Steps>
</Checklist>
<Checklist>
<ID>4</ID>
<Category>stuff</Category>
<Type>stuff</Type>
<Item>stuff</Item>
<Steps>stuff</Steps>
</Checklist>
</dataroot>
This is what I need each entry to be as a single file:
<?xml version="1.0" ?>
<file DocType="TypeName" DocTitle="TITLE:testing 123"
DocDesc="TITLE:testing 123">
<section name="Category">
<![CDATA[
stuff
]]>
</section>
<section name="Type">
<![CDATA[
stuff
]]>
</section>
<section name="Item">
<![CDATA[
stuff
]]>
</section>
<section name="SLA">
<![CDATA[
stuff
]]>
</section>
<section name="Troubleshooting Steps">
<![CDATA[
stuff
]]>
</section>
</file>
I need some direction on how to accomplish this task...
the import tool provided I need to change the format of a large xml
file and convert each entry to a seperate xml file.
This is what I have now:
<?xml version="1.0" encoding="UTF-8" ?>
<dataroot xmlns
generated="2005-04-18T12:05:51">
<Checklist>
<ID>1</ID>
<Category>stuff</Category>
<Type>stuff</Type>
<Item>stuff</Item>
<Steps>stuff</Steps>
</Checklist>
<Checklist>
<ID>2</ID>
<Category>stuff</Category>
<Type>stuff</Type>
<Item>stuff</Item>
<Steps>stuff</Steps>
</Checklist>
<Checklist>
<ID>3</ID>
<Category>stuff</Category>
<Type>stuff</Type>
<Item>stuff</Item>
<Steps>stuff</Steps>
</Checklist>
<Checklist>
<ID>4</ID>
<Category>stuff</Category>
<Type>stuff</Type>
<Item>stuff</Item>
<Steps>stuff</Steps>
</Checklist>
</dataroot>
This is what I need each entry to be as a single file:
<?xml version="1.0" ?>
<file DocType="TypeName" DocTitle="TITLE:testing 123"
DocDesc="TITLE:testing 123">
<section name="Category">
<![CDATA[
stuff
]]>
</section>
<section name="Type">
<![CDATA[
stuff
]]>
</section>
<section name="Item">
<![CDATA[
stuff
]]>
</section>
<section name="SLA">
<![CDATA[
stuff
]]>
</section>
<section name="Troubleshooting Steps">
<![CDATA[
stuff
]]>
</section>
</file>
I need some direction on how to accomplish this task...