0

Im looking for a way to render or show my xml tag content within a html document, for example.

something.xml

<fudge>Green</fudge>

test.html

 <div id="fudge">
</div>

within the html div i would like Green to be printed

Benjamin Oats
  • 573
  • 1
  • 8
  • 25

1 Answers1

-1

To do this your HTML file should contain some JavaScript code, so you will want to learn how to parse XML in Javascript.

Here is a good StackOverflow question on this topic: XML parsing in JavaScript

Community
  • 1
  • 1
Dsenese1
  • 1,106
  • 10
  • 18