![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Dear All,
I am working exchange server & fetching task of outlook 2007 through MSXML2.XMLHTTP30 now I am facing the following error "Name cannot begin with the '0' character, hexadecimal value 0x30. Line 1, position 564" while reading XML. Please help me to solve this problem. I am also mentioning the code below: Private Function ReadTask(ByVal stURI As System.String) Dim sQuery As String Dim status As Integer Try ' Open the item. oXMLHttp.open("PROPFIND", stURI, False, Me.UserNameAlias, Me.Password) ' Set up the query to get subject, from, and to. sQuery = "?xml version='1.0' encoding = 'utf-8'?" & _ "a ![]() xmlns:m='urn:schemas:mailheader:' " & _ "xmlns:b='urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/' " & _ "xmlns:g='urn:schemas:httpmail:' " & _ "xmlns:i='http://schemas.microsoft.com/mapi/id/" & _ "{00062008-0000-0000-C000-000000000046}/' " & _ "xmlns:h='http://schemas.microsoft.com/mapi/id/" & _ "{00062003-0000-0000-C000-000000000046}/' " & _ "a ![]() "m:subject/" & _ "/a ![]() "a ![]() "a:id/" & _ "/a ![]() "a ![]() "g:textdescription/" & _ "/a ![]() "a ![]() "h:0x00008102/" & _ "/a ![]() "a ![]() "h:0x00008104/" & _ "/a ![]() "a ![]() "h:0x00008101/" & _ "/a ![]() "a ![]() "i:0x8516/" & _ "/a ![]() "a ![]() "a:getlastmodified/" & _ "/a ![]() "a ![]() "i:0x8517/" & _ "/a ![]() "/a ![]() ' Set up request headers. oXMLHttp.setRequestHeader("Content-Type", "text/xml") ' oXMLHttp.setRequestHeader("Brief", "t") ' Send the query. oXMLHttp.send(sQuery) status = CheckStatus(oXMLHttp.status) If status = En.enStatus.Multi_Status Then Call ParseTaskXML(oXMLHttp.responseText) End If Catch ex As Exception Throw New Exception(ex.Message, ex.InnerException) Finally sQuery = Nothing status = Nothing End Try End Function Private Function ParseTaskXML(ByVal responseText As System.String) Dim reader As New XmlNodeReader(xmlDoc) Try xmlDoc.LoadXml(responseText) While reader.Read() If reader.Name.ToLower() = "d:subject" Then strSubject = reader.ReadInnerXml() End If If reader.Name.ToLower() = "e:textdescription" Then Me.strDescription = reader.ReadInnerXml End If If reader.Name.ToLower() = "f:0x00008102" Then Me.dbTasksCompletedPercent reader.ReadInnerXml() End If If reader.Name.ToLower() = "g:0x8516" Then Me.dtTasksStartDate = reader.ReadInnerXml End If If reader.Name.ToLower() = "g:0x8517" Then Me.dtTasksDueDate = reader.ReadInnerXml() End If If reader.Name.ToLower() = "f:0x00008101" Then ' reader.ReadInnerXml End If End While Catch ex As Exception Throw New Exception(ex.Message, ex.InnerException) Finally reader = Nothing End Try End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Name cannot begin with the '0' character, hexadecimal value 0x30. | Atul Saxena[_2_] | Outlook and VBA | 0 | October 10th 07 06:09 AM |
Selection area to begin with upon opening | Craig D. | Outlook - Installation | 1 | January 3rd 07 05:41 AM |
How do I set Outlook up to begin my reply after the question? | Kelsen | Outlook - Installation | 1 | December 12th 06 03:44 AM |
Does anyone know how to set up Outlook to begin at startup? | Jamie | Outlook - Installation | 4 | May 19th 06 02:45 PM |
emails begin with word 'blank' | petpathways | Outlook Express | 7 | January 26th 06 02:43 AM |