Javascript request on non well-formed xml file in Safari

Hi,
I make an AJAX request to get a non well-formed xml file. On Internet Explorer (domNode is empty) and Firefox (domNode is not empty but a tag "parsererror" is present), I can know if the document is non well-formed but on Safari the request seems to be ok, I get a part of the non well-formed file (until the error).
I would like to say if I can make the difference between a well-formed xml file and a non well-formed xml file (with an AJAX request) on Safari.
Thanks
Julien

I have built a desktop application that can use these
calls to check if the xml contained in the document
called "file" is well formed.
Ok. So, the application works fine then?
DocumentBuilderFactory domFactory =
DocumentBuilderFactory.newInstance();
DocumentBuilder domBuilder =
lder domBuilder = domFactory.newDocumentBuilder();
     domBuilder.parse(file);
They are part of the javax.xml.parsers.*; package.
Problem is that to serve this I need to put it in an
applet but since I have to write the xml string to a
file local to the server the applet is not working.
Huh? You lost me there. Are you getting security exceptions from the applet? If yes, you need to sign the applet. Otherwise, what is not 'working' in the applet compared to the application? Also, why do you need to first write it to a file?
My question is if anyone knows of some classes in the
API that will allow me to check if a String of XML is
well formed or not.
If the document is not well-formed, the parse() call will throw an exception. Catch this and process as needed.
I basically need to get a string from a field in a
data base in XML format and be able to test it
without first writing it to a document so I can get
the applet to work.
If you want to access an external database from an applet, you will need to sign the applet. You should not need to first write it to a file before parsing. Rather, simply use a stream (either InputStream or Reader) and wrap it in a StreamSource object.
If anyone knows something on this or has an
alternative suggestion please do tell.
Thanks.- Saish

Similar Messages

  • XSLT and non-well formed XML file

    All,
    I am getting some "XML" feeds from some old lab equipment, however the XML isn't well formed.  Really it isn't even XML it is just a formatted text file.  So I will get a feed like the following:
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="CQS6" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:20 PM" />
    <CarbonAvg Label="Carbon Avg." Value="116 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002301 1" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 11:46 AM" />
    <CarbonAvg Label="Carbon Avg." Value="43.5 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002302 2" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 11:53 AM" />
    <CarbonAvg Label="Carbon Avg." Value="44.4 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002303 3" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:00 PM" />
    <CarbonAvg Label="Carbon Avg." Value="42.6 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002322 1" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:07 PM" />
    <CarbonAvg Label="Carbon Avg." Value="32.3 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002323 2" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:14 PM" />
    <CarbonAvg Label="Carbon Avg." Value="35.8 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002324 3" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:27 PM" />
    <CarbonAvg Label="Carbon Avg." Value="32.4 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="CQS6" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:33 PM" />
    <CarbonAvg Label="Carbon Avg." Value="123 ppm" />
    </SampleSet>
    As you can see, this isn't well formed and when I try to process this via XSLT I run into all kinds of problems.  So outside of writting a program to watch for files, picking them up with a c# program, wrapping the XML to make it well formed then pass
    it to the XSLT file, is there a way that I can wrap the file using XSLT instead of having to create a separate program to make it well formed? Any help is appreciated.

    Hello katghoti,
    >>however the XML isn't well formed.  Really it isn't even XML it is just a formatted text file
    Firstly, we should know that a text file actually does not know a XML format, so I suggest that you could save the text file to a XML file. And if you provided XML is the whole content, it is not an invalid XML file because the XML document must have one
    and only one root element. You have to add root element, so a valid XML file with these SampleSet elements should be similar with below:
    <?xml version="1.0"?>
    <SampleSets>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="CQS6" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:20 PM" />
    <CarbonAvg Label="Carbon Avg." Value="116 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="CQS6" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:33 PM" />
    <CarbonAvg Label="Carbon Avg." Value="123 ppm" />
    </SampleSet>
    </SampleSets>
    I am not sure how you want the XML be formatted, my usual approach to format a XML file is to open the file in Visual Studio and use ctrl K+D keyboard shortcuts to format the XML file.
    >>is there a way that I can wrap the file using XSLT instead of having to create a separate program to make it well formed?
    XSLT is used to process XML file, while you provided file is a text file, it does not recognize it.
    If I misunderstand, please feel free to let me know.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Checking Well-Formed XML files with ABAP Mapping

    Hi guys,
    Anybody knows which is the best way to check (well-formed) incoming XML files trough XI?
    I’m using ABAP Mapping and before I check the value of the XML fields I want to check if the XML is well-formed. For this reason I need to know which is the class or classes that I need to use to checking the format of XML using an XSD file?
    That is also possible using a DTD file instead of XSD?
    Which is better XSD or DTD?
    Thanks in advance,
    Ricardo.

    Hi Ricardo,
      try out these links.
    /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    /people/sap.user72/blog/2003/09/18/xsl-and-abap
    Thanks and Regards
    Vishal Kumar

  • Catching a not well formed xml file

    I have a method that parses many xml files and after each one is processed they are entered into a mysql database. My problem is that when an xml file is found not to be well formed the input process into the mysql database stops.
    Thus, my question is: how do I get my program to stop trying to enter the failing file data into my mysql database and continue with the next one...at the same time that it tells me the name of the file that is causing the problem (this second part has been solved). My parsing method looks as follows:
    private Document parseXmlFile(String _filename, boolean _validating){
              try{
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setValidating(_validating);
                   Document doc = factory.newDocumentBuilder().parse(new File(_filename));
                   return doc;
              } catch(SAXException e){
                   System.out.println("Bad XML");
              catch(ParserConfigurationException parserconfigurationexception){     
              catch(IOException ioexception){
                   System.out.println("Could not read source file: " + ioexception.getMessage());
              return null;
         }then, the method that calls for this method and the xml data extraction method (which also works) is as follows:
    private void addFile(String _xmlPath){
              Document xmlFile = parseXmlFile(_xmlPath, false);
              addMyDoc(xmlFile);
         }

    Thanks! that worked like a charm. I have one more question though. I know my program works because I have tested it every step of the way. However, I never contemplated that it could fail because of the a memory error. The program crashes randomly with a certain number of documents.
    My program is suppose to handle about 3,000 documents at a time. And it does, if I break it up the parsing from the mysql input. If I place both pieces together, I get the following error that I don't even know how to begin to fix or diagnose (I am using eclipse for lack of experience running java on the command line):
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
         at java.util.Vector.<init>(Vector.java:111)
         at java.util.Vector.<init>(Vector.java:124)
         at java.util.Vector.<init>(Vector.java:133)
         at org.apache.xerces.dom.DeepNodeListImpl.<init>(Unknown Source)
         at org.apache.xerces.dom.ElementImpl.getElementsByTagName(Unknown Source)
         at form4Code.Form4Db.addDerTranLine(Form4Db.java:1072)
         at form4Code.Form4Db.addFile(Form4Db.java:53)
         at form4Code.Form4Db.loadFiles(Form4Db.java:44)
         at form4Code.Form4Db.run(Form4Db.java:36)
         at form4Code.Form4Db.setDirectory(Form4Db.java:32)
         at form4Code.FindXml.setDirectory(FindXml.java:28)
         at form4Code.FindXml.<init>(FindXml.java:10)
         at form4Code.Run.go(Run.java:36)
         at form4Code.InsiderPanel$2.actionPerformed(InsiderPanel.java:133)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)Edited by: jsidgman on Feb 24, 2008 9:59 AM

  • Generate XSD from an not well formed xml File

    Hi,
    I have following problem:
    XML File:
    <readme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://localhost:8888/home/XDB/xsd/readme_neu.xsd">
         <title lang="de-DE">Preisliste Antriebselektronik </title>
         <title lang="en-DE">Preisliste Antriebselektronik </title>
         <edition lang="de-DE">date</edition>
         <doctype lang="de-DE">Preisliste</doctype>
         <projectstartdate lang="de-DE">date</projectstartdate>
         <projectenddate lang="de-DE">date</projectenddate>
    <projectenddate lang="en-DE">date</projectenddate>
         <status lang="de-DE">Druckvorstufe</status>
         <doku-key>PA300000</doku-key>
         <orderno lang="de-DE">
         <actual>11500204</actual>
         <previous>11341408</previous>
         </orderno>
         <orderno lang="lv-LV">
              <actual>11500476</actual>
              <previous>11341653</previous>
         </orderno>
         <orderno lang="lt-LT">
              <actual>11500484</actual>
              <previous>11341661</previous>
         </orderno>
         <orderno lang="nl-BE">
              <actual>11500492</actual>
              <previous>11341688</previous>
         </orderno>
    </readme>
    The Tags title and projectenddate makes the problem. I'd like to make an Objekt TITEL_OBJECT and PROJECTEND_OBJECT to differ the tags, but my problem is:
    xdb_titel_type is NOT FINAL
    Name Null? Typ
    SYS_XDBPD$ XDB$RAW_LIST_T
    SPRACHE VARCHAR2(4000 CHAR)
    that I lose the content the tags.
    What can i do?? is there any possible solution or isn't it possible
    thx PHIL
    I have solved the problem
    Message was edited by:
    user534856

    Hi,
    I have following problem:
    XML File:
    <readme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://localhost:8888/home/XDB/xsd/readme_neu.xsd">
         <title lang="de-DE">Preisliste Antriebselektronik </title>
         <title lang="en-DE">Preisliste Antriebselektronik </title>
         <edition lang="de-DE">date</edition>
         <doctype lang="de-DE">Preisliste</doctype>
         <projectstartdate lang="de-DE">date</projectstartdate>
         <projectenddate lang="de-DE">date</projectenddate>
    <projectenddate lang="en-DE">date</projectenddate>
         <status lang="de-DE">Druckvorstufe</status>
         <doku-key>PA300000</doku-key>
         <orderno lang="de-DE">
         <actual>11500204</actual>
         <previous>11341408</previous>
         </orderno>
         <orderno lang="lv-LV">
              <actual>11500476</actual>
              <previous>11341653</previous>
         </orderno>
         <orderno lang="lt-LT">
              <actual>11500484</actual>
              <previous>11341661</previous>
         </orderno>
         <orderno lang="nl-BE">
              <actual>11500492</actual>
              <previous>11341688</previous>
         </orderno>
    </readme>
    The Tags title and projectenddate makes the problem. I'd like to make an Objekt TITEL_OBJECT and PROJECTEND_OBJECT to differ the tags, but my problem is:
    xdb_titel_type is NOT FINAL
    Name Null? Typ
    SYS_XDBPD$ XDB$RAW_LIST_T
    SPRACHE VARCHAR2(4000 CHAR)
    that I lose the content the tags.
    What can i do?? is there any possible solution or isn't it possible
    thx PHIL
    I have solved the problem
    Message was edited by:
    user534856

  • Appended log files are not well formed XML?

    I'm working on a retrofit of our home grown logging class to use the new java.util.logging classes. It works beautifully with one exception. If I need to instantiate the logger in the same day, appending to an existing log file, I get a second (or third, or fourth) <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE log SYSTEM "logger.dtd"> tag inserted at the beginning of the new log entries. This causes the log file to not be well formed and therefore cannot be parsed.
    I've looked and looked, but can't find a method to suppress these extra tags. Anybody know a way? We want to use this on a development server that will be restarted several times a day. If I don't append, it wipes out my previous logs for the day.

    You'll have to do something to prevent your logger from appending to old logs that have been closed. Sorry if that is not very helpful, but I'm not familiar with the logging features in SDK 1.4. For your interest, though, Log4J (which you can get from Apache) also features XML logging, and it solved that rather obvious problem thus:
    "The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file."
    In other words, you would have to wrap the output in an XML header and a root node to be able to use it, which is not difficult to do.

  • XML Custom Panels: Samples With Doc are Not Well Formed XML

    The custom panel samples in the XMP Custom Panels document (and the accompanying sample file) is not well formed XML (which means that CS3 can't be parsing the file as XML, which would explain how this error made it publication). In particular, the XML declaration is missing the closing "?".
    <br />
    <br />As published it is:
    <br />
    <br /><?xml version="1.0"?>
    <br />
    <br />It should be:
    <br />
    <br /><?xml version="1.0"?>
    <br />
    <br />Note the "?&gt;" rather than "&gt;".
    <br />
    <br />This is in addition to the DOCTYPE SYSTEM URL not resolving to an actual DTD declaration set (which would be:
    <br />
    <br />
    <br /> title CDATA #REQUIRED
    <br /> type NMTOKEN #REQUIRED
    <br />&gt;
    <br />
    <br />Cheers,
    <br />
    <br />Eliot

    You'll have to do something to prevent your logger from appending to old logs that have been closed. Sorry if that is not very helpful, but I'm not familiar with the logging features in SDK 1.4. For your interest, though, Log4J (which you can get from Apache) also features XML logging, and it solved that rather obvious problem thus:
    "The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file."
    In other words, you would have to wrap the output in an XML header and a root node to be able to use it, which is not difficult to do.

  • 0x8004005 / Error: Configuration file is not well-formed XML

    Hello,
    I am getting a complete headache from this! I uninstalled Visual Studio 2013 Ultimate and installed in on another hard drive. Since then nothing works! It seems to be an error with IIS...
    The following happens:
    When I want to create ASP.NET Empty Web Application:
    When I ceate an ASP.NET MVC 4 Web Application
    When I open an existing project:
    similar to first screenshot, can only upload 2 images...
    I already tried the following:
    Reinstalling Visual Studio Ultimate 2013 
    Reinstalling IIS Express 8
    Thanks!

    Hi,
    In order to resolve your problem. You should give us some information:
    First, is there any error occur when you install the VS or do you can successfully install the VS? You can use
    http://aka.ms/vscollect to gather the latest installation logs. After using it, you will find vslogs.cab from %temp% folder. Please upload the file to
    https://Onedrive.live.com/ and share the link here.
    Second, the error may related to .NET FrameWork. You can use the tool in the link to check the .NET Framework Setup:
    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx
    If there are something wrong, you should repair the .NET framework.
    At last, there is a blog related to the error, you can follow up to handle your issue:
    http://blogs.msdn.com/b/acoat/archive/2013/04/23/iisexpress-configuration-file-is-not-well-formed-xml.aspx
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • XML parsing error: not well formed Location:file///c:users/

    I have been trying to download tax info from the I.R.S site. When I try to open the downloads I get this error message:
    XML parsing error: not well formed
    Location: file///c:/Users/John/Downloads/available Transcripts.xhtml
    line number 1, Column 9

    Are you sure that this is an XML file and not some other file type like PDF that got saved with the wrong file extension?
    You can try to rename the file and change the file extension to .pdf to see if that works.

  • SBL-ODU-01008 The HTTP request did not contain well-formed XML.

    I am trying to invoke the activity webservice using Msxml2.XMLHTTP.4.0 through PowerBuilder...
    I receive the following error when executing the code below: SBL-ODU-01008 The HTTP request did not contain well-formed XML.
    ls_post_url = "https://secure-ausomxxxx.crmondemand.com/Services/Integration/Activity;"
    ls_response_text = "jsessionid=" + sesId + ";"
    ls_post_url = ls_post_url + ls_response_text
         loo_xmlhttp.open ("POST",ls_post_url, false)
    // loo_xmlhttp.setRequestHeader("Content-Length", 200 )      
    // loo_xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8" )      
    // loo_xmlhttp.setRequestHeader("Accept", "text/xml" )           
    // loo_xmlhttp.setRequestHeader("COOKIE", left(cookie,pos(cookie,";",1)-1) )
    //     loo_xmlhttp.setRequestHeader("COOKIE", left(cookie,pos(cookie,";",1)-1) )
         ls_post_url2 = "document/urn:crmondemand/ws/ecbs/activity/10/2004:ActivityQueryPage"
         loo_xmlhttp.setRequestHeader("SOAPAction", ls_post_url2)     
         loo_xmlhttp.send()
    If I uncomment the setRequestHeader info, then I get a different error:
    ls_post_url = "https://secure-ausomxxxx.crmondemand.com/Services/Integration/Activity;"
    ls_response_text = "jsessionid=" + sesId + ";"
    ls_post_url = ls_post_url + ls_response_text
         loo_xmlhttp.open ("POST",ls_post_url, false)
    loo_xmlhttp.setRequestHeader("Content-Length", 200 )      
    loo_xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8" )      
    loo_xmlhttp.setRequestHeader("Accept", "text/xml" )           
    loo_xmlhttp.setRequestHeader("COOKIE", left(cookie,pos(cookie,";",1)-1) )
         loo_xmlhttp.setRequestHeader("COOKIE", left(cookie,pos(cookie,";",1)-1) )
         ls_post_url2 = "document/urn:crmondemand/ws/ecbs/activity/10/2004:ActivityQueryPage"
         loo_xmlhttp.setRequestHeader("SOAPAction", ls_post_url2)     
         loo_xmlhttp.send()
    SBL-ODU-01007 The HTTP request did not contain a valid SOAPAction header. The value of the header was
    I am unsure what I am missing in order to invoke the web service. If anyone can help I would truly appreciate it.
    Thanks

    Hi,
    I tried the SOAP request you provided and got a different error response:
    <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Client</faultstring><detail><ErrorCode>SBL-ODU-01008</ErrorCode><ErrorMessage>The HTTP request did not contain well-formed XML. An attempt to parse it produced the following error: Unsupported wsse:Password Type. Valid Value: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText</ErrorMessage></detail></soap:Fault></soap:Body></soap:Envelope>
    After changing the Password Type from:
    Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText">hijklmno</wsse:Password>
    to:
    Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">hijklmno</wsse:Password>
    The request was successful.
    Please let me know if this resolves your issue.
    Thanks,
    Sean
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header>
    <wsse:Security
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    soapenv:mustUnderstand="1">
    <wsse:UsernameToken>
    <wsse:Username>abcdefg</wsse:Username>
    <wsse:Password
    Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">hijklmno</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
    <q0:ContactWS_ContactQueryPage_Input
    xmlns:q0="urn:crmondemand/ws/contact/">
    <q1:ListOfContact xmlns:q1="urn:crmondemand/xml/Contact/Query">
    <Contact>
    <ContactType>='Customer'</ContactType>
    <ContactFirstName>='Fred'</ContactFirstName>
    <IntegrationId />
    </Contact>
    </q1:ListOfContact>
    </q0:ContactWS_ContactQueryPage_Input>
    </soapenv:Body>
    </soapenv:Envelope>
    Edited by: Sean Duffy on Jun 4, 2010 9:38 AM

  • Assembler Service API Quick Starts Web service API, Response is not well-formed XML

    Hi,
    I am trying to get the "Assembler Service API Quick Start" webservice api example to work in a asp.net application.
    The following line produces the exception below.
    // Send the request to the Assembler Service
    AssemblerResult result = asOb.invoke( ddxDoc, inputMap, assemblerSpec );
    "Response is not well-formed XML. at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at AssemblerServiceService.AssemblerServiceService.invoke(BLOB inDDXDoc, mapItem[] inputs, AssemblerOptionSpec environment)"
    Any help would be greatly appreciated.
    Thanks
    cheeves
    (the code is exactly as it is in the example, except for adding "?blob=base64" to the url of the AssemblerServiceService obeject, and I have the 3 files in the root of my c drive)

    after looking at the example more closely I discovered that there is a key name called "optionsLink.pdf" that doesn't match the source in the DDX file.

  • SAXException in well formed XML

    OK this is driving me nuts. I am getting a NullPointerException error in the XmlReader.parse() method. This happens on well formed xml documents of any kind and none of my XML will parse.I dont know what I am doing wrong in the code:
    DefaultHandler handler=new MyCalendarHandler(); //my default handler class defined elsewhere
         XMLReader xmlreader;
         SAXParserFactory spfactory = SAXParserFactory.newInstance();
         try{
         SAXParser saxparser=spfactory.newSAXParser();
         spfactory.setValidating(false);
         xmlreader=saxparser.getXMLReader();
         xmlreader.setContentHandler(handler);
         InputSource inputsource=new InputSource("cal.xml");
         xmlreader.parse(inputsource);
    }catch(ParserConfigurationException pce){
         //pce.printStackTrace();
         System.out.println("Parser Configuration Exception:"+pce.getMessage());
         }catch (SAXParseException spe){
         System.out.println("\nSAXParseException " + ", line " +
         spe.getLineNumber() + "column "+spe.getColumnNumber()+", uri " + spe.getSystemId());
         System.out.println(" " + spe.getMessage());
         }catch(SAXException se){
         System.out.println("SAXException:"+se.getMessage());
         se.printStackTrace();
         }catch(IOException ioe){
         System.out.println("IOException:"+ioe.getMessage());
    It throws a SAXParseException:
    SAXParseException, line 3 column -1, uri file:/home/ron/myprojects/cal.xml
    java.lang.NullPointerException
    My xml is as below.However it does this on all xml files, only the line number is different in each case.
    <?xml version="1.0" encoding="UTF-8"?>
    <iCalendar>
    <iCal version="2.0" prodid="-//iPlanet/Calendar Hosting Server//EN">
    <X-NSCP-WCAP-SESSION-ID>br78wbhh2mbv9t6</X-NSCP-WCAP-SESSION-ID>
    <X-NSCP-WCAP-USER-ID>ron</X-NSCP-WCAP-USER-ID>
    <X-NSCP-WCAP-CALENDAR-ID>ron</X-NSCP-WCAP-CALENDAR-ID>
    <X-NSCP-WCAP-ERRNO>0</X-NSCP-WCAP-ERRNO>
    </iCal>
    </iCalendar>
    My relevant import libraries are:
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.SAXParser;
    Thank you for any help
    ronjon

    cal.xml is in the current working directory. In fact I had also tried with the full path but get the same error.
    I am wondering if this is a java version problem.
    ronjon

  • Not well formed  XML data in XI

    HELLO !!
    Can XI handle a non welll formed XMl messages as an input  ?
    THANKS
    ~Peeru

    Hey
    >>we can use java mapping to make it well formed XMl.
    What exactly you mean by "not well formed XML" ?
    >>Does it mean that java mapping can take the value as a stream of data and then at the next step the XML parser is va;idating the msg ?
    Yeah thats the way Java mapping works,it takes input in the form of Input stream and gives output as an output stream.
    Bottom line is XML structure should be valid,you can't handle a invalid XML structure with any mapping,once you get the message  then you can use graphical message mapping for simple structures or use Java for complex ones(i guess by non-well formed you mean the ones which can be handled only by Java mapping)
    Thanx
    Aamir

  • This seems to be well formed XML. Why?

    Hello,
    I can't find an answer to the question why this xml seems to be "well formed". (According to: http://www.xml.com/pub/a/tools/ruwf/check.html.)
    <?xml version="1.0" encoding="UTF-8"?>
    <example>
        <myelement category="<MyCategory>">MyContent</myelement>
    </example>Watch out for the > in the "category" attribute value.
    As far as I know this is not valid XML. But the validator I used says its OK. I used JDOM to parse this data and it works without any error. Why?
    Thanks for your time.
    Peer

    I can't find an answer to the question why this xml seems to be "well formed". Because it obeys all the syntactic conventions of well formed xml?That's obviously the only correct answer to my question. :-)
    But you have to admit that it's a little bit strange to escape the left angle bracket and not the other one. I cannot see the benefit of it. But probably there is none....
    Thanks again, Pete!
    Peer

  • Not well-formed XML

    Hi guys,
    I need to parse an XML file which is not well formed.
    For example, the value of an element named 'topic' contains html tags which are not ended properly etc..
    e.g. <topic>Some text <BR></topic>
    Why do I need this? Because some idiots on their web site publish XML data (not well formed) which indeed is very valuable to me, and I want to use it. I tried contacting them on the "not-well-formed-XML" issue but haven't managed to get a reply yet. Hence I have been struggling with this using the SAX API and so on...
    I think there should be a way to ignore some elements' content when parsing the XML data but I haven't been able to do it...I am not experienced on SAX or DOM API's...
    For example if the problem is caused only by the BR tags then when I encounter it, either startTag or endTag, I should be able to ignore it. When I say "ignore", I mean "not change the state of the parser", or undo the last state change or whatever...Well at least I think I would write an XML parser like this if I were to do that...
    Any help is appreciated...

    Sorry to be the bearer of bad news.
    There is no such thing as an "XML file which is not
    well formed." There are files that look like they
    might be XML files but are not valid. I think that is
    what you have. One of the key differences between XML
    and HTML is that HTML has allowed sloppy habits to
    become routine. XML prohibits them from getting past
    the hurdle of validation.
    Dave PattersonI'm not sure about the comments that you have made about the validity and well-formedness about XML documents. As I said I'm not experienced in XML but as far as I understand, a document is called "valid" when it conforms to all the constraints imposed by a DTD. However, there is no DTD in my case and the XML document I have is not "well-formed" as defined below:
    A well-formed XML document is syntactically correct. It does not have any angle brackets that are not part of tags. (The entity references < and > are used to embed angle brackets in an XML document.) In addition, all tags have an ending tag or are themselves self-ending (<slide>..</slide> or <slide/>). In addition, in a well-formed document, all tags are fully nested. They never overlap, so this arrangement would produce an error: <slide><image>..</slide></image>. Knowing that a document is well formed makes it possible to process it. A well-formed document may not be valid however. To determine that, you need a validating parser and a DTD.
    According to the above definition the XML document I have violates the constraints and not well formed. But you can argue that the XML document I got is not an XML document but it is just some document :) Then anyway, I am not sure about all this terminology...
    The technique you suggested seems reasonable but as far as I know the SAX parser stops parsing when a fatal error is encountered. So I don't know how I will trap/ignore the error and continue...
    As for the JTidy suggestion:
    I have tried using HttpUnit which uses JTidy and couldn't get it right. I think when a DOM is created using JTidy the document must also be well formed (XHTML or whatever)...Am I wrong here?
    Thanks a lot...

Maybe you are looking for

  • Getting error while starting Managed server in clustered environment

    Hi All, I created a cluster in weblogic 9.2 and two manged servers under that cluster through WLST scripts. I started Node manager through connecting WLST and now when i am starting the managed servers its giving the following error : wls:/Dist_3/ser

  • Problem in "Save & refresh data" in epm ribbion

    Hi Experts,                  I got a problem in Save data option . I had a report with values but now i changed it into input-form to enter values . After entering my values i'm clicking on SAVE DATA button in epm tab but my problem is it is showing

  • "Unable to Create Volumes" error message in iPhoto export

    Hi. I am attempting to export all of my videos from iPhoto onto an external drive. I have read several articles in this community, but so far my problem has not been solved. I keep getting the error message "Unable to /create/volumes/Lisa's Prtable D

  • Help with Debugger

    I am having trouble using a debugger... I used it at one time but I forgot how to use it. The debugger I am using is the jdb that came with j2sdk1.4.0. What command would I give if I wanted to dump the variable testInt? What about testInt2? import ja

  • NSP Disappeared from SAP MMC

    Hi All I have successfully installed the ABAP sneak preview. It was running fine. I even setup the developer key. Everything was working fine. Now i tried to run a BSP application as suggested from the below weblog. /people/durairaj.athavanraja/blog/