473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

can i avoid the line '<?xml version="1.0" standalone="yes"?>' ,using openWYSIWYG ?

how can i avoid the first line of code '<?xml version="1.0" standalone="yes"?>' at publishing of a html file, i m using openWYSIWYG editor and php for scripting? the problem is that its possible to include the created html file in my template when running @loclhost,found an error after hosting . need urgent solution.....can anyone help me..
Aug 25 '11 #1
3 2100
Dormilich
8,658 Expert Mod 8TB
the XML prolog is invalid in an HTML file. just omit it.
Aug 26 '11 #2
thanks for your response,...i m publishing the page from WYSIWYG HTML Editor from browser,& after reloading the same page using the code:

Expand|Select|Wrap|Line Numbers
  1. $newsedit=file_get_contents('http://localhost/nap/newsupdates/'.$newseditid.'.html');
(i also change the path corresponding to at the time of hosting and there is no problem related with path)

in to the editor the text mode displays my page content and CODE VIEW displays its html codes but the above XML prolog
'<?xml version="1.0" standalone="yes"?>' is not displaying inside text area of editor,(but the page contains XML Prolog which is auto generated at first publishing,my code is :

Expand|Select|Wrap|Line Numbers
  1. $doc = new DOMDocument();
  2. $doc->loadHTML($news);
  3. //echo $doc->saveHTML();
  4.  
  5. $ext='.html';
  6. $page_name=$name.$ext;
  7. $path=$page_name;
  8.  
  9. $doc->save($path)
  10.  
)

error : Parse error: syntax error, unexpected T_STRING in /newsupdates/113.html on line 1


...how can i omit the prolog..i m using openWYSIWYG Html Editor,is it possible to edit(omit) the prolog inside the editor?
Aug 26 '11 #3
I've got the solution....
Aug 29 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Joe Price | last post by:
Hi all I've formatted one of my xml files for viewing through a web browser using xsl. It works fine in Internet Explorer, however when I use Netscape6 or Opera to view the same page the...
2
by: hvaisane | last post by:
Valgrind says ==11604== Invalid read of size 4 ==11604== at 0x8048ABB: main (foo.cc:36) ==11604== Address 0x1B92415C is 4 bytes inside a block of size 8 free'd ==11604== at 0x1B90514F:...
24
by: jrefactors | last post by:
I have an upload file operation in the web application. UploadForm.jsp is the form, and UploadAction.jsp is the form processing. The web server is Websphere. //UploadForm.jsp <FORM...
8
by: Grant Richard | last post by:
Using the TcpListener and TcpClient I created a program that just sends and receives a short string - over and over again. The program is fine until it gets to around 1500 to 1800 messages. At...
2
by: Marty Meyers | last post by:
I have the following line in a php file: $msg= exec("perl $scriptPath/insert.pl $d $u $t 2>&1", $returnVal); Can someone explain the "2>&1" argument? Second problem, this same line of code...
12
by: spibou | last post by:
Why is a pointer allowed to point to one position past the end of an array but not to one position before the beginning of an array ? Is there any reason why the former is more useful than the...
4
by: Jon | last post by:
Hi, I used XslCompiledTransform with the following Xsl file. The <xsl:text disable-output-escaping="yes"does not work when using XslCompiledTransform to do the trnasform (namely the output...
7
by: tah | last post by:
Hey, Can someone please clarify, confirm, or set me straight on my understanding of a standalone="yes" attribute in the xml version element? I assume it means that the xml document containing it...
21
by: comp.lang.tcl | last post by:
set php {<? print_r("Hello World"); ?>} puts $php; # PRINTS OUT <? print_r("Hello World"); ?> puts When I try this within TCL I get the following error:
3
by: Lord0 | last post by:
I am trying to implement variable content containers using an abstract type and type substitution. My schema is as follows: <?xml version="1.0" encoding="UTF-8"?> <schema...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.