How to use XML in exchange2000
XML is a data format stored in exchange. It is generally used in the following content in exchange:
Some attributes and exchange mode definitions of entries in the Web storage system are often used in WebDAV
The returned information and request in the request. Users also use web storage system to store XML documents and XSL files.
File and HTML document.
For example, the property information of a contact stored in XML format in exchange2000 is as follows:
<D: prop xmlns: D = "Dav"
Xmlns: c = "urn: schemas: contacts">
<D: href> http: // server/exchange/Zhang/contacts/Zhang. eml <D: href>
<C: fileas> hbzxf </C: fileas>
<C: email> hbzxf@hotmail.com </C: email>
<C: title> super XML </C: title>
<C: department> deve </C: department>
</D: prop>
To learn how to use XML, the following example illustrates how to construct HTTP/WebDAV PROPFIND (1) Method Request content for a direct exchange URL:
<HTML>
<Head>
<Title> test <title>
<Script language = VBScript>
Dim xmldoc
Sub into go_onclick ()
Dim strurl, strpropreg
Strurl = txturl. Value
Strpropreg = "<? XML vesion = '1. 0'?> "
Strpropreg = strpropreg & "<D: propfind xmlns: D = 'dav: '>"
Strpropreg = strpropreg & "<D: prop>"
Strpropreg = strpropreg & "<D: displayname>"
Strpropreg = strpropreg & "<D: creationdate>"
Strpropreg = strpropreg & "</D: prop>"
Strpropreg = strpropreg & "</D: propfind>"
With Createobject ("Microsoft. XMLHTTP ")
. Open "PROPFIND", strurl, true
. SetRequestHeader "context-type:", "text/XML"
. SetRequestHeader "depth", "1, noroot"
. Send (strpropreg)
Responsehere. innertext =. responsetext
End
End sub
</SCRIPT>
</Head>
<Body>
<H2> Get contents of folder using XML/HTTP </H2>
<Br>
<P> enter a URL, something like http: // server/public/documents/</P>
<P> <input type = "text" width = 100 name = "txturl"> </P>
<P> <input type = "button" value = "go" name = "courier go"> </P>
<Div id = responsehere>
</Div>
</Body>
</Html>
There are still many similar methods for WebDAV. If you are interested in this method, refer to similar methods.ArticleOr books, expressed in this way.
Note: (1) Access attributes in Web storage system using the PROPFIND Method