We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am trying to setContent(). of an XML Element to an HTML file.
when I try the tag simply contains the name of the file not the information in the file.
child.setContent("file.htm") ;
results in:
<child>file.htm</child>
I want it to contain the info in the file. Any help?
Answers
You have to load the file out of
file.htm
first, then place that content into the child element. There is no built-in way to detect if aString
happens to be an XML file to then add it automatically; this must be done manually.Side note: First post on the new forum!
Yeah , thanks a lot, sorry for the delay in gratitude.