H
Hakan
Hello,
Ik have a dynamic XML document of which the tags may change.
I want to translate this XML document to a certain format. The
structure of the XML document could be as follows:
<a>
<b>
<c>
<c1>hello1</c1>
<c2>hello2</c2>
<c3>hello3</c3>
<c4>hello4</c4>
<c5>hello5</c5>
<c6>hello6</c6>
</c>
<c>
<d>
<d1>hellod1</d1>
<e>
<e1>helloe1</e1>
<e2>helloe1</e2>
<e3>helloe1</e3>
<e4>helloe1</e4>
</e>
</d>
</c>
</a>
=============
b:
c:
c1: hello1
c2: hello2
c3: hello3</c3>
c4: hello4</c4>
c5: hello5</c5>
c6: hello6</c6>
c:
d:
d1: hellod1
e:
e1: helloe1
e2: helloe1
e3: helloe1
e4: helloe1
the labels a, b, c, d, e, e1 et cetera are sample labels. These labels
could change everytime. What I need is code to translate these type of
XML documents in such a format.
Can anyone give me some advice?
Ik have a dynamic XML document of which the tags may change.
I want to translate this XML document to a certain format. The
structure of the XML document could be as follows:
<a>
<b>
<c>
<c1>hello1</c1>
<c2>hello2</c2>
<c3>hello3</c3>
<c4>hello4</c4>
<c5>hello5</c5>
<c6>hello6</c6>
</c>
<c>
<d>
<d1>hellod1</d1>
<e>
<e1>helloe1</e1>
<e2>helloe1</e2>
<e3>helloe1</e3>
<e4>helloe1</e4>
</e>
</d>
</c>
</a>
=============
recurisevely like:From the children of tag b, the subtrees should be translated
b:
c:
c1: hello1
c2: hello2
c3: hello3</c3>
c4: hello4</c4>
c5: hello5</c5>
c6: hello6</c6>
c:
d:
d1: hellod1
e:
e1: helloe1
e2: helloe1
e3: helloe1
e4: helloe1
the labels a, b, c, d, e, e1 et cetera are sample labels. These labels
could change everytime. What I need is code to translate these type of
XML documents in such a format.
Can anyone give me some advice?