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="inter nal">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 objChildCreatio n = objDom.createEl ement("creation ")
objChildReviewd esc.appendChild objChildCreatio n
objChildCreatio n.setAttributeN ode objattCreationA udience
objattCreationA udience.Text="i nternal"
objChildCreatio n.Text = "Written in"
Set objChildCreatio n1Date = objDom.createEl ement("date")
objChildCreatio n.appendChild objChildCreatio n1Date
objChildCreatio n1Date.Text = Request.Form("f irstdate")
Response.Write (" by using guideline ")
Set objChildCreatio nTitle = objDom.createEl ement("title")
objChildCreatio n.appendChild objChildCreatio nTitle
objChildCreatio nTitle.Text=Req uest.Form("titl e")
Response.Write (" and reviewed by ")
Set objChildCreatio nEmployee = objDom.createEl ement("employee ")
objChildCreatio n.appendChild objChildCreatio nEmployee
objChildCreatio nEmployee.Text= Request.Form("e mployee")
Response.Write (" on ")
Set objChildCreatio n2Date = objDom.createEl ement("date")
objChildCreatio n.appendChild objChildCreatio n2Date
objChildCreatio n2Date.Text = Request.Form("s econddate")
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="inter nal">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 objChildCreatio n = objDom.createEl ement("creation ")
objChildReviewd esc.appendChild objChildCreatio n
objChildCreatio n.setAttributeN ode objattCreationA udience
objattCreationA udience.Text="i nternal"
objChildCreatio n.Text = "Written in"
Set objChildCreatio n1Date = objDom.createEl ement("date")
objChildCreatio n.appendChild objChildCreatio n1Date
objChildCreatio n1Date.Text = Request.Form("f irstdate")
Response.Write (" by using guideline ")
Set objChildCreatio nTitle = objDom.createEl ement("title")
objChildCreatio n.appendChild objChildCreatio nTitle
objChildCreatio nTitle.Text=Req uest.Form("titl e")
Response.Write (" and reviewed by ")
Set objChildCreatio nEmployee = objDom.createEl ement("employee ")
objChildCreatio n.appendChild objChildCreatio nEmployee
objChildCreatio nEmployee.Text= Request.Form("e mployee")
Response.Write (" on ")
Set objChildCreatio n2Date = objDom.createEl ement("date")
objChildCreatio n.appendChild objChildCreatio n2Date
objChildCreatio n2Date.Text = Request.Form("s econddate")
Any help would be appreciated,
TIA
W.
Comment