A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Error:Name cannot begin with the '0' character, hexadecimal value



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 10th 07, 06:31 AM posted to microsoft.public.outlook.program_forms
Atul Saxena[_2_]
external usenet poster
 
Posts: 7
Default Error:Name cannot begin with the '0' character, hexadecimal value

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'?" & _
"aropfind xmlns:a='DAV:'
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}/' " & _
"arop" & _
"m:subject/" & _
"/arop" & _
"arop" & _
"a:id/" & _
"/arop" & _
"arop" & _
"g:textdescription/" & _
"/arop" & _
"arop" & _
"h:0x00008102/" & _
"/arop" & _
"arop" & _
"h:0x00008104/" & _
"/arop" & _
"arop" & _
"h:0x00008101/" & _
"/arop" & _
"arop" & _
"i:0x8516/" & _
"/arop" & _
"arop" & _
"a:getlastmodified/" & _
"/arop" & _
"arop" & _
"i:0x8517/" & _
"/arop" & _
"/aropfind"

' 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 12:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.