A Microsoft Office (Excel, Word) forum. OfficeFrustration

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 » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

XML Import Parsing error



 
 
Thread Tools Display Modes
  #1  
Old October 9th, 2009, 09:17 PM posted to microsoft.public.excel.misc
Jeff
external usenet poster
 
Posts: 1,347
Default XML Import Parsing error

I have created an xml file, and some elements contain weblinks w/parameters.

Excel hiccups when it encounters the &.

How can I make it where Excel's XML import will preserve these special
characters and still open the file?

The method by which I create the XML is through php. I accumulate along
string and then, write it to a file, "test.xml."

I have tried using $allthexml=htmlentities($allthexml);
It didn't work.

I tried including ![CDATA[ before the innerhtml of the tag and ]] after
it. That did not work, either.

Thanks.
html
  #2  
Old October 10th, 2009, 10:50 AM posted to microsoft.public.excel.misc
Jeff
external usenet poster
 
Posts: 1,347
Default XML Import Parsing error

I should have used htmlentities() only on the data between the xml tags,
rather than try to use it on the entire string, including the xml tags.

"Jeff" wrote:

I have created an xml file, and some elements contain weblinks w/parameters.

Excel hiccups when it encounters the &.

How can I make it where Excel's XML import will preserve these special
characters and still open the file?

The method by which I create the XML is through php. I accumulate along
string and then, write it to a file, "test.xml."

I have tried using $allthexml=htmlentities($allthexml);
It didn't work.

I tried including ![CDATA[ before the innerhtml of the tag and ]] after
it. That did not work, either.

Thanks.
html

 




Thread Tools
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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.