R
rbann11
Hi,
I have a script that contains an XML string that will define how the
page will be displayed.
The XML string contains custom tags, with attributes and html tags.
I will be replacing the custom tags with other html code.
My question is what is the best way to parse the XML string and can it
be done with DOM.
What is bothering me the most is the text before and after the custom
tags.
There is an example of what the XML string will look like:
<root>
Some Text and html tags
<block a="1 "b="2">
Some Text and html tags
<block>
Some Text and html tags
<tag1> </tag1>
<tag2> </tag2>
<tag3> </tag3>
<tag3> </tag4>
</block>
<block a="4">
Some Text and html tags
<tag1> </tag1>
<tag2> </tag2>
</block>
</block>
Some Text and html tags
</root>
Any code or ideas will be helpful.
Thanks in advance
Roger
I have a script that contains an XML string that will define how the
page will be displayed.
The XML string contains custom tags, with attributes and html tags.
I will be replacing the custom tags with other html code.
My question is what is the best way to parse the XML string and can it
be done with DOM.
What is bothering me the most is the text before and after the custom
tags.
There is an example of what the XML string will look like:
<root>
Some Text and html tags
<block a="1 "b="2">
Some Text and html tags
<block>
Some Text and html tags
<tag1> </tag1>
<tag2> </tag2>
<tag3> </tag3>
<tag3> </tag4>
</block>
<block a="4">
Some Text and html tags
<tag1> </tag1>
<tag2> </tag2>
</block>
</block>
Some Text and html tags
</root>
Any code or ideas will be helpful.
Thanks in advance
Roger