ASP XML Support - Generate XML string from FORM DATA based on XML schema

M

Matt

I have 2 ASP pages. page1.asp will generate a xml string from form data
based on the XML schema, and then submit to page2.asp. My question is if ASP
has XML support, so that given form data, it will generate a XML string
based on the XML schema?

The picture is like this:

Form Data, XML Schema -> ASP Function -> XML string

The problem is JavaScript doesn't have XML support.

Please advise. Thanks!!
 
B

Bob Barrows

Matt said:
I have 2 ASP pages. page1.asp will generate a xml string from form
data based on the XML schema,

Ummm, there are many XML schemas ...
and then submit to page2.asp. My
question is if ASP has XML support, so that given form data, it will
generate a XML string based on the XML schema?

The picture is like this:

Form Data, XML Schema -> ASP Function -> XML string

The problem is JavaScript doesn't have XML support.

Of course it does. The same way that vbscript does: by using the MSXML
Parser.

I'm not sure what you are asking. Do you know how to use the MSXML Parser?
Perhaps you should be starting in an XML newsgroup. Better yet, go here and
start reading:

http://msdn.microsoft.com/library/en-us/xmlsdk/htm/sdk_intro_6g53.asp

Google will find you more information.

Bob Barrows
 
M

Matt

Thanks Bob.

I used MSXML parser to parse XML data in ASP before. I guess what you meant
is like this:

Set xml = Server.CreateObject("Microsoft.XMLDOM")

But all I did was to parse the XML file and retrieves the data. Now my case
is to generate a XML string based on the XML schema provided. I don't know
there are many XML schemas out there. So u think it has those API calls for
that?
 
B

Bob Barrows [MVP]

The xml property of the XML Document contains the xml string. Is that what
you're asking?


Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top