EDN Admin
Well-known member
Hi,
I have a complex xml file, want to convert into very simpler xml format.
Can anybody pleas suggest how can i convert?
<span style="text-decoration:underline Complex File :
<p style="text-align:left <span style="color:#666600; font-size:small <span style="line-height:16px; white-spacere <br/>
<pre class="prettyprint <?xml version="1.0" encoding="utf-8" ?> <ElementData> <Element ElementName="Element1" Id="1" Category="Cat1
<Column name="Tag1 ValueOfTag1</Column>
<Column name="Tag2 ValueOfTag2</Column>
<Column name="Tag3 ValueOfTag3</Column>
<Column name="Tag4 ValueOfTag4</Column>
</Element>
<Element ElementName="Element2" Id="2" Category="Cat2
<Column name="Tag1 ValueOfTag1</Column>
<Column name="Tag2 ValueOfTag2</Column>
<Column name="Tag3 ValueOfTag3</Column>
<Column name="Tag4 ValueOfTag4</Column>
</Element>
---
---
---
</ElementData> [/code]
<br/>
<span style="text-decoration:underline I Want to convert it to below format:
<span style="text-decoration:underline
<pre class="prettyprint <?xml version="1.0" encoding="utf-8" ?> <ElementData>
<Element>
<ElementName>Element1</ElementName>
<Id>1</Id>
<Category>Cat1</Category>
<Tag1>ValueOfTag1</Tag1>
<Tag2>ValueOfTag2</Tag2>
<Tag3>ValueOfTag3</Tag3>
<Tag4>ValueOfTag4</Tag4>
</Element>
<Element>
<ElementName>Element2</ElementName>
<Id>2</Id>
<Category>Cat2</Category>
<Tag1>ValueOfTag1</Tag1>
<Tag2>ValueOfTag2</Tag2>
<Tag3>ValueOfTag3</Tag3>
<Tag4>ValueOfTag4</Tag4>
</Element>
---
---
---
</ElementData> [/code]
<br/>
Regards,
<br/>
<br/>
<br/>
View the full article
I have a complex xml file, want to convert into very simpler xml format.
Can anybody pleas suggest how can i convert?
<span style="text-decoration:underline Complex File :
<p style="text-align:left <span style="color:#666600; font-size:small <span style="line-height:16px; white-spacere <br/>
<pre class="prettyprint <?xml version="1.0" encoding="utf-8" ?> <ElementData> <Element ElementName="Element1" Id="1" Category="Cat1
<Column name="Tag1 ValueOfTag1</Column>
<Column name="Tag2 ValueOfTag2</Column>
<Column name="Tag3 ValueOfTag3</Column>
<Column name="Tag4 ValueOfTag4</Column>
</Element>
<Element ElementName="Element2" Id="2" Category="Cat2
<Column name="Tag1 ValueOfTag1</Column>
<Column name="Tag2 ValueOfTag2</Column>
<Column name="Tag3 ValueOfTag3</Column>
<Column name="Tag4 ValueOfTag4</Column>
</Element>
---
---
---
</ElementData> [/code]
<br/>
<span style="text-decoration:underline I Want to convert it to below format:
<span style="text-decoration:underline
<pre class="prettyprint <?xml version="1.0" encoding="utf-8" ?> <ElementData>
<Element>
<ElementName>Element1</ElementName>
<Id>1</Id>
<Category>Cat1</Category>
<Tag1>ValueOfTag1</Tag1>
<Tag2>ValueOfTag2</Tag2>
<Tag3>ValueOfTag3</Tag3>
<Tag4>ValueOfTag4</Tag4>
</Element>
<Element>
<ElementName>Element2</ElementName>
<Id>2</Id>
<Category>Cat2</Category>
<Tag1>ValueOfTag1</Tag1>
<Tag2>ValueOfTag2</Tag2>
<Tag3>ValueOfTag3</Tag3>
<Tag4>ValueOfTag4</Tag4>
</Element>
---
---
---
</ElementData> [/code]
<br/>
Regards,
<br/>
<br/>
<br/>
View the full article