I have some code that is parsing XML using the NotesDOMParser class.
Here is how I get the returned XML:
Set oHTTP = CreateObject("Microsoft.XMLHTTP")
oHTTP.open "GET", urlToUse, False, "", ""
oHTTP.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
oHTTP.send("")
returnText = Trim$(oHTTP.responseText)
Set oHTTP = Nothing
Here is a sample of the XML that is returned:
<?xml version="1.0" encoding="UTF-8"?>…
After I get the XML, I attempt to parse. Here is the code:
Set xmlstream = s.CreateStream
Call xmlstream.ReadText()
Call xmlstream.WriteText(returnText)
Set parser = s.CreateDOMParser(xmlstream)
Call parser.Process
Set docNode = parser.Document
When I hit the “Call parser.Process,” I receive this error:
<?xml version='1.0'?>An exception occurred! Type:XMLPlatformException, Message:Could not open file: PricerRetrieveResponse.xsd
Fatal error encountered during schema scan
DOM parser operation failed
I found this post:
Should the PricerRetrieveResponse.xsd file be copied to a local hard drive?
Could I remove the tag so this error does not appear again?
Is there a better method than NotesDOMParser to use to parse this XML?
Any help would be great!
Thanks!
Dan