W
w@m
Hi,
I'm trying to use ASP to write XML documents form input from a HTML form.
I have to write some tags like this:
<creation audience="internal">Written in
<date>[input from form: yyyy]</date>by using guideline
<title>[input from form]</title>and reviewed by
<employee>[input from form]</employee>on
<date>[input from form: mm/dd/yy]</date>
</creation>
It's the standard text that has to go between the tags (from the second one
onwards) that's giving me a headache.
I've tried to solve this by the following code, but the 'Response.Write's'
won't do the trick:
Set objChildCreation = objDom.createElement("creation")
objChildReviewdesc.appendChild objChildCreation
objChildCreation.setAttributeNode objattCreationAudience
objattCreationAudience.Text="internal"
objChildCreation.Text = "Written in"
Set objChildCreation1Date = objDom.createElement("date")
objChildCreation.appendChild objChildCreation1Date
objChildCreation1Date.Text = Request.Form("firstdate")
Response.Write (" by using guideline ")
Set objChildCreationTitle = objDom.createElement("title")
objChildCreation.appendChild objChildCreationTitle
objChildCreationTitle.Text=Request.Form("title")
Response.Write (" and reviewed by ")
Set objChildCreationEmployee = objDom.createElement("employee")
objChildCreation.appendChild objChildCreationEmployee
objChildCreationEmployee.Text=Request.Form("employee")
Response.Write (" on ")
Set objChildCreation2Date = objDom.createElement("date")
objChildCreation.appendChild objChildCreation2Date
objChildCreation2Date.Text = Request.Form("seconddate")
Any help would be appreciated,
TIA
W.
I'm trying to use ASP to write XML documents form input from a HTML form.
I have to write some tags like this:
<creation audience="internal">Written in
<date>[input from form: yyyy]</date>by using guideline
<title>[input from form]</title>and reviewed by
<employee>[input from form]</employee>on
<date>[input from form: mm/dd/yy]</date>
</creation>
It's the standard text that has to go between the tags (from the second one
onwards) that's giving me a headache.
I've tried to solve this by the following code, but the 'Response.Write's'
won't do the trick:
Set objChildCreation = objDom.createElement("creation")
objChildReviewdesc.appendChild objChildCreation
objChildCreation.setAttributeNode objattCreationAudience
objattCreationAudience.Text="internal"
objChildCreation.Text = "Written in"
Set objChildCreation1Date = objDom.createElement("date")
objChildCreation.appendChild objChildCreation1Date
objChildCreation1Date.Text = Request.Form("firstdate")
Response.Write (" by using guideline ")
Set objChildCreationTitle = objDom.createElement("title")
objChildCreation.appendChild objChildCreationTitle
objChildCreationTitle.Text=Request.Form("title")
Response.Write (" and reviewed by ")
Set objChildCreationEmployee = objDom.createElement("employee")
objChildCreation.appendChild objChildCreationEmployee
objChildCreationEmployee.Text=Request.Form("employee")
Response.Write (" on ")
Set objChildCreation2Date = objDom.createElement("date")
objChildCreation.appendChild objChildCreation2Date
objChildCreation2Date.Text = Request.Form("seconddate")
Any help would be appreciated,
TIA
W.