This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 9, 2011, 1:47 PM
10 Posts

White spaces are required between publicId and systemId when parsing XML

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
I am getting this error message when parsing XML produced by an agent. 
 
The code that parses the XMl looks like this, and is located in the  afterPageLoad event of an xPage:
 
 //Create the XML Document
var parsedxml:org.w3c.dom.Document = null;
//Create the Parser Factory and document builder
var domfactory:javax.xml.parsers.DocumentBuilderFactory  = javax.xml.parsers.DocumentBuilderFactory.newInstance();
var xmldocument:javax.xml.parsers.DocumentBuilder  = domfactory.newDocumentBuilder();
var tmpURL = "myURL";
var parsedxml = xmldocument.parse(tmpURL);  //line giviing the error
sessionScope.put("xmlResults",parsedxml);
 
Note that myURL is a valid URL and when I type this URL only, this is the XML that is produced:
 
<agentData>
<projet>
<ville>Terrebonne</ville>
<companyID>BDUC-8DPPGZ</companyID>
<projetDomID>BDUC-8DPPP5</projetDomID>
<nomprojet>Projet Terrebonne</nomprojet>
<projetUNID>4FA207EE87CF24398525782B006587E6</projetUNID>
<distance>0.0</distance>
</projet>
<GoogleMapInfo>['Projet Terrebonne',0,0,1]</GoogleMapInfo>
<GoogleMapCenter>-73.647367, 45.700163</GoogleMapCenter>
</agentData>
 
 Any ideas why this isn't working?  I even tried removing the Google* parts in the XMl and I still get the same error.
 
Thanks,
Ben
Aug 9, 2011, 2:27 PM
4 Posts
Re: White spaces are required between publicId and systemId when parsing XML
How strangely coincidental....
 
I have been doing some work with Web Service Consumers this morning and had the same sort of error when attempting to invoke the service. This may or may not help you (its a bit of a long shot) but my issue was concerning the account credentials I was attempting to use. Basically the ACL allowed access to the user via the notes id but not the web id. As soon as I added the common name to the ACL the error was resolved.
 
Hope it helps

Aug 9, 2011, 3:30 PM
10 Posts
Re: White spaces are required between publicId and systemId when parsing XML
Well, that didn't work for me.  It's not a web service but an agent outputting XML to a data table.
 
Thanks for the info though as I will be using web services soon!!!
 
Ben

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal