How to use XML hbzxf (original) in exchange2000)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.