Office Detritus in XML - InfoPath Dev
in

InfoPath Dev

Office Detritus in XML

Last post 04-23-2008 09:37 AM by Greg Collins. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-22-2008 05:38 PM

    Office Detritus in XML

     

    The situation is:

     

    = = = = = = = = = = =

    We are dealing with XML that is being returned from InfoPath forms that are living in a SharePoint 2007 Forms Library.

     

    When I return the XML via “http get” in JavaScript, it is well-formatted, and a snippet looks like this:  (xxx inserted to protect the innocent)

     

    <my:Summary>

                                    <div xmlns="http://www.w3.org/1999/xhtml">

                                                     In xxx we faced significant developments in yyy adoption of zzz.  Issues in compatibility (H/W and app)…

                                    </div>

    </my:Summary>

     

    etc…

     = = = = = = = = = = =  

    When that xml doc is viewed in IE (the only browser necessary for this project), we receive this:

    The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

    An invalid character was found in text content. Error processing resource 'http://infoweb2007/aaa/bbb/I... 

                                    In xxx we faced significant developments in yyy adoption of zzz.

     

    = = = = = = = = = = =

     

    When I view the content in Word 2007 with the paragraph symbol clicked to display hidden Unicode characters, it appears that there is an office “symbol” after the phrase “zzz”. 

     

    In Word, code with hidden characters appear.  One in particular looks like a small circle elevated where an appostrophe would appear:    If you are internal, you can view the non-XXX version here. 

     

    = = = = = = = = = = =

    So the questions are:

     

    1.       Is there a way to strip these spurious Office characters?

    2.       If not, is there a better way to retrieve this XML as WML?

      
  • 04-23-2008 09:33 AM In reply to

    I've removed your duplicate posting. You only need to post your question once--we'll see it.

  • 04-23-2008 09:37 AM In reply to

    InfoPath should not store invalid XML characters in rich text fields. . . Try copying the XML file down directly from SharePoint and then viewing it in IE. It's possible the method you use to get the file is introducing an issue (though it seems unlikely).

    You error says "Cannot view XML input using XSL style sheet." Are you introducing a stylesheet somewhere?

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.